|
|
|
@ -91,6 +91,7 @@ public class UserDeptConfigServiceImpl extends ServiceImpl<UserDeptConfigMapper,
|
|
|
|
|
if(depts.isSuccess() && ObjectUtil.isNotEmpty(depts.getData())){ |
|
|
|
|
Optional<Dept> optional = depts.getData().stream().min(Comparator.comparing(Dept::getDeptCategory)); |
|
|
|
|
if(optional.isPresent()){ |
|
|
|
|
config.setDeptCategory(optional.get().getDeptCategory()); |
|
|
|
|
config.setDeptId(optional.get().getId()); |
|
|
|
|
config.setDeptName(optional.get().getDeptName()); |
|
|
|
|
if(optional.get().getDeptCategory() == 4){ |
|
|
|
|