质量监督修改
This commit is contained in:
parent
ca6337aeb9
commit
8f666a68cf
@ -80,7 +80,6 @@ public class SystemUserServiceImpl extends ServiceImpl<SystemUserMapper, SystemU
|
||||
} else {
|
||||
wrapper.eq("u.sn", systemUser.getSn());
|
||||
}
|
||||
wrapper.ne("u.user_id", user.getUserId());
|
||||
return baseMapper.getPageList(wrapper);
|
||||
}
|
||||
|
||||
|
||||
@ -77,9 +77,9 @@ public class InspectQuestion implements Serializable {
|
||||
private String createByName;
|
||||
|
||||
/**
|
||||
* 状态(1:待整改;2:已整改;3:已闭合;4:已驳回)
|
||||
* 状态(1:待整改;2:待审核;3:已闭合;4:已驳回)
|
||||
*/
|
||||
@Excel(name = "状态(1:待整改;2:已整改;3:已闭合;4:已驳回)", width = 15)
|
||||
@ApiModelProperty(value = "状态(1:待整改;2:已整改;3:已闭合;4:已驳回)")
|
||||
@Excel(name = "状态(1:待整改;2:待审核;3:已闭合;4:已驳回)", width = 15)
|
||||
@ApiModelProperty(value = "状态(1:待整改;2:待审核;3:已闭合;4:已驳回)")
|
||||
private Integer state;
|
||||
}
|
||||
|
||||
@ -65,7 +65,6 @@ public class InspectQuestionExamineServiceImpl extends ServiceImpl<InspectQuesti
|
||||
} else if (inspectQuestions.stream().filter(i -> i.getState() < 2).collect(Collectors.toList()).size() == 0) {
|
||||
state = 3;
|
||||
}
|
||||
if (state != 2) {
|
||||
LambdaUpdateWrapper<InspectRecord> recordWrapper = Wrappers.<InspectRecord>lambdaUpdate();
|
||||
recordWrapper.set(InspectRecord::getState, state);
|
||||
if (state == 4) {
|
||||
@ -75,4 +74,3 @@ public class InspectQuestionExamineServiceImpl extends ServiceImpl<InspectQuesti
|
||||
inspectRecordService.update(recordWrapper);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -164,6 +164,9 @@ public class InspectRecordServiceImpl extends ServiceImpl<InspectRecordMapper, I
|
||||
wrapper.eq(InspectQuestionExamine::getExamineState, 0);
|
||||
inspectQuestionExamineService.update(wrapper);
|
||||
}
|
||||
if (inspectRecord.getState() == 5 && list.stream().filter(l -> l.getState() == 4).collect(Collectors.toList()).size() != list.size()) {
|
||||
return true;
|
||||
}
|
||||
return this.updateById(inspectRecord);
|
||||
}
|
||||
return false;
|
||||
@ -225,8 +228,6 @@ public class InspectRecordServiceImpl extends ServiceImpl<InspectRecordMapper, I
|
||||
inspectRecordVo.setCreateTime(new Date());
|
||||
inspectRecordVo.setCreateBy(user.getUserId());
|
||||
inspectRecordVo.setQuestionNum(inspectRecordVo.getInspectQuestionList().size());
|
||||
String inspectUser = inspectRecordVo.getInspectUser();
|
||||
inspectRecordVo.setInspectUser(StringUtils.isNotBlank(inspectUser) ? inspectUser + "," + user.getUserId() : user.getUserId());
|
||||
if (StringUtils.isNotBlank(inspectRecordVo.getEngineeringSn())) {
|
||||
String projectSn = engineeringService.getOne(Wrappers.<Engineering>lambdaQuery().eq(Engineering::getEngineeringSn, inspectRecordVo.getEngineeringSn())).getProjectSn();
|
||||
inspectRecordVo.setProjectSn(projectSn);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user