|
@@ -2,6 +2,7 @@ package com.zd.laboratory.controller;
|
|
|
|
|
|
|
|
import com.zd.common.core.annotation.Log;
|
|
import com.zd.common.core.annotation.Log;
|
|
|
import com.zd.common.core.annotation.PreAuthorize;
|
|
import com.zd.common.core.annotation.PreAuthorize;
|
|
|
|
|
+import com.zd.common.core.exception.ServiceException;
|
|
|
import com.zd.common.core.log.BusinessType;
|
|
import com.zd.common.core.log.BusinessType;
|
|
|
import com.zd.common.core.utils.*;
|
|
import com.zd.common.core.utils.*;
|
|
|
import com.zd.common.core.web.controller.BaseController;
|
|
import com.zd.common.core.web.controller.BaseController;
|
|
@@ -114,6 +115,9 @@ public class LabPhotoInspectionController extends BaseController {
|
|
|
@GetMapping(value = "/detial/{id}")
|
|
@GetMapping(value = "/detial/{id}")
|
|
|
public TableDataInfo getDetail(@PathVariable("id") Long id) {
|
|
public TableDataInfo getDetail(@PathVariable("id") Long id) {
|
|
|
LabPhotoInspection photoInspection = labPhotoInspectionService.selectLabPhotoInspectionById(id);
|
|
LabPhotoInspection photoInspection = labPhotoInspectionService.selectLabPhotoInspectionById(id);
|
|
|
|
|
+ if(StringUtils.isNull(photoInspection)){
|
|
|
|
|
+ throw new ServiceException("详情不存在!");
|
|
|
|
|
+ }
|
|
|
List<Map<String,String>> allList = new ArrayList <>();
|
|
List<Map<String,String>> allList = new ArrayList <>();
|
|
|
imgList(allList,photoInspection.getSubUrl(),"实验室照片");
|
|
imgList(allList,photoInspection.getSubUrl(),"实验室照片");
|
|
|
imgList(allList,photoInspection.getGarbageUrl(),"垃圾桶清理后照片");
|
|
imgList(allList,photoInspection.getGarbageUrl(),"垃圾桶清理后照片");
|