|
|
|
@ -124,15 +124,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
and DATE_FORMAT(enforcement_time, '%Y-%m') = #{dateSearch} |
|
|
|
</if> |
|
|
|
<if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 --> |
|
|
|
and DATE_FORMAT(create_time,'%Y-%m') >= #{beginTime} |
|
|
|
and DATE_FORMAT(enforcement_time,'%Y-%m') >= #{beginTime} |
|
|
|
</if> |
|
|
|
<if test="endTime != null and endTime != ''"><!-- 结束时间检索 --> |
|
|
|
and DATE_FORMAT(create_time,'%Y-%m') <= #{endTime} |
|
|
|
and DATE_FORMAT(enforcement_time,'%Y-%m') <= #{endTime} |
|
|
|
</if> |
|
|
|
<!-- 数据范围过滤 --> |
|
|
|
${params.dataScope} |
|
|
|
</where> |
|
|
|
order by create_time desc |
|
|
|
order by enforcement_time desc |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectEnforcementRegistrationById" parameterType="String" resultMap="EnforcementRegistrationResult"> |
|
|
|
|