|
|
@@ -6,7 +6,6 @@ import javax.annotation.Resource;
|
|
6
|
6
|
|
|
7
|
7
|
import org.springframework.stereotype.Service;
|
|
8
|
8
|
|
|
9
|
|
-import com.chinaitop.depot.hk.dto.req.CaptureReqDTO;
|
|
10
|
9
|
import com.chinaitop.depot.monitor.mapper.CameraCaptureMapper;
|
|
11
|
10
|
import com.chinaitop.depot.monitor.model.CameraCapture;
|
|
12
|
11
|
import com.chinaitop.depot.monitor.service.CameraCaptureService;
|
|
|
@@ -18,24 +17,23 @@ public class CameraCaptureServiceImpl implements CameraCaptureService{
|
|
18
|
17
|
|
|
19
|
18
|
@Resource
|
|
20
|
19
|
private CameraCaptureMapper cameraCaptureMapper;
|
|
21
|
|
-
|
|
22
|
|
-
|
|
|
20
|
+
|
|
23
|
21
|
@Override
|
|
24
|
|
- public CameraCapture save(CaptureReqDTO captureReqDTO,String picUrl) {
|
|
|
22
|
+ public CameraCapture save(CameraCapture cameraCapture,String picUrl) {
|
|
25
|
23
|
// TODO Auto-generated method stub
|
|
26
|
|
- CameraCapture cameraCapture = new CameraCapture();
|
|
27
|
24
|
cameraCapture.setCreatedate(new Date());
|
|
28
|
|
- cameraCapture.setCameraId(captureReqDTO.getId());
|
|
29
|
|
- cameraCapture.setOrgId(captureReqDTO.getOrgId()+"");
|
|
|
25
|
+ //cameraCapture.setCameraId(cameraCapture.getCameraId());
|
|
|
26
|
+ //cameraCapture.setOrgId(cameraCapture.getOrgId()+"");
|
|
30
|
27
|
// 图片地址转 文件流 picUrl
|
|
31
|
28
|
String wjl = NetFileUtil.getBase64Content(picUrl);
|
|
32
|
29
|
cameraCapture.setCntxwjl(wjl);
|
|
33
|
|
- cameraCapture.setStorehouseId(captureReqDTO.getHouseId());
|
|
|
30
|
+ //cameraCapture.setStorehouseId(cameraCapture.getStorehouseId());
|
|
34
|
31
|
//cameraCapture.setTxwjhzm(txwjhzm);//图像文件后缀名
|
|
35
|
|
- cameraCapture.setWarehouseId(captureReqDTO.getWareHouseId());//
|
|
|
32
|
+ //cameraCapture.setWarehouseId(cameraCapture.getWarehouseId());//
|
|
36
|
33
|
cameraCapture.setZpsj(new Date());//图片采集时间
|
|
37
|
34
|
int i = cameraCaptureMapper.insertSelective(cameraCapture);
|
|
38
|
35
|
return cameraCapture;
|
|
39
|
36
|
}
|
|
40
|
37
|
|
|
|
38
|
+
|
|
41
|
39
|
}
|