Browse Source

添加问题状态属性改变

tags/v1.0.0^2
chengwang 1 year ago
parent
commit
59dff0a029
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspectionfile/update/UpdateInspectionFileQuestionTypeService.java

+ 2
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspectionfile/update/UpdateInspectionFileQuestionTypeService.java View File

import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.tuoheng.admin.entity.InspectionFile; import com.tuoheng.admin.entity.InspectionFile;
import com.tuoheng.admin.entity.QuestionType; import com.tuoheng.admin.entity.QuestionType;
import com.tuoheng.admin.enums.InspectionFileStatusEnum;
import com.tuoheng.admin.enums.code.inspectionfile.EditInspectionFileQuestionTypeCodeEnum; import com.tuoheng.admin.enums.code.inspectionfile.EditInspectionFileQuestionTypeCodeEnum;
import com.tuoheng.admin.mapper.InspectionFileMapper; import com.tuoheng.admin.mapper.InspectionFileMapper;
import com.tuoheng.admin.mapper.QuestionTypeMapper; import com.tuoheng.admin.mapper.QuestionTypeMapper;
inspectionFile.setQuestionCode(questionType.getCode()); inspectionFile.setQuestionCode(questionType.getCode());
inspectionFile.setQuestionName(questionType.getContent()); inspectionFile.setQuestionName(questionType.getContent());
inspectionFile.setQuestionId(questionType.getId()); inspectionFile.setQuestionId(questionType.getId());
inspectionFile.setStatus(15);
inspectionFile.setStatus(InspectionFileStatusEnum.CONFIRMED.getCode());
inspectionFile.setUpdateUser(userId); inspectionFile.setUpdateUser(userId);
inspectionFile.setUpdateTime(DateUtils.now()); inspectionFile.setUpdateTime(DateUtils.now());
Integer rowId = inspectionFileMapper.updateById(inspectionFile); Integer rowId = inspectionFileMapper.updateById(inspectionFile);

Loading…
Cancel
Save