From 32a6f0bcae6563f0c785b668dd5a4a907292e48c Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期四, 25 九月 2025 18:14:20 +0800
Subject: [PATCH] 新增满意度统计明细

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

diff --git a/ruoyi-quartz/src/main/resources/mapper/quartz/CollectHISMapper.xml b/ruoyi-quartz/src/main/resources/mapper/quartz/CollectHISMapper.xml
index 358f030..bb424fa 100644
--- a/ruoyi-quartz/src/main/resources/mapper/quartz/CollectHISMapper.xml
+++ b/ruoyi-quartz/src/main/resources/mapper/quartz/CollectHISMapper.xml
@@ -7,7 +7,7 @@
     <resultMap type="com.ruoyi.common.core.domain.entity.SysUserDept" id="SysUserDeptResult">
         <result property="id" column="id"/>
         <result property="orgid" column="orgid"/>
-        <result property="userId" column="user_id"/>
+        <result property="userCode" column="user_code"/>
         <result property="deptId" column="dept_id"/>
         <result property="delFlag" column="del_flag"/>
         <result property="deptCode" column="dept_code"/>
@@ -372,7 +372,7 @@
     </select>
 
     <select id="yhyksxx" parameterType="com.ruoyi.common.core.domain.entity.SysUser" resultMap="SysUserDeptResult">
-        select user_id, user_code, dept_type,dept_code as dept_id,dept_code,dept_name,deptparent,del_flag,orgid
+        select user_id , user_code , dept_type ,dept_code,dept_name,deptparent,del_flag,orgid
         FROM healthy_user_dept
         <where>
             user_id != 'admin'
@@ -394,7 +394,7 @@
             <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
             <if test="viptype != null ">and viptype = #{viptype}</if>
             <if test="pattype != null ">and pattype = #{pattype}</if>
-            <if test="patientno != null ">and patientno = #{patientno}</if>
+            <if test="patientno != null ">and patientno = #{patientno} </if>
             <if test="patidHis != null ">and patid_his = #{patidHis}</if>
             <if test="sdFlag != null ">and sd_flag = #{sdFlag}</if>
             <if test="ageUnit != null ">and age_unit = #{ageUnit}</if>
@@ -419,6 +419,9 @@
             <if test="lastEndTime != null and lastEndTime != ''">
                 and to_char(last_Update_Time, 'YYYY-MM-DD HH24:MI:SS') &lt;= #{lastEndTime}
             </if>
+            <if test="pageSize != null and pageSize!='' ">and rownum&lt;#{pageSize}</if>
+
+
         </where>
     </select>
 

--
Gitblit v1.9.3