From 4d84802f381a447171c5dda28d44a0e53e93f3f4 Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期五, 13 十二月 2024 17:09:05 +0800 Subject: [PATCH] 后台设置、小票机管理、员工管理,系统管理,售后管理 --- manage/src/main/resources/mapping/TOptometristMapper.xml | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/manage/src/main/resources/mapping/TOptometristMapper.xml b/manage/src/main/resources/mapping/TOptometristMapper.xml index 3ffe98a..ce9e061 100644 --- a/manage/src/main/resources/mapping/TOptometristMapper.xml +++ b/manage/src/main/resources/mapping/TOptometristMapper.xml @@ -20,7 +20,27 @@ <!-- 通用查询结果列 --> <sql id="Base_Column_List"> - id, name, phone, status, storeId, img, registerTime, createTime, updateTime, createBy, updateBy, isDelete + id, `name`, phone, status, storeId, img, registerTime, createTime, updateTime, createBy, updateBy, isDelete </sql> + <select id="pageList" resultType="com.jilongda.manage.vo.TOptometristVO"> + select <include refid="Base_Column_List"></include> + from t_optometrist + <where> + <if test="query.name != null and query.name != ''"> + and `name` like concat('%',#{query.name},'%') + </if> + <if test="query.phone != null and query.phone != ''"> + and phone like concat('%',#{query.phone},'%') + </if> + <if test="query.status != null"> + and status = #{query.status} + </if> + <if test="query.storeId != null"> + and storeId = #{query.storeId} + </if> + and isDelete = ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()} + </where> + ORDER BY createTime DESC + </select> </mapper> -- Gitblit v1.7.1