From 201c191cc3bc7b68b379e46f3a652aa1efb62837 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期四, 03 七月 2025 22:11:37 +0800
Subject: [PATCH] bug修改

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

diff --git a/manage/src/main/resources/mapping/TLineUpMapper.xml b/manage/src/main/resources/mapping/TLineUpMapper.xml
index 3f2d9ef..ec1695d 100644
--- a/manage/src/main/resources/mapping/TLineUpMapper.xml
+++ b/manage/src/main/resources/mapping/TLineUpMapper.xml
@@ -22,11 +22,13 @@
         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
+        select t.*,u.name,u.phone,u.age,u.gender,u.realName,s.name as storeName,o.name as 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_app_user u on t.userId = u.id
+            left join t_optometry t1 on t1.lineUpId = t.id
+        left join t_optometrist o on t1.optometristId = o.id
         left join t_store s on t.storeId = s.id
+
         <where>
             <if test="query.status != null">
                 and t.status = #{query.status}
@@ -40,7 +42,7 @@
             <if test="query.storeId != null">
                 and s.id = #{query.storeId}
             </if>
-            and t1.isDelete =  ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()}
+            and t.isDelete =  ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()}
 
         </where>
         order by t.createTime desc

--
Gitblit v1.7.1