|
|
@@ -28,6 +28,7 @@ import com.tuoheng.admin.service.inspectionfile.update.UpdateInspectionFileQuest |
|
|
|
import com.tuoheng.admin.utils.CurrentUserUtil; |
|
|
|
import com.tuoheng.admin.vo.inspection.InspectionFileVo; |
|
|
|
import com.tuoheng.admin.vo.ListByDeptUserTypeVo; |
|
|
|
import com.tuoheng.common.core.config.common.CommonConfig; |
|
|
|
import com.tuoheng.common.core.enums.ServiceExceptionEnum; |
|
|
|
import com.tuoheng.common.core.exception.ServiceException; |
|
|
|
import com.tuoheng.common.core.utils.JsonResult; |
|
|
@@ -119,9 +120,6 @@ public class InspectionFileServiceImpl implements IInspectionFileService { |
|
|
|
List<InspectionFile> inspectionFileList = inspectionFileMapper.selectList(Wrappers.<InspectionFile>lambdaQuery() |
|
|
|
.eq(InspectionFile::getMark, 1) |
|
|
|
.eq(InspectionFile::getTenantId, tenantId)); |
|
|
|
if (CollectionUtil.isEmpty(inspectionFileList)) { |
|
|
|
return JsonResult.success("该覆盖区域范围内没有问题"); |
|
|
|
} |
|
|
|
for (InspectionFile inspectionFile : inspectionFileList) { |
|
|
|
//任务状态判断 |
|
|
|
if(20 == inspectionFile.getStatus()){ |
|
|
@@ -147,9 +145,6 @@ public class InspectionFileServiceImpl implements IInspectionFileService { |
|
|
|
.eq(InspectionFile::getMark, 1) |
|
|
|
.eq(InspectionFile::getTenantId, tenantId) |
|
|
|
.eq(InspectionFile::getInspectionId, inspection.getId())); |
|
|
|
if (CollectionUtil.isEmpty(inspectionFileList)) { |
|
|
|
return JsonResult.success("该覆盖区域范围内没有问题"); |
|
|
|
} |
|
|
|
for (InspectionFile inspectionFile : inspectionFileList) { |
|
|
|
//任务状态判断 |
|
|
|
if(20 == inspectionFile.getStatus()){ |
|
|
@@ -168,6 +163,8 @@ public class InspectionFileServiceImpl implements IInspectionFileService { |
|
|
|
List<InspectionFileVo> list = inspectionFileLists.stream().map(x -> { |
|
|
|
InspectionFileVo vo = new InspectionFileVo(); |
|
|
|
BeanUtils.copyProperties(x, vo); |
|
|
|
//标记图片 |
|
|
|
vo.setFileImage(CommonConfig.imageURL+x.getFileImage()); |
|
|
|
//任务名称 |
|
|
|
if (StringUtils.isNotEmpty(x.getInspectionId())) { |
|
|
|
Inspection inspection = inspectionMapper.selectById(x.getInspectionId()); |