From 0a2e9f43f957e149d6234bf9dbe72d26bcc418bf Mon Sep 17 00:00:00 2001 From: zhaoxiaohao <913652501@qq.com> Date: Fri, 14 Aug 2020 15:51:40 +0800 Subject: [PATCH] 回滚 --- kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysDepartmentMapper.xml | 8 ++++++++ 1 files changed, 8 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 cb55f28..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> @@ -72,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