|
@@ -203,6 +203,7 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
|
|
|
//update-begin---author:wangshuai ---date:20230216 for:[QQYUN-4163]给部门表加个是否有子节点------------
|
|
|
if (oConvertUtils.isEmpty(sysDepart.getParentId())) {
|
|
|
sysDepart.setParentId("");
|
|
|
+ sysDepart.setSystemType(0);
|
|
|
} else {
|
|
|
//将父部门的设成不是叶子结点
|
|
|
departMapper.setMainLeaf(sysDepart.getParentId(), CommonConstant.NOT_LEAF);
|
|
@@ -213,6 +214,10 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
|
|
|
// 先判断该对象有无父级ID,有则意味着不是最高级,否则意味着是最高级
|
|
|
// 获取父级ID
|
|
|
String parentId = sysDepart.getParentId();
|
|
|
+ if(!departMapper.selectList(Wrappers.<SysDepart>lambdaQuery()
|
|
|
+ .eq(SysDepart::getParentId, sysDepart.getParentId())).isEmpty()){
|
|
|
+ sysDepart.setSystemType(1);
|
|
|
+ }
|
|
|
//update-begin--Author:baihailong Date:20191209 for:部门编码规则生成器做成公用配置
|
|
|
JSONObject formData = new JSONObject();
|
|
|
formData.put("parentId", parentId);
|
|
@@ -237,6 +242,7 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
|
|
|
|
|
|
//若为学校或体育馆
|
|
|
if (Objects.equals(sysDepart.getOrgCategory(), "20") || Objects.equals(sysDepart.getOrgCategory(), "21")) {
|
|
|
+ sysDepart.setSystemType(2);
|
|
|
//创建学校或体育馆的扩展信息内容
|
|
|
AppSite site = new AppSite();
|
|
|
site
|