|
|
|
@ -42,11 +42,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if> |
|
|
|
<if test="isDelete != null "> and is_delete = #{isDelete}</if> |
|
|
|
<if test="isPublish != null "> and is_publish = #{isPublish}</if> |
|
|
|
<if test="searchText != null and searchText != ''"> |
|
|
|
<if test="searchText != null and searchText != ''and searchType =='plan'"> |
|
|
|
and (plan_name like concat('%', #{searchText}, '%') |
|
|
|
or enforcement_department like concat('%', #{searchText}, '%') |
|
|
|
or enforcement_area like concat('%', #{searchText}, '%')) |
|
|
|
</if> |
|
|
|
<if test="searchText != null and searchText != '' and searchType =='notice'"> |
|
|
|
and (plan_name like concat('%', #{searchText}, '%') |
|
|
|
or bureau_dept_name like concat('%', #{searchText}, '%')) |
|
|
|
</if> |
|
|
|
<if test="dateType != null and dateType == 1"> |
|
|
|
and DATE_FORMAT(create_time, '%Y-%m') = DATE_FORMAT(CURDATE(), '%Y-%m') |
|
|
|
</if> |
|
|
|
@ -67,6 +71,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="dateType != null and dateType == 3"> |
|
|
|
and DATE_FORMAT(create_time, '%Y') = DATE_FORMAT(CURDATE(), '%Y') |
|
|
|
</if> |
|
|
|
<if test="dateType != null and dateType == 4"> |
|
|
|
and date_sub(now(),interval 1 week) < create_time |
|
|
|
</if> |
|
|
|
<if test="dateSearch != null and dateSearch != ''"> |
|
|
|
and DATE_FORMAT(create_time, '%Y-%m') = #{dateSearch} |
|
|
|
</if> |
|
|
|
|