优化
This commit is contained in:
parent
e4c31f6e30
commit
e4813a5bf1
@ -64,7 +64,7 @@ public class AcceptInspectRecordServiceImpl extends ServiceImpl<AcceptInspectRec
|
|||||||
private IAcceptInspectQuestionService acceptInspectQuestionService;
|
private IAcceptInspectQuestionService acceptInspectQuestionService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IAcceptInspectQuestionExamineService acceptAcceptInspectQuestionExamineService;
|
private IAcceptInspectQuestionExamineService acceptInspectQuestionExamineService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ICheckAcceptApplyService checkAcceptApplyService;
|
private ICheckAcceptApplyService checkAcceptApplyService;
|
||||||
@ -147,9 +147,9 @@ public class AcceptInspectRecordServiceImpl extends ServiceImpl<AcceptInspectRec
|
|||||||
wrapper.set(AcceptInspectQuestionExamine::getSuggest, suggest);
|
wrapper.set(AcceptInspectQuestionExamine::getSuggest, suggest);
|
||||||
wrapper.in(AcceptInspectQuestionExamine::getInspectQuestionId, questionId);
|
wrapper.in(AcceptInspectQuestionExamine::getInspectQuestionId, questionId);
|
||||||
wrapper.eq(AcceptInspectQuestionExamine::getExamineState, 0);
|
wrapper.eq(AcceptInspectQuestionExamine::getExamineState, 0);
|
||||||
acceptAcceptInspectQuestionExamineService.update(wrapper);
|
acceptInspectQuestionExamineService.update(wrapper);
|
||||||
}
|
}
|
||||||
if (acceptInspectRecord.getState() == 5 && list.stream().filter(l -> l.getState() == 4).collect(Collectors.toList()).size() != list.size()) {
|
if (acceptInspectRecord.getState() == 5 && list.stream().filter(l -> l.getState() == 4 || l.getState() == 3).collect(Collectors.toList()).size() != list.size()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return this.updateById(acceptInspectRecord);
|
return this.updateById(acceptInspectRecord);
|
||||||
|
|||||||
@ -168,7 +168,7 @@ public class InspectRecordServiceImpl extends ServiceImpl<InspectRecordMapper, I
|
|||||||
wrapper.eq(InspectQuestionExamine::getExamineState, 0);
|
wrapper.eq(InspectQuestionExamine::getExamineState, 0);
|
||||||
inspectQuestionExamineService.update(wrapper);
|
inspectQuestionExamineService.update(wrapper);
|
||||||
}
|
}
|
||||||
if (inspectRecord.getState() == 5 && list.stream().filter(l -> l.getState() == 4).collect(Collectors.toList()).size() != list.size()) {
|
if (inspectRecord.getState() == 5 && list.stream().filter(l -> l.getState() == 4 || l.getState() == 3).collect(Collectors.toList()).size() != list.size()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return this.updateById(inspectRecord);
|
return this.updateById(inspectRecord);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user