|
|
@@ -227,6 +227,13 @@ public class IotRyDailyReportServiceImpl implements IotRyDailyReportService {
|
|
|
if (ObjUtil.isNotEmpty(parentId)) {
|
|
|
DataPermissionUtils.executeIgnore(() -> {
|
|
|
DeptDO projectDept = deptService.getDept(parentId);
|
|
|
+ // 当前部门的上级部门如果 不是项目部 再向上找一级 煤层气 项目
|
|
|
+ if (!"2".equals(projectDept.getType())) {
|
|
|
+ DeptDO newLevelDept = deptService.getDept(projectDept.getParentId());
|
|
|
+ // 将 newLevelDept 对象 关键字段赋值给 projectDept
|
|
|
+ projectDept.setId(newLevelDept.getId());
|
|
|
+ projectDept.setType(newLevelDept.getType());
|
|
|
+ }
|
|
|
// 查找队伍上级项目部 拥有‘项目部日报审批RY’角色 的审批人 如果查找不到 则使用 瑞鹰国际 下拥有‘项目部日报审批RY’角色的审批人
|
|
|
if (ObjUtil.isNotEmpty(projectDept) && "2".equals(projectDept.getType())) {
|
|
|
// 查询项目部下具有 项目部日报审批RY 角色的人员 如果查找不到 查询 瑞鹰国际下 拥有‘项目部日报审批RY’角色的审批人
|