From 8fbd14764be455c53d3722e4d174e87fadf41a51 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 04 九月 2025 09:28:06 +0800
Subject: [PATCH] SQL处理

---
 ruoyi-quartz/src/main/resources/mapper/quartz/CollectHISMapper.xml |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/ruoyi-quartz/src/main/resources/mapper/quartz/CollectHISMapper.xml b/ruoyi-quartz/src/main/resources/mapper/quartz/CollectHISMapper.xml
index b3fed9d..1376bcd 100644
--- a/ruoyi-quartz/src/main/resources/mapper/quartz/CollectHISMapper.xml
+++ b/ruoyi-quartz/src/main/resources/mapper/quartz/CollectHISMapper.xml
@@ -365,16 +365,16 @@
 
     <select id="yhyjsxx" parameterType="com.ruoyi.common.core.domain.entity.SysUser" resultMap="SysUserRoleResult">
         select user_id, role_id, orgid
-        FROM yhyjsxx
+        FROM healthy_user_role
         <where>
             <if test="hisUserId != null ">and user_id = #{hisUserId}</if>
         </where>
     </select>
 
     <select id="yhyksxx" parameterType="com.ruoyi.common.core.domain.entity.SysUser" resultMap="SysUserDeptResult">
-        select user_id, user_code, dept_type,department_id as
-        dept_id,dept_name,deptparent,del_flag,orgid,create_time,create_by,update_time,update_by
-        FROM yhyksxx
+        select user_id, user_code, dept_type,dept_code as
+        dept_id,dept_name,deptparent,del_flag,orgid
+        FROM healthy_user_dept
         <where>
             user_id != 'admin'
             <if test="hisUserId != null ">and user_id = #{hisUserId}</if>
@@ -627,6 +627,7 @@
                d.email,
                d.status,
                d.his_dept_id,
+               d.orgid,
                d.his_parent_id
         FROM healthy_dept d
 

--
Gitblit v1.9.3