Browse Source

Merge branch 'develop' of gitadmin/tuoheng_telecomumale into release

tags/v1.0.0^2
chengwang 1 year ago
parent
commit
5005bf5b2b
1 changed files with 9 additions and 4 deletions
  1. +9
    -4
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/dsp/DspCallbackServiceImpl.java

+ 9
- 4
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/dsp/DspCallbackServiceImpl.java View File

inspectionFile.setQuestionCode(questionFile.getQuestionCode()); inspectionFile.setQuestionCode(questionFile.getQuestionCode());
//问题id //问题id
//根据questionCode查询问题类型表出对应的id值 //根据questionCode查询问题类型表出对应的id值
QuestionType questionTypeData = null;
if (StringUtils.isNotEmpty(questionFile.getQuestionCode())) { if (StringUtils.isNotEmpty(questionFile.getQuestionCode())) {
QuestionType questionType = questionTypeMapper.selectOne(Wrappers.<QuestionType>lambdaQuery()
questionTypeData= questionTypeMapper.selectOne(Wrappers.<QuestionType>lambdaQuery()
.eq(QuestionType::getCode, questionFile.getQuestionCode()) .eq(QuestionType::getCode, questionFile.getQuestionCode())
.eq(QuestionType::getMark, 1)); .eq(QuestionType::getMark, 1));
inspectionFile.setQuestionId(questionType.getId());
inspectionFile.setQuestionId(questionTypeData.getId());
} }
// 问题名称 // 问题名称
inspectionFile.setQuestionName(questionFile.getQuestionName()); inspectionFile.setQuestionName(questionFile.getQuestionName());
} }
inspectionFile.setFileImage(fileMarkerUrl); inspectionFile.setFileImage(fileMarkerUrl);


// 问题图片审核状态
inspectionFile.setStatus(InspectionFileStatusEnum.WAIT_CONFIRMED.getCode());
// 问题图片审核状态 如果是自动生成工单状态为已生成工单
if(ObjectUtil.isNotNull(questionTypeData) && questionTypeData.getIsGenerateWorkorder() == 1){
inspectionFile.setStatus(InspectionFileStatusEnum.GENERATE_ORDER.getCode());
}else {
inspectionFile.setStatus(InspectionFileStatusEnum.WAIT_CONFIRMED.getCode());
}
// 问题图片来源 // 问题图片来源
inspectionFile.setSource(SourceEnum.AI.getCode()); inspectionFile.setSource(SourceEnum.AI.getCode());
inspectionFile.setCreateUser(business.getCreateUser()); // 设置默认用户 inspectionFile.setCreateUser(business.getCreateUser()); // 设置默认用户

Loading…
Cancel
Save