|
|
|
|
|
|
|
|
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; |
|
|
}); |
|
|
}); |