gaodd 1 год назад
Родитель
Сommit
90ef18c028

+ 4 - 4
src/main/java/com/chinaitop/depot/monitor/controller/PreviewPlaybackController.java

@@ -119,14 +119,14 @@ public class PreviewPlaybackController {
119 119
      */
120 120
     @RequestMapping(value="/manualCapture", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
121 121
     @ApiOperation(value="手动抓图", notes = "手动抓图")
122
-    public String manualCapture(CaptureReqDTO captureReqDTO) {
122
+    public String manualCapture(CaptureReqDTO captureReqDTO,CameraCapture cameraCapture) {
123 123
     	CaptureResDTO captureResDTO = hkService.manualCapture(captureReqDTO);
124 124
          
125 125
          //加到表里
126
-    	CameraCapture cameraCapture = cameraCaptureService.save(captureReqDTO,captureResDTO.getPicUrl());
127
-         if(cameraCapture.getId()>0){
126
+    	CameraCapture cameraCapture1 = cameraCaptureService.save(cameraCapture,captureResDTO.getPicUrl());
127
+         if(cameraCapture1.getId()>0){
128 128
         	 //传到国家局
129
-        	 this.gjjjk(cameraCapture.getId(), Integer.valueOf(cameraCapture.getOrgId()), "i");
129
+        	 this.gjjjk(cameraCapture1.getId(), Integer.valueOf(cameraCapture1.getOrgId()), "i");
130 130
          }
131 131
          
132 132
          return captureResDTO.getPicUrl();

+ 2 - 2
src/main/java/com/chinaitop/depot/monitor/service/CameraCaptureService.java

@@ -1,11 +1,11 @@
1 1
 package com.chinaitop.depot.monitor.service;
2 2
 
3
-import com.chinaitop.depot.hk.dto.req.CaptureReqDTO;
4 3
 import com.chinaitop.depot.monitor.model.CameraCapture;
5 4
 
6 5
 public interface CameraCaptureService {
7 6
 
8
-	CameraCapture save(CaptureReqDTO captureReqDTO,String picUrl);
7
+	CameraCapture save(CameraCapture cameraCapture,String picUrl);
8
+
9 9
 
10 10
    
11 11
 }

+ 7 - 9
src/main/java/com/chinaitop/depot/monitor/service/impl/CameraCaptureServiceImpl.java

@@ -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
 }