|
|
@@ -10,13 +10,13 @@ import com.tuoheng.admin.entity.User; |
|
|
|
import com.tuoheng.admin.enums.RoleEnum; |
|
|
|
import com.tuoheng.admin.enums.code.inspection.QueryInspectionPageListCodeEnum; |
|
|
|
import com.tuoheng.admin.mapper.DeptMapper; |
|
|
|
import com.tuoheng.admin.mapper.InspectionFileMapper; |
|
|
|
import com.tuoheng.admin.mapper.InspectionMapper; |
|
|
|
import com.tuoheng.admin.mapper.UserMapper; |
|
|
|
import com.tuoheng.admin.request.inspection.QueryInspectionPageListRequest; |
|
|
|
import com.tuoheng.admin.service.inspection.query.handle.GenerateInspectionFieldHander; |
|
|
|
import com.tuoheng.admin.utils.CurrentUserUtil; |
|
|
|
import com.tuoheng.admin.vo.inspection.InspectionVo; |
|
|
|
import com.tuoheng.common.core.config.common.CommonConfig; |
|
|
|
import com.tuoheng.common.core.utils.JsonResult; |
|
|
|
import com.tuoheng.common.core.utils.StringUtils; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
@@ -49,9 +49,6 @@ public class QueryInspectionPageListService { |
|
|
|
@Autowired |
|
|
|
private InspectionMapper inspectionMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private InspectionFileMapper inspectionFileMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
@Qualifier("executeHandle") |
|
|
|
private GenerateInspectionFieldHander executeHandle; |
|
|
@@ -221,6 +218,7 @@ public class QueryInspectionPageListService { |
|
|
|
for (InspectionVo inspectionVo : inspectionVoList) { |
|
|
|
deptName = deptMap.get(inspectionVo.getDeptId()); |
|
|
|
inspectionVo.setDeptName(deptName); |
|
|
|
inspectionVo.setAiVideoUrl(CommonConfig.videoURL + inspectionVo.getAiVideoUrl()); |
|
|
|
executeHandle.handler(user, dept, inspectionVo); |
|
|
|
} |
|
|
|
return inspectionVoList; |