|
|
|
@ -187,19 +187,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
and bureau_dept_name like concat('%', #{bureauDeptName}, '%') |
|
|
|
</if> |
|
|
|
<if test="beginTime != null and beginTime != ''"> |
|
|
|
and DATE_FORMAT(create_time,'%Y-%m-%d') >= #{beginTime} |
|
|
|
and DATE_FORMAT(enforcement_time,'%Y-%m-%d') >= #{beginTime} |
|
|
|
</if> |
|
|
|
<if test="endTime != null and endTime != ''"> |
|
|
|
and #{endTime} >= DATE_FORMAT(create_time,'%Y-%m-%d') |
|
|
|
and #{endTime} >= DATE_FORMAT(enforcement_time,'%Y-%m-%d') |
|
|
|
</if> |
|
|
|
<if test="year != null and year != ''"> |
|
|
|
and YEAR(create_time) = #{year} |
|
|
|
and YEAR(enforcement_time) = #{year} |
|
|
|
</if> |
|
|
|
<if test="quarter != null and quarter != '' "> |
|
|
|
and QUARTER(create_time) = #{quarter} |
|
|
|
and QUARTER(enforcement_time) = #{quarter} |
|
|
|
</if> |
|
|
|
<if test="month != null and month != '' "> |
|
|
|
and DATE_FORMAT(create_time, '%m') = #{month} |
|
|
|
and DATE_FORMAT(enforcement_time, '%m') = #{month} |
|
|
|
</if> |
|
|
|
<if test="params.dataScope != null and params.dataScope != ''"> |
|
|
|
${params.dataScope} |
|
|
|
@ -223,19 +223,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
bureau_dept_name like concat('%', #{bureauDeptName}, '%') |
|
|
|
</if> |
|
|
|
<if test="beginTime != null and beginTime != ''"> |
|
|
|
and DATE_FORMAT(create_time,'%Y-%m-%d') >= #{beginTime} |
|
|
|
and DATE_FORMAT(enforcement_time,'%Y-%m-%d') >= #{beginTime} |
|
|
|
</if> |
|
|
|
<if test="endTime != null and endTime != ''"> |
|
|
|
and #{endTime} >= DATE_FORMAT(create_time,'%Y-%m-%d') |
|
|
|
and #{endTime} >= DATE_FORMAT(enforcement_time,'%Y-%m-%d') |
|
|
|
</if> |
|
|
|
<if test="year != null and year != ''"> |
|
|
|
and YEAR(create_time) = #{year} |
|
|
|
and YEAR(enforcement_time) = #{year} |
|
|
|
</if> |
|
|
|
<if test="quarter != null and quarter != '' "> |
|
|
|
and QUARTER(create_time) = #{quarter} |
|
|
|
and QUARTER(enforcement_time) = #{quarter} |
|
|
|
</if> |
|
|
|
<if test="month != null and month != '' "> |
|
|
|
and DATE_FORMAT(create_time, '%m') = #{month} |
|
|
|
and DATE_FORMAT(enforcement_time, '%m') = #{month} |
|
|
|
</if> |
|
|
|
<if test="params.dataScope != null and params.dataScope != ''"> |
|
|
|
${params.dataScope} |
|
|
|
@ -291,19 +291,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
and bureau_dept_name like concat('%', #{bureauDeptName}, '%') |
|
|
|
</if> |
|
|
|
<if test="beginTime != null and beginTime != ''"> |
|
|
|
and <![CDATA[ create_time >= concat('%', #{beginTime}, '%') ]]> |
|
|
|
and <![CDATA[ create_time >= concat('%', #{enforcement_time}, '%') ]]> |
|
|
|
</if> |
|
|
|
<if test="endTime != null and endTime != ''"> |
|
|
|
and <![CDATA[ create_time <= concat('%', #{endTime}, '%') ]]> |
|
|
|
and <![CDATA[ create_time <= concat('%', #{enforcement_time}, '%') ]]> |
|
|
|
</if> |
|
|
|
<if test="year != null and year != ''"> |
|
|
|
and YEAR(create_time) = #{year} |
|
|
|
and YEAR(enforcement_time) = #{year} |
|
|
|
</if> |
|
|
|
<if test="quarter != null and quarter != '' "> |
|
|
|
and QUARTER(create_time) = #{quarter} |
|
|
|
and QUARTER(enforcement_time) = #{quarter} |
|
|
|
</if> |
|
|
|
<if test="month != null and month != '' "> |
|
|
|
and DATE_FORMAT(create_time, '%m') = #{month} |
|
|
|
and DATE_FORMAT(enforcement_time, '%m') = #{month} |
|
|
|
</if> |
|
|
|
<if test="params.dataScope != null and params.dataScope != ''"> |
|
|
|
${params.dataScope} |
|
|
|
@ -359,7 +359,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
FROM enforcement_inspection_program |
|
|
|
<where> |
|
|
|
<if test="year != null and year != ''"> |
|
|
|
AND YEAR(create_time) = #{year} |
|
|
|
AND YEAR(enforcement_time) = #{year} |
|
|
|
</if> |
|
|
|
<if test="params.dataScope != null and params.dataScope != ''"> |
|
|
|
${params.dataScope} |
|
|
|
@ -424,7 +424,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
FROM enforcement_inspection_program |
|
|
|
<where> |
|
|
|
<if test="year != null and year != ''"> |
|
|
|
AND YEAR(create_time) = #{year} |
|
|
|
AND YEAR(enforcement_time) = #{year} |
|
|
|
</if> |
|
|
|
<if test="params.dataScope != null and params.dataScope != ''"> |
|
|
|
${params.dataScope} |
|
|
|
|