From bfbce9246d238d0fb0e9a5feadd07323cd9287d6 Mon Sep 17 00:00:00 2001
From: dougang <78125310@kidgrow.com>
Date: Fri, 21 Aug 2020 18:44:42 +0800
Subject: [PATCH] 熔断器隔离级别增加注释

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

diff --git a/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysDepartmentMapper.xml b/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysDepartmentMapper.xml
index e18fa69..181b0a0 100644
--- a/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysDepartmentMapper.xml
+++ b/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysDepartmentMapper.xml
@@ -51,6 +51,9 @@
             <if test="p.updateTime != null and p.updateTime !=''">
                 and update_time = #{p.updateTime}
             </if>
+            <if test="p.accountsCount != null and p.accountsCount !=''">
+                and accounts_count = #{p.accountsCount}
+            </if>
         </where>
     </sql>
 
@@ -61,6 +64,7 @@
         from sys_department
         <include refid="where"/>
         order by id desc
+        limit 1
     </select>
 
     <!--定义根据-SysDepartment当作查询条件返回对象集合-->
@@ -71,4 +75,9 @@
         <include refid="where"/>
         order by id desc
     </select>
+    <select id="checkDepartmentName" resultType="string">
+        SELECT org_name FROM sys_organization
+WHERE org_parent_id =( SELECT org_id FROM sys_hospital WHERE id = #{hosId} )
+AND org_name = #{departmentName}
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0