查询条件;

This commit is contained in:
王奎兴
2026-03-10 21:59:33 +08:00
parent 9e3b087c9c
commit 5be1ea50c2
2 changed files with 5 additions and 2 deletions
@@ -141,6 +141,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createByName != null and createByName != ''">
and a.create_by_name like concat('%', #{createByName}, '%')
</if>
<if test="applyNumber != null and applyNumber != ''">
and a.APPLY_NUMBER like concat('%', #{applyNumber}, '%')
</if>
<if test="updateByName != null and updateByName != ''">
and a.update_by_name like concat('%', #{updateByName}, '%')
</if>
@@ -166,7 +169,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND (date_format(a.collection_time,'%Y-%m-%d') >= date_format(#{collectionTimeStart},'%Y-%m-%d')
and date_format(a.collection_time,'%Y-%m-%d') <![CDATA[<=]]> date_format(#{collectionTimeEnd},'%Y-%m-%d'))
</if>
<if test="createTimeStart != null and createTimeEnd != null">
<if test="createTimeStart != null and createTimeEnd != null and createTimeStart != '' and createTimeEnd != ''">
AND (date_format(a.create_time,'%Y-%m-%d') >= date_format(#{createTimeStart},'%Y-%m-%d')
and date_format(a.create_time,'%Y-%m-%d') <![CDATA[<=]]> date_format(#{createTimeEnd},'%Y-%m-%d'))
</if>