|
|
@ -66,7 +66,7 @@ public class DeptServiceImpl extends ServiceImpl<DeptMapper, Dept> implements ID |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean submit(Dept dept) { |
|
|
|
public boolean submit(Dept dept) { |
|
|
|
if (dept.getParentId() == null) { |
|
|
|
if (Func.isEmpty(dept.getParentId())) { |
|
|
|
dept.setParentId(BladeConstant.TOP_PARENT_ID); |
|
|
|
dept.setParentId(BladeConstant.TOP_PARENT_ID); |
|
|
|
dept.setAncestors("0"); |
|
|
|
dept.setAncestors("0"); |
|
|
|
} |
|
|
|
} |
|
|
|