From 1734f2d56162a1fdb556632dc36fcef0ca57851c Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期一, 16 十二月 2024 11:38:16 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- manage/src/main/resources/mapping/TLineUpMapper.xml | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/manage/src/main/resources/mapping/TLineUpMapper.xml b/manage/src/main/resources/mapping/TLineUpMapper.xml index 382f795..0a2778c 100644 --- a/manage/src/main/resources/mapping/TLineUpMapper.xml +++ b/manage/src/main/resources/mapping/TLineUpMapper.xml @@ -21,5 +21,27 @@ <sql id="Base_Column_List"> id, code, userId, optometristId, storeId, status, createTime, updateTime, createBy, updateBy, isDelete </sql> + <select id="pageList" resultType="com.jilongda.manage.model.TLineUp"> + select t.*,u.name,u.phone,u.age,u.gender,u.realName,s.name storeName,o.name optometrist + from t_line_up t + left join t_user u on t.userId = u.id + left join t_optometrist o on t.optometristId = o.id + left join t_store s on t.storeId = s.id + <where> + <if test="query.status != null"> + and t.status = #{query.status} + </if> + <if test="query.phone != null and query.phone != ''"> + AND u.phone like concat('%',#{query.phone},'%') + </if> + <if test="query.name != null and query.name != ''"> + AND u.name like concat('%',#{query.name},'%') + </if> + <if test="query.storeId != null"> + and s.id = #{query.storeId} + </if> + </where> + order by t.createTime desc + </select> </mapper> -- Gitblit v1.7.1