|
@@ -561,7 +561,6 @@ public class WmReportServiceImpl extends ServiceImpl<WmReportMapper, WmReport> i
|
|
|
|
|
|
// 批量查询积分包
|
|
// 批量查询积分包
|
|
List<WmScorePackage> taskScorePackages = wmScorePackageService.listByIds(scorePackageIds);
|
|
List<WmScorePackage> taskScorePackages = wmScorePackageService.listByIds(scorePackageIds);
|
|
- Map<String, WmScorePackage> scorePackageMap = taskScorePackages.stream().collect(Collectors.toMap(WmScorePackage::getId, Function.identity()));
|
|
|
|
|
|
|
|
// 查询企业对应的积分包
|
|
// 查询企业对应的积分包
|
|
Integer reportScorePackageId = queryReport.getScoreId();
|
|
Integer reportScorePackageId = queryReport.getScoreId();
|
|
@@ -574,12 +573,6 @@ public class WmReportServiceImpl extends ServiceImpl<WmReportMapper, WmReport> i
|
|
throw new RuntimeException("任务不存在");
|
|
throw new RuntimeException("任务不存在");
|
|
}
|
|
}
|
|
|
|
|
|
- WmScorePackage taskScorePackage = scorePackageMap.get(queryTask.getScorePackageId());
|
|
|
|
- if (!StrUtil.equals(ScorePackageStatusEnum.IN_PROGRESS.val(), taskScorePackage.getScorePackageStatus())
|
|
|
|
- && !StrUtil.equals(ScorePackageStatusEnum.TO_BE_APPROVAL.val(), taskScorePackage.getScorePackageStatus())) {
|
|
|
|
- throw new RuntimeException("积分包状态不支持审核");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
// STEP1: 更新任务企业审核状态
|
|
// STEP1: 更新任务企业审核状态
|
|
LambdaUpdateWrapper<WmTask> updateTaskWrapper = new LambdaUpdateWrapper<>();
|
|
LambdaUpdateWrapper<WmTask> updateTaskWrapper = new LambdaUpdateWrapper<>();
|
|
updateTaskWrapper.eq(WmTask::getId, id);
|
|
updateTaskWrapper.eq(WmTask::getId, id);
|