|
|
|
|
@ -144,19 +144,20 @@ public class ApplyCompletionAction implements Action {
|
|
|
|
|
.setNegativeId(negative.getId()) |
|
|
|
|
.setCrtTime(now) |
|
|
|
|
.setUpdTime(now); |
|
|
|
|
List<VerifyData.BlameLeader> blameLeaders = verifyData.getBlameLeaders().stream() |
|
|
|
|
.filter(leader -> leader.getBlameIdCodes().contains(item.getBlameIdCode())) |
|
|
|
|
.toList(); |
|
|
|
|
if(!blameLeaders.isEmpty()) { |
|
|
|
|
BeanUtil.copyProperties(blameLeaders.get(0), negativeBlame); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
// 属实
|
|
|
|
|
if (InspectCaseEnum.isItTure(verifyData.getCheckStatus())) { |
|
|
|
|
if (CollectionUtil.isNotEmpty(item.getHandleResultCode())) { |
|
|
|
|
negativeBlame.setHandleResultCode(String.join(",", item.getHandleResultCode())); |
|
|
|
|
} |
|
|
|
|
List<VerifyData.BlameLeader> blameLeaders = verifyData.getBlameLeaders().stream() |
|
|
|
|
.filter(leader -> leader.getBlameIdCodes().contains(item.getBlameIdCode())) |
|
|
|
|
.toList(); |
|
|
|
|
if(!blameLeaders.isEmpty()) { |
|
|
|
|
BeanUtil.copyProperties(blameLeaders.get(0), negativeBlame); |
|
|
|
|
if (CollectionUtil.isNotEmpty(blameLeaders.get(0).getLeadHandleResultCode())) { |
|
|
|
|
negativeBlame.setLeadHandleResultCode(String.join(",", blameLeaders.get(0).getLeadHandleResultCode())); |
|
|
|
|
} |
|
|
|
|
if (!blameLeaders.isEmpty() && CollectionUtil.isNotEmpty(blameLeaders.get(0).getLeadHandleResultCode())) { |
|
|
|
|
negativeBlame.setLeadHandleResultCode(String.join(",", blameLeaders.get(0).getLeadHandleResultCode())); |
|
|
|
|
} |
|
|
|
|
problemRelations.addAll(item.getProblems().stream().filter(problem -> StrUtil.isNotBlank(problem.getOneLevelCode())).map(problem -> { |
|
|
|
|
NegativeProblemRelation problemRelation = new NegativeProblemRelation(); |
|
|
|
|
|