update 取消多余父部门类别编码获取
This commit is contained in:
parent
624fd87751
commit
479b17a8c2
@ -41,11 +41,6 @@ public class SysDeptVo implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String parentName;
|
private String parentName;
|
||||||
|
|
||||||
/**
|
|
||||||
* 父部门类别编码
|
|
||||||
*/
|
|
||||||
private String parentCategory;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 祖级列表
|
* 祖级列表
|
||||||
*/
|
*/
|
||||||
|
@ -135,11 +135,8 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
SysDeptVo parentDept = baseMapper.selectVoOne(new LambdaQueryWrapper<SysDept>()
|
SysDeptVo parentDept = baseMapper.selectVoOne(new LambdaQueryWrapper<SysDept>()
|
||||||
.select(SysDept::getDeptName, SysDept::getDeptCategory).eq(SysDept::getDeptId, dept.getParentId()));
|
.select(SysDept::getDeptName).eq(SysDept::getDeptId, dept.getParentId()));
|
||||||
if (ObjectUtil.isNotNull(parentDept)) {
|
dept.setParentName(ObjectUtil.isNotNull(parentDept) ? parentDept.getDeptName() : null);
|
||||||
dept.setParentName(parentDept.getDeptName());
|
|
||||||
dept.setParentCategory(parentDept.getDeptCategory());
|
|
||||||
}
|
|
||||||
return dept;
|
return dept;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user