From bf765893039bc7968b8160a70bda778526dca98c Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期二, 31 十二月 2024 15:28:19 +0800
Subject: [PATCH] 定时任务

---
 manage/src/main/resources/mapping/TLineUpMapper.xml |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/manage/src/main/resources/mapping/TLineUpMapper.xml b/manage/src/main/resources/mapping/TLineUpMapper.xml
index 382f795..11ee095 100644
--- a/manage/src/main/resources/mapping/TLineUpMapper.xml
+++ b/manage/src/main/resources/mapping/TLineUpMapper.xml
@@ -21,5 +21,29 @@
     <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_app_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>
+            and t.isDelete =  ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()}
+
+        </where>
+        order by t.createTime desc
+    </select>
 
 </mapper>

--
Gitblit v1.7.1