|
|
|
@ -106,6 +106,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="dateSearch != null and dateSearch != ''"> |
|
|
|
and DATE_FORMAT(enforcement_time, '%Y-%m') = #{dateSearch} |
|
|
|
</if> |
|
|
|
<if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 --> |
|
|
|
and DATE_FORMAT(create_time,'%Y-%m') >= #{beginTime} |
|
|
|
</if> |
|
|
|
<if test="endTime != null and endTime != ''"><!-- 结束时间检索 --> |
|
|
|
and DATE_FORMAT(create_time,'%Y-%m') <= #{endTime} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
order by create_time desc |
|
|
|
</select> |
|
|
|
|