Browse Source

统计修改

v4
zouyx 2 years ago
parent
commit
0f146fe536
  1. 6
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/EnforcementInspectionProgramMapper.xml
  2. 2
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/EnforcementRegistrationMapper.xml

6
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/EnforcementInspectionProgramMapper.xml

@ -80,7 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and date_sub(now(),interval 1 week) < create_time and date_sub(now(),interval 1 week) < create_time
</if> </if>
<if test="dateSearch != null and dateSearch != ''"> <if test="dateSearch != null and dateSearch != ''">
and DATE_FORMAT(create_time, '%Y-%m') = #{dateSearch} and DATE_FORMAT(create_time, '%m') = #{dateSearch}
</if> </if>
<if test="params.dataScope != null and params.dataScope != ''"> <if test="params.dataScope != null and params.dataScope != ''">
<!-- 数据范围过滤 --> <!-- 数据范围过滤 -->
@ -199,7 +199,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and QUARTER(create_time) = #{quarter} and QUARTER(create_time) = #{quarter}
</if> </if>
<if test="month != null and month != '' "> <if test="month != null and month != '' ">
and DATE_FORMAT(create_time, '%Y-%m') = #{month} and DATE_FORMAT(create_time, '%m') = #{month}
</if> </if>
AND bureau_dept_id is not null AND bureau_dept_id is not null
and time_type is not null and time_type is not null
@ -294,7 +294,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and QUARTER(create_time) = #{quarter} and QUARTER(create_time) = #{quarter}
</if> </if>
<if test="month != null and month != '' "> <if test="month != null and month != '' ">
and DATE_FORMAT(create_time, '%Y-%m') = #{month} and DATE_FORMAT(create_time, '%m') = #{month}
</if> </if>
AND bureau_dept_id is not null AND bureau_dept_id is not null
and time_type ='year' and time_type ='year'

2
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/EnforcementRegistrationMapper.xml

@ -253,7 +253,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND QUARTER(r.create_time) = #{quarter} AND QUARTER(r.create_time) = #{quarter}
</if> </if>
<if test="month != null and month != '' "> <if test="month != null and month != '' ">
AND DATE_FORMAT(r.create_time, '%Y-%m') = #{month} AND DATE_FORMAT(r.create_time, '%m') = #{month}
</if> </if>
</where> </where>
order by r.create_time desc order by r.create_time desc

Loading…
Cancel
Save