|
|
@@ -2,9 +2,13 @@ package com.taauav.front.service.impl; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.taauav.admin.entity.SysCity; |
|
|
|
import com.taauav.admin.entity.TauvInspectDriver; |
|
|
|
import com.taauav.admin.entity.TauvInspectQuestion; |
|
|
|
import com.taauav.admin.entity.TauvQuestionOptions; |
|
|
|
import com.taauav.admin.service.ISysCityService; |
|
|
|
import com.taauav.admin.service.ITauvInspectQuestionService; |
|
|
|
import com.taauav.admin.service.ITauvQuestionOptionsService; |
|
|
|
import com.taauav.common.bean.Response; |
|
|
|
import com.taauav.common.core.mps.BaseQuery; |
|
|
|
import com.taauav.common.service.impl.BaseServiceImpl; |
|
|
@@ -64,6 +68,9 @@ public class UserInspectQuestionServiceImpl extends BaseServiceImpl<UserInspectQ |
|
|
|
@Autowired |
|
|
|
private IUserInspectDriverService inspectDriverService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ITauvQuestionOptionsService iTauvQuestionOptionsService; |
|
|
|
|
|
|
|
@Value("${server.UPLOAD_URL}") |
|
|
|
private String uploadUrl; |
|
|
|
@Value("${file.uploadFolder}") |
|
|
@@ -104,6 +111,14 @@ public class UserInspectQuestionServiceImpl extends BaseServiceImpl<UserInspectQ |
|
|
|
List<UserInspectQuestionListVo> inspectQuestionList = inspectQuestionMapper.getUserInspectQuestionList(page, query); |
|
|
|
if (!inspectQuestionList.isEmpty()) { |
|
|
|
inspectQuestionList.forEach(item -> { |
|
|
|
SysCity cityInfo = sysCityService.getInfoById(item.getDriverArea()); |
|
|
|
if (!StringUtils.isEmpty(cityInfo)) { |
|
|
|
item.setDriverAreaName(cityInfo.getName()); |
|
|
|
} |
|
|
|
TauvQuestionOptions questionInfo = iTauvQuestionOptionsService.getInfoById(item.getQuestionId()); |
|
|
|
if (!StringUtils.isEmpty(questionInfo)) { |
|
|
|
item.setQuestionType(questionInfo.getContent()); |
|
|
|
} |
|
|
|
// 状态描述 |
|
|
|
item.setStatusName(UserInspectQuestionConstant.INSPECT_QUESTION_STATUS_LIST.get(item.getStatus())); |
|
|
|
// 图片处理 |