增加日期查询

This commit is contained in:
2025-03-21 15:03:49 +08:00
parent e2fe948bfe
commit 118c1a6ddf
8 changed files with 28 additions and 1 deletions

View File

@ -100,6 +100,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="req.smallType !=null and req.smallType!=''">
AND a.message_small_type = #{req.smallType}
</if>
<if test="req.rq!=null">
DATE_FORMAT(a.create_time, '%Y-%m-%d') = #{req.rq} and
</if>
</where>
order by a.create_time desc
</select>
@ -128,6 +131,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="req.largeType !=null and req.largeType!='3'">
a.is_operation = '1' AND
</if>
<if test="req.rq!=null">
DATE_FORMAT(a.create_time, '%Y-%m-%d') = #{req.rq} and
</if>
a.message_small_type is null AND
a.del_flag = "0"
</where>