From f30a977b18541d2f1b9a7863b1377e5f366df9dc Mon Sep 17 00:00:00 2001 From: zhaoxiaohao <279049017@qq.com> Date: Mon, 16 Nov 2020 18:01:41 +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..0766182 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} AND is_del=0 and enabled=1 + </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