Commit bcad558c authored by huyuchen's avatar huyuchen

huyc 部门根节点数值修改

parent ff2a0a4e
...@@ -42,6 +42,11 @@ public interface CommonConstants { ...@@ -42,6 +42,11 @@ public interface CommonConstants {
*/ */
Long MENU_TREE_ROOT_ID = -1L; Long MENU_TREE_ROOT_ID = -1L;
/**
* 部门根节点
*/
Long DEPT_TREE_ROOT_ID = 0L;
/** /**
* 菜单 * 菜单
*/ */
......
...@@ -214,7 +214,7 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> impl ...@@ -214,7 +214,7 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> impl
if (null == sysDept) { if (null == sysDept) {
SysDept insertSysDept = new SysDept(); SysDept insertSysDept = new SysDept();
insertSysDept.setName(deptName); insertSysDept.setName(deptName);
insertSysDept.setParentId(CommonConstants.MENU_TREE_ROOT_ID); insertSysDept.setParentId(CommonConstants.DEPT_TREE_ROOT_ID);
insertSysDept.setDeptDn(dn); insertSysDept.setDeptDn(dn);
this.save(insertSysDept); this.save(insertSysDept);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment