Przeglądaj źródła

Merge branch 'develop' of gitadmin/tuoheng_freeway into release

tags/v1.0.0^2
chengwang 1 rok temu
rodzic
commit
225339da5e
1 zmienionych plików z 7 dodań i 1 usunięć
  1. +7
    -1
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/InspectionFileServiceImpl.java

+ 7
- 1
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/InspectionFileServiceImpl.java Wyświetl plik

@@ -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();

Ładowanie…
Anuluj
Zapisz