From e7f7daae5d21ad2988cadd25b6987ca5e7ef8001 Mon Sep 17 00:00:00 2001 From: Fixiaobai <fixiaobai@163.com> Date: 星期六, 09 九月 2023 09:51:20 +0800 Subject: [PATCH] 修改bug --- standard-server/src/main/resources/mapper/OrganizationalMapper.xml | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/standard-server/src/main/resources/mapper/OrganizationalMapper.xml b/standard-server/src/main/resources/mapper/OrganizationalMapper.xml index e0ab681..5fee3e9 100644 --- a/standard-server/src/main/resources/mapper/OrganizationalMapper.xml +++ b/standard-server/src/main/resources/mapper/OrganizationalMapper.xml @@ -9,7 +9,10 @@ </resultMap> <select id="OrganizationalTree" resultMap="OrganizationalMap"> - SELECT o.id, o.`department` FROM organizational o where o.`father_id` = #{father_id} + SELECT o.id, o.`department` + FROM organizational o + where o.`father_id` = #{father_id} + and o.state = 1 </select> <select id="getDepartmentListTable" resultType="map"> @@ -18,4 +21,10 @@ WHERE o.`father_id` = #{departmentId} AND o.`state` = 1 </select> + + <select id="deleteDepartment"> + update lims_laboratory.organizational + set state=0 + where id in (${ids}) + </select> </mapper> -- Gitblit v1.9.3