对根目录添加限制,不允许修改和删除

This commit is contained in:
qiankunpingtai
2019-03-13 14:59:29 +08:00
parent 1d98fb6236
commit 4ae62b3069
4 changed files with 51 additions and 6 deletions

View File

@@ -1223,6 +1223,7 @@ ALTER TABLE jsh_materialcategory DROP FOREIGN KEY FK3EE7F725237A77D8;
-- ----------------------------
-- 修改根目录父节点id为-1
-- 设置根目录编号为1
-- ----------------------------
update jsh_materialcategory set ParentId='-1' where id='1';
@@ -1467,3 +1468,7 @@ DROP FUNCTION _buildOrgAndOrgUserRel;
alter table jsh_user change Status Status tinyint(4) DEFAULT '0' COMMENT '状态0正常1删除2封禁';
update jsh_user set status='0' where status is null;
-- ----------------------------
-- 设置根目录编号为1
-- ----------------------------
update jsh_materialcategory set serial_no='1' where id='1';