|
|
@ -70,6 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<include refid="selectEnforcementRegistrationVo"/> |
|
|
<include refid="selectEnforcementRegistrationVo"/> |
|
|
<where> |
|
|
<where> |
|
|
<if test="lawEnforcement != null and lawEnforcement != ''"> and law_enforcement like concat('%', #{lawEnforcement}, '%')</if> |
|
|
<if test="lawEnforcement != null and lawEnforcement != ''"> and law_enforcement like concat('%', #{lawEnforcement}, '%')</if> |
|
|
|
|
|
<if test="bureauDeptName != null and bureauDeptName != ''"> and bureau_dept_name like concat('%', #{bureauDeptName}, '%')</if> |
|
|
<if test="lawEnforcementId != null and lawEnforcementId != ''"> and law_enforcement_id = #{lawEnforcementId}</if> |
|
|
<if test="lawEnforcementId != null and lawEnforcementId != ''"> and law_enforcement_id = #{lawEnforcementId}</if> |
|
|
<if test="enterpriseId != null and enterpriseId != ''"> and enterprise_id = #{enterpriseId}</if> |
|
|
<if test="enterpriseId != null and enterpriseId != ''"> and enterprise_id = #{enterpriseId}</if> |
|
|
<if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if> |
|
|
<if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if> |
|
|
@ -92,6 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="userId != null "> and user_id = #{userId}</if> |
|
|
<if test="userId != null "> and user_id = #{userId}</if> |
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if> |
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if> |
|
|
<if test="isDelete != null "> and is_delete = #{isDelete}</if> |
|
|
<if test="isDelete != null "> and is_delete = #{isDelete}</if> |
|
|
|
|
|
<if test="isComplaint != null "> and is_complaint = #{isComplaint}</if> |
|
|
<if test="status != null "> and status = #{status}</if> |
|
|
<if test="status != null "> and status = #{status}</if> |
|
|
<if test="lawEnforcementCode != null and lawEnforcementCode != ''"> and law_enforcement_code = #{lawEnforcementCode}</if> |
|
|
<if test="lawEnforcementCode != null and lawEnforcementCode != ''"> and law_enforcement_code = #{lawEnforcementCode}</if> |
|
|
<if test="searchValue != null and searchValue != ''"> |
|
|
<if test="searchValue != null and searchValue != ''"> |
|
|
@ -126,10 +128,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
and DATE_FORMAT(enforcement_time, '%Y-%m') = #{dateSearch} |
|
|
and DATE_FORMAT(enforcement_time, '%Y-%m') = #{dateSearch} |
|
|
</if> |
|
|
</if> |
|
|
<if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 --> |
|
|
<if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 --> |
|
|
and DATE_FORMAT(enforcement_time,'%Y-%m') >= #{beginTime} |
|
|
and DATE_FORMAT(enforcement_time,'%Y-%m-%d') >= #{beginTime} |
|
|
</if> |
|
|
</if> |
|
|
<if test="endTime != null and endTime != ''"><!-- 结束时间检索 --> |
|
|
<if test="endTime != null and endTime != ''"><!-- 结束时间检索 --> |
|
|
and DATE_FORMAT(enforcement_time,'%Y-%m') <= #{endTime} |
|
|
and DATE_FORMAT(enforcement_time,'%Y-%m-%d') <= #{endTime} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
|
|
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
|
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
|
|
|