From 9a18aa1ec467a6bfbdf11f957f5c40e6326284cd Mon Sep 17 00:00:00 2001
From: zhaoxiaohao <279049017@qq.com>
Date: Tue, 15 Sep 2020 11:53:33 +0800
Subject: [PATCH] 获取到期时间的接口,添加判断条件

---
 kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysHospitalMapper.xml |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysHospitalMapper.xml b/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysHospitalMapper.xml
index b735ca9..a46fb44 100644
--- a/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysHospitalMapper.xml
+++ b/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysHospitalMapper.xml
@@ -164,7 +164,7 @@
                                 <if test="itemto.flag">
                                 </if>
                                 <if test="!itemto.flag">
-                                    or ( HOS.is_del = 0 and HOS.enabled=1)
+                                    or ( hospitals.hosisdel = 0 and hospitals.hosenabled=1)
                                 </if>
                             </when>
                             <when test="inx==2">
@@ -183,7 +183,7 @@
                                              index="">
                                         create_user_org_code = #{itemtoto.orgCode}
                                     </foreach>
-                                    and HOS.is_del = 0 and HOS.enabled=1
+                                    and hospitals.hosisdel = 0 and hospitals.hosenabled=1
                                     )
                                 </if>
                             </when>
@@ -193,7 +193,7 @@
                                     create_user_org_code = #{itemto.object}
                                 </if>
                                 <if test="!itemto.flag">
-                                    or (create_user_org_code = #{itemto.object} and HOS.is_del = 0 and HOS.enabled=1)
+                                    or (create_user_org_code = #{itemto.object} and hospitals.hosisdel = 0 and hospitals.hosenabled=1)
                                 </if>
                             </when>
                             <when test="inx == 4">
@@ -202,17 +202,17 @@
                                     create_user_org_code like '${itemto.object}%'
                                 </if>
                                 <if test="!itemto.flag">
-                                    or (create_user_org_code like '${itemto.object}%' and HOS.is_del = 0 and
-                                    HOS.enabled=1)
+                                    or (create_user_org_code like '${itemto.object}%' and hospitals.hosisdel = 0 and
+                                    hospitals.hosenabled=1)
                                 </if>
                             </when>
                             <when test="inx == 5">
                                 <if test="itemto.flag">
                                     AND
-                                    HOS.create_user_id = #{itemto.object}
+                                    hospitals.create_user_id = #{itemto.object}
                                 </if>
                                 <if test="!itemto.flag">
-                                    or (HOS.create_user_id = #{itemto.object} and HOS.is_del = 0 and HOS.enabled=1)
+                                    or (hospitals.create_user_id = #{itemto.object} and hospitals.hosisdel = 0 and hospitals.hosenabled=1)
                                 </if>
                             </when>
                             <otherwise>
@@ -258,7 +258,8 @@
         HOS.create_time,
         HOS.is_del hosisdel,
         HOS.enabled hosenabled,
-        ORG.id AS hosorgid
+        ORG.id AS hosorgid,
+        HOS.create_user_id
         FROM
         sys_hospital HOS
         LEFT JOIN sys_organization ORG ON HOS.org_id = ORG.id and ORG.is_del=0
@@ -273,7 +274,7 @@
         where is_del=0 and enabled=1 and hospital_name LIKE concat('%',#{hospitalName},'%')
         order by hospital_name desc
     </select>
-    <select id="chartHospital" resultType="int" parameterType="integer">
+    <select id="chartHospital" resultType="int" parameterType="int">
         SELECT
         count( DISTINCT hospital_name ) hospitalCount
         FROM

--
Gitblit v1.8.0