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()) .setNegativeId(negative.getId())
.setCrtTime(now) .setCrtTime(now)
.setUpdTime(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 (InspectCaseEnum.isItTure(verifyData.getCheckStatus())) {
if (CollectionUtil.isNotEmpty(item.getHandleResultCode())) { if (CollectionUtil.isNotEmpty(item.getHandleResultCode())) {
negativeBlame.setHandleResultCode(String.join(",", item.getHandleResultCode())); negativeBlame.setHandleResultCode(String.join(",", item.getHandleResultCode()));
} }
List<VerifyData.BlameLeader> blameLeaders = verifyData.getBlameLeaders().stream() if (!blameLeaders.isEmpty() && CollectionUtil.isNotEmpty(blameLeaders.get(0).getLeadHandleResultCode())) {
.filter(leader -> leader.getBlameIdCodes().contains(item.getBlameIdCode())) negativeBlame.setLeadHandleResultCode(String.join(",", blameLeaders.get(0).getLeadHandleResultCode()));
.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()));
}
} }
problemRelations.addAll(item.getProblems().stream().filter(problem -> StrUtil.isNotBlank(problem.getOneLevelCode())).map(problem -> { problemRelations.addAll(item.getProblems().stream().filter(problem -> StrUtil.isNotBlank(problem.getOneLevelCode())).map(problem -> {
NegativeProblemRelation problemRelation = new NegativeProblemRelation(); NegativeProblemRelation problemRelation = new NegativeProblemRelation();

Loading…
Cancel
Save