Browse Source

fit: 优化完善

master
wxc 4 months ago
parent
commit
c9d822451d
  1. 17
      src/main/java/com/biutag/supervision/flow/action/ApplyCompletionAction.java

17
src/main/java/com/biutag/supervision/flow/action/ApplyCompletionAction.java

@ -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();

Loading…
Cancel
Save