From 862a949385d06a6ab0162912a3e8f501afdd8e0d Mon Sep 17 00:00:00 2001 From: zhaoxiaohao <279049017@qq.com> Date: Mon, 26 Oct 2020 17:11:43 +0800 Subject: [PATCH] 修改 将数据流关闭的bug --- kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysDepartmentMapper.xml | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 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 c858f7b..e7be82d 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 @@ -15,9 +15,6 @@ <if test="p.id != null and p.id !=''"> and id = #{p.id} </if> - <if test="p.hospitalId != null and p.hospitalId !=''"> - and hospital_id = #{p.hospitalId} - </if> <if test="p.departmentName != null and p.departmentName !=''"> and department_name = #{p.departmentName} </if> @@ -78,4 +75,14 @@ <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> + <select id="updatePay" resultType="boolean"> + UPDATE sys_department + set is_pay=#{isPay} + where id=#{departmentId} + </select> </mapper> \ No newline at end of file -- Gitblit v1.8.0