Browse Source

问题核实接口

tags/v1.0.0^2
chengwang 1 year ago
parent
commit
b30a5ee5c9
3 changed files with 19 additions and 14 deletions
  1. +0
    -4
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/controller/InspectionFileController.java
  2. +17
    -8
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/InspectionFileServiceImpl.java
  3. +2
    -2
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/vo/InspectionFileInfoVo.java

+ 0
- 4
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/controller/InspectionFileController.java View File











} }

+ 17
- 8
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/InspectionFileServiceImpl.java View File

import com.tuoheng.common.core.utils.JsonResult; import com.tuoheng.common.core.utils.JsonResult;
import com.tuoheng.common.core.utils.SecurityUserUtils; import com.tuoheng.common.core.utils.SecurityUserUtils;
import com.tuoheng.common.core.utils.StringUtils; import com.tuoheng.common.core.utils.StringUtils;
import com.tuoheng.miniprogram.dao.InspectionFileMapper;
import com.tuoheng.miniprogram.dao.InspectionMapper;
import com.tuoheng.miniprogram.dao.RoadInformationMapper;
import com.tuoheng.miniprogram.dao.UserMapper;
import com.tuoheng.miniprogram.entity.Inspection;
import com.tuoheng.miniprogram.entity.InspectionFile;
import com.tuoheng.miniprogram.entity.RoadInformation;
import com.tuoheng.miniprogram.entity.User;
import com.tuoheng.miniprogram.dao.*;
import com.tuoheng.miniprogram.entity.*;
import com.tuoheng.miniprogram.entity.dto.QuestionIdentificationDto; import com.tuoheng.miniprogram.entity.dto.QuestionIdentificationDto;
import com.tuoheng.miniprogram.entity.query.InspectionFileQuery; import com.tuoheng.miniprogram.entity.query.InspectionFileQuery;
import com.tuoheng.miniprogram.service.IInspectionFileService; import com.tuoheng.miniprogram.service.IInspectionFileService;
@Autowired @Autowired
private RoadInformationMapper roadInformationMapper; private RoadInformationMapper roadInformationMapper;


@Autowired
private QuestionTypeMapper questionTypeMapper;

/** /**
*待确认问题 status状态为5 *待确认问题 status状态为5
* @param query * @param query
if (StringUtils.isNotEmpty(t.getFileThumbnail())) { if (StringUtils.isNotEmpty(t.getFileThumbnail())) {
vo.setFileThumbnail(CommonConfig.imageURL + t.getFileThumbnail()); vo.setFileThumbnail(CommonConfig.imageURL + t.getFileThumbnail());
} }
//问题类型
if(StringUtils.isNotEmpty(t.getQuestionId())){
QuestionType questionType = questionTypeMapper.selectOne(Wrappers.<QuestionType>lambdaQuery()
.eq(QuestionType::getId, t.getQuestionId())
.eq(QuestionType::getMark, 1));
if(null == questionType){
throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL);
}
if(null != questionType.getName()){
vo.setQuestionName(questionType.getName());
}
}


return vo; return vo;
}); });

+ 2
- 2
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/vo/InspectionFileInfoVo.java View File

private String name; private String name;


/** /**
* 问题描述
* 问题类型
*/ */
private String questionDesc;
private Integer questionName;


/** /**
* 位置(公路代号) * 位置(公路代号)

Loading…
Cancel
Save