From ff1be70b35a043a42ef7471c3ed9f10a9a736db0 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期四, 09 一月 2025 14:33:04 +0800 Subject: [PATCH] bug修改 --- manage/src/main/resources/mapping/TOptometristMapper.xml | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/manage/src/main/resources/mapping/TOptometristMapper.xml b/manage/src/main/resources/mapping/TOptometristMapper.xml index fdf7830..3005ab6 100644 --- a/manage/src/main/resources/mapping/TOptometristMapper.xml +++ b/manage/src/main/resources/mapping/TOptometristMapper.xml @@ -41,23 +41,26 @@ and t2.id like concat('%',#{query.userId},'%') </if> <if test="query.realName != null and query.realName != ''"> - and t1.`name` like concat('%',#{query.realName},'%') + and t1.realName like concat('%',#{query.realName},'%') </if> <if test="query.phone != null and query.phone != ''"> and t1.phone like concat('%',#{query.phone},'%') </if> - <if test="query.storeId != null and query.storeId != ''"> + <if test="query.storeId != null "> and t1.storeId = #{query.storeId} </if> - <if test="query.optometristId != null and query.optometristId != ''"> + <if test="query.optometristId != null "> and t1.optometristId = #{query.optometristId} </if> - <if test="req.startTime != null and req.startTime!=''"> - and (t1.createTime between #{req.startTime} and #{req.endTime}) + <if test="query.userId != null "> + and t1.userId = #{query.userId} </if> - AND isDelete = ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()} + <if test="query.startTime != null and query.startTime!=''"> + and (t1.createTime between #{query.startTime} and #{query.endTime}) + </if> + AND t1.isDelete = ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()} </where> - ORDER BY createTime DESC + ORDER BY t1.createTime DESC </select> <select id="pageList1" resultType="com.jilongda.manage.vo.TOptometristVO"> select <include refid="Base_Column_List"></include> -- Gitblit v1.7.1