From 782cef1a49bb665fd88f3850a9193c08d63ef1d5 Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期一, 13 十月 2025 17:58:01 +0800
Subject: [PATCH] 诊所和供应商首页统计

---
 ruoyi-system/src/main/resources/mapper/system/TSysAppUserMapper.xml |   24 +++++++++++++-----------
 1 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/TSysAppUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TSysAppUserMapper.xml
index 4628b35..0c80064 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TSysAppUserMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TSysAppUserMapper.xml
@@ -14,6 +14,7 @@
         <result column="chronic_disease_id" property="chronicDiseaseId" />
         <result column="status" property="status" />
         <result column="last_reminder_time" property="lastReminderTime" />
+        <result column="clinic_id" property="clinicId" />
         <result column="create_time" property="createTime" />
         <result column="update_time" property="updateTime" />
         <result column="create_by" property="createBy" />
@@ -23,12 +24,13 @@
 
     <!-- 通用查询结果列 -->
     <sql id="Base_Column_List">
-        id, nick_name, phone, birth_time, sex, open_id,chronic_disease_id,status,last_reminder_time,office_open_id, create_time, update_time, create_by, update_by, disabled
+        id, nick_name, phone, birth_time, sex, open_id,chronic_disease_id,status,last_reminder_time,
+          office_open_id,clinic_id, create_time, update_time, create_by, update_by, disabled
     </sql>
     <select id="pageList" resultType="com.ruoyi.system.vo.TSysAppUserVO">
         select tsau.id, tsau.nick_name, tsau.phone, tsau.birth_time, tsau.sex, tsau.open_id,tsau.office_open_id,
-               tsau.chronic_disease_id,tsau.status,tsau.last_reminder_time, tsau.create_time, tsau.update_time, tsau.create_by,
-               tsau.update_by, tsau.disabled, tsi.lastInspectionTime
+               tsau.chronic_disease_id,tsau.status,tsau.last_reminder_time,tsau.clinic_id, tsau.create_time,
+               tsau.update_time, tsau.create_by,tsau.update_by, tsau.disabled, tsi.lastInspectionTime
         from t_sys_app_user tsau
         left join (select id,app_user_id, max(check_time) as lastInspectionTime from t_sys_inspection limit 1) tsi on tsi.app_user_id = tsau.id
         <where>
@@ -56,8 +58,8 @@
     </select>
     <select id="pageChronicDiseaseUserList" resultType="com.ruoyi.system.vo.TSysAppUserVO">
         select tsau.id, tsau.nick_name, tsau.phone, tsau.birth_time, tsau.sex, tsau.open_id,tsau.office_open_id,
-               tsau.chronic_disease_id,tsau.status,tsau.last_reminder_time, tsau.create_time, tsau.update_time, tsau.create_by,
-               tsau.update_by, tsau.disabled
+        tsau.chronic_disease_id,tsau.status,tsau.last_reminder_time,tsau.clinic_id, tsau.create_time,
+        tsau.update_time, tsau.create_by,tsau.update_by, tsau.disabled
         from t_sys_app_user tsau
         left join (select id,app_user_id, max(check_time) as lastInspectionTime from t_sys_inspection limit 1) tsi on tsi.app_user_id = tsau.id
         <where>
@@ -77,8 +79,8 @@
     </select>
     <select id="exportList" resultType="com.ruoyi.system.export.TSysAppUserListExport">
         select tsau.id, tsau.nick_name, tsau.phone, tsau.birth_time, tsau.sex, tsau.open_id,tsau.office_open_id,
-        tsau.chronic_disease_id,tsau.status,tsau.last_reminder_time, tsau.create_time, tsau.update_time, tsau.create_by,
-        tsau.update_by, tsau.disabled
+        tsau.chronic_disease_id,tsau.status,tsau.last_reminder_time,tsau.clinic_id, tsau.create_time,
+        tsau.update_time, tsau.create_by,tsau.update_by, tsau.disabled
         from t_sys_app_user tsau
         <where>
             <if test="query.phone != null and query.phone != ''">
@@ -97,8 +99,8 @@
     </select>
     <select id="exportListClinic" resultType="com.ruoyi.system.export.TSysAppUserClinicExport">
         select tsau.id, tsau.nick_name, tsau.phone, tsau.birth_time, tsau.sex, tsau.open_id,tsau.office_open_id,
-        tsau.chronic_disease_id,tsau.status,tsau.last_reminder_time, tsau.create_time, tsau.update_time, tsau.create_by,
-        tsau.update_by, tsau.disabled
+        tsau.chronic_disease_id,tsau.status,tsau.last_reminder_time,tsau.clinic_id, tsau.create_time,
+        tsau.update_time, tsau.create_by,tsau.update_by, tsau.disabled
         from t_sys_app_user tsau
         <where>
             <if test="query.phone != null and query.phone != ''">
@@ -117,8 +119,8 @@
     </select>
     <select id="exportListAppUser" resultType="com.ruoyi.system.export.TSysAppUserExport">
         select tsau.id, tsau.nick_name, tsau.phone, tsau.birth_time, tsau.sex, tsau.open_id,tsau.office_open_id,
-        tsau.chronic_disease_id,tsau.status,tsau.last_reminder_time, tsau.create_time, tsau.update_time, tsau.create_by,
-        tsau.update_by, tsau.disabled, tsi.lastInspectionTime
+        tsau.chronic_disease_id,tsau.status,tsau.last_reminder_time,tsau.clinic_id, tsau.create_time,
+        tsau.update_time, tsau.create_by,tsau.update_by, tsau.disabled, tsi.lastInspectionTime
         from t_sys_app_user tsau
         left join (select id,app_user_id, max(check_time) as lastInspectionTime from t_sys_inspection limit 1) tsi on tsi.app_user_id = tsau.id
         <where>

--
Gitblit v1.7.1