From 7ccdd531068f71125c957360d5ef9bbdecc0fca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=95=E9=87=91=E6=B3=BD?= <1098696801@qq.com> Date: Sat, 25 Mar 2023 16:44:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E5=88=A0=E9=99=A4=E6=A0=B9?= =?UTF-8?q?=E8=8A=82=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/magic-api/api/系统管理/组织机构/删除.ms | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/data/magic-api/api/系统管理/组织机构/删除.ms b/data/magic-api/api/系统管理/组织机构/删除.ms index a99459d..2417476 100644 --- a/data/magic-api/api/系统管理/组织机构/删除.ms +++ b/data/magic-api/api/系统管理/组织机构/删除.ms @@ -5,7 +5,7 @@ "groupId" : "8295fc13678d4144bf7363c465247a50", "name" : "删除", "createTime" : null, - "updateTime" : 1647615807925, + "updateTime" : 1679552802807, "lock" : "0", "createBy" : null, "updateBy" : null, @@ -126,9 +126,9 @@ var userCount = db.selectInt("select count(1) from sys_user where is_del = 0 and if(userCount > 0){ exit 500, '机构存在用户,不允许删除' } -var root = db.selectValue("select pid from sys_office where is_del = 0 and id = #{id}") -if(root == '0'){ - exit 500, '不能删除根节点' -} +// var root = db.selectValue("select pid from sys_office where is_del = 0 and id = #{id}") +// if(root == '0'){ +// exit 500, '不能删除根节点' +// } // db.table('sys_user_office').where().eq("office_id",id).delete(); -return db.table("sys_office").logic().where().eq("id",id).delete(); \ No newline at end of file +return db.table("sys_office").logic().where().eq("id",id).delete();