优化
This commit is contained in:
parent
d29f920833
commit
e4c31f6e30
@ -68,7 +68,7 @@ public class InspectQuestionExamineController {
|
||||
inspectQuestionExamine.setCreateTime(new Date());
|
||||
boolean ok = inspectQuestionExamineService.saveInfo(inspectQuestionExamine);
|
||||
if (ok) {
|
||||
result.success("审批成功!");
|
||||
result.success("操作成功!");
|
||||
} else {
|
||||
result.success("操作失败!");
|
||||
}
|
||||
|
||||
@ -49,10 +49,13 @@ public class InspectQuestionExamineServiceImpl extends ServiceImpl<InspectQuesti
|
||||
LambdaUpdateWrapper<InspectQuestion> wrapperQuestion = Wrappers.<InspectQuestion>lambdaUpdate();
|
||||
wrapperQuestion.set(InspectQuestion::getState, 2);
|
||||
wrapperQuestion.eq(InspectQuestion::getId, inspectQuestionExamine.getInspectQuestionId());
|
||||
inspectQuestionService.update(wrapperQuestion);
|
||||
boolean update = inspectQuestionService.update(wrapperQuestion);
|
||||
if (update) {
|
||||
updateState(inspectQuestionExamine);
|
||||
return this.save(inspectQuestionExamine);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private void updateState(InspectQuestionExamine inspectQuestionExamine) {
|
||||
InspectQuestion inspectQuestion = inspectQuestionService.getById(inspectQuestionExamine.getInspectQuestionId());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user