|
|
@ -279,6 +279,7 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
boolean hasRejected = list.stream().anyMatch(item -> item.getStatus() == 4);
|
|
|
|
boolean hasRejected = list.stream().anyMatch(item -> item.getStatus() == 4);
|
|
|
|
boolean hased = list.stream().anyMatch(item -> item.getStatus() == 5);
|
|
|
|
boolean hased = list.stream().anyMatch(item -> item.getStatus() == 5);
|
|
|
|
LocalDateTime finishTime = null;
|
|
|
|
LocalDateTime finishTime = null;
|
|
|
|
|
|
|
|
String btgyy=null;
|
|
|
|
if (hasPendingApproval) {
|
|
|
|
if (hasPendingApproval) {
|
|
|
|
// 资产状态存在待审批,任务状态为进行中
|
|
|
|
// 资产状态存在待审批,任务状态为进行中
|
|
|
|
taskStatus = 1;
|
|
|
|
taskStatus = 1;
|
|
|
@ -290,6 +291,7 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
} else if (allApproved && !hasPendingApproval && !hasRejected && hasExpired) {
|
|
|
|
} else if (allApproved && !hasPendingApproval && !hasRejected && hasExpired) {
|
|
|
|
// 资产状态全部为已通过,资产完成时间有超期的为超期完成
|
|
|
|
// 资产状态全部为已通过,资产完成时间有超期的为超期完成
|
|
|
|
taskStatus = 3;
|
|
|
|
taskStatus = 3;
|
|
|
|
|
|
|
|
btgyy=req.getBtgyy();
|
|
|
|
finishTime = LocalDateTime.now();
|
|
|
|
finishTime = LocalDateTime.now();
|
|
|
|
taskSaveOrDelete(req);
|
|
|
|
taskSaveOrDelete(req);
|
|
|
|
} else if (hasRejected) {
|
|
|
|
} else if (hasRejected) {
|
|
|
@ -310,7 +312,7 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
taskStatus = 3;
|
|
|
|
taskStatus = 3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//修改主表任务状态
|
|
|
|
//修改主表任务状态
|
|
|
|
assetTaskDao.updateByTaskId(taskStatus, req.getTaskId(), finishTime);
|
|
|
|
assetTaskDao.updateByTaskId(taskStatus, req.getTaskId(), finishTime,btgyy);
|
|
|
|
return a;
|
|
|
|
return a;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|