Parcourir la source

Merge branch 'develop' of gitadmin/tuoheng_freeway into release

tags/v1.0.0^2
chengwang il y a 1 an
Parent
révision
225339da5e
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  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 Voir le fichier

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

Chargement…
Annuler
Enregistrer