|
@@ -728,6 +728,7 @@ public class WmReportServiceImpl extends ServiceImpl<WmReportMapper, WmReport> i
|
|
|
.eq(taskScorePackage.getUpdateTime() != null, WmScorePackage::getUpdateTime, taskScorePackage.getUpdateTime())
|
|
|
.eq(taskScorePackage.getUpdateUser() != null, WmScorePackage::getUpdateUser, taskScorePackage.getUpdateUser())
|
|
|
.set(WmScorePackage::getScorePackageStatus, scorePackageStatus)
|
|
|
+ .set(WmScorePackage::getPackageFinishTime, approvedCount >= taskScorePackage.getScore() ? null : now)
|
|
|
.set(WmScorePackage::getTaskAddFlag, taskAddFlagStr)
|
|
|
.set(WmScorePackage::getUpdateTime, now)
|
|
|
.set(WmScorePackage::getUpdateUser, operatorId));
|
|
@@ -755,6 +756,7 @@ public class WmReportServiceImpl extends ServiceImpl<WmReportMapper, WmReport> i
|
|
|
.eq(taskScorePackage.getUpdateTime() != null, WmScorePackage::getUpdateTime, taskScorePackage.getUpdateTime())
|
|
|
.eq(taskScorePackage.getUpdateUser() != null, WmScorePackage::getUpdateUser, taskScorePackage.getUpdateUser())
|
|
|
.set(WmScorePackage::getScorePackageStatus, scorePackageStatus)
|
|
|
+ .set(WmScorePackage::getPackageFinishTime, ScorePackageStatusEnum.TO_BE_SETTLED.val().equals(scorePackageStatus) ? now : null)
|
|
|
.set(WmScorePackage::getTaskAddFlag, taskAddFlagStr)
|
|
|
.set(WmScorePackage::getUpdateTime, now)
|
|
|
.set(WmScorePackage::getUpdateUser, operatorId));
|
|
@@ -905,6 +907,7 @@ public class WmReportServiceImpl extends ServiceImpl<WmReportMapper, WmReport> i
|
|
|
.mapToInt(WmTask::getScore).sum();
|
|
|
if (superApprovedScore >= taskScorePackage.getScore()) {
|
|
|
updateScorePackage.setScorePackageStatus(ScorePackageStatusEnum.TO_BE_SETTLED.val());
|
|
|
+ updateScorePackage.setPackageFinishTime(LocalDateTime.now());
|
|
|
} else {
|
|
|
updateScorePackage.setScorePackageStatus(ScorePackageStatusEnum.TO_BE_APPROVAL.val());
|
|
|
}
|
|
@@ -934,6 +937,7 @@ public class WmReportServiceImpl extends ServiceImpl<WmReportMapper, WmReport> i
|
|
|
WmScorePackage updateScorePackage = new WmScorePackage();
|
|
|
updateScorePackage.setId(task.getScorePackageId());
|
|
|
updateScorePackage.setScorePackageStatus(ScorePackageStatusEnum.TO_BE_SETTLED.val());
|
|
|
+ updateScorePackage.setPackageFinishTime(LocalDateTime.now());
|
|
|
updateScorePackage.setTaskAddFlag("0");
|
|
|
wmScorePackageService.updateById(updateScorePackage);
|
|
|
}
|