|
|
@@ -201,8 +201,14 @@ public class InspectionFileServiceImpl implements IInspectionFileService { |
|
|
|
.eq(InspectionFile::getId, dto.getId()) |
|
|
|
.eq(InspectionFile::getMark, 1) |
|
|
|
.eq(StringUtils.isNotEmpty(dto.getTenantId()), InspectionFile::getTenantId, tenantId)); |
|
|
|
//修改对应的问题类型 |
|
|
|
//修改对应的问题类型和code及questionName |
|
|
|
inspectionFile.setQuestionId(dto.getQuestionId()); |
|
|
|
QuestionType questionType = questionTypeMapper.selectById(dto.getQuestionId()); |
|
|
|
if(ObjectUtil.isNotNull(questionType)){ |
|
|
|
inspectionFile.setQuestionCode(questionType.getCode()); |
|
|
|
inspectionFile.setQuestionName(questionType.getContent()); |
|
|
|
} |
|
|
|
|
|
|
|
int count = inspectionFileMapper.updateById(inspectionFile); |
|
|
|
if (count <= 0) { |
|
|
|
return JsonResult.error(); |