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

+ 6 - 0
pom.xml

@@ -114,6 +114,12 @@
114 114
             <artifactId>spring-boot-starter-test</artifactId>
115 115
             <scope>test</scope>
116 116
         </dependency>
117
+        
118
+        <dependency>
119
+            <groupId>cn.hutool</groupId>
120
+            <artifactId>hutool-all</artifactId>
121
+            <version>5.8.12</version>
122
+        </dependency>
117 123
 
118 124
         <!--发送短信jar包-->
119 125
         <dependency>

+ 18 - 0
src/main/java/com/chinaitop/depot/hk/dto/req/CaptureReqDTO.java

@@ -21,4 +21,22 @@ public class CaptureReqDTO {
21 21
      * @date: 2024/6/19
22 22
      **/
23 23
     private String cameraIndexCode;
24
+    
25
+    
26
+    // monitor_camera的主键
27
+    private Integer id;
28
+    
29
+    
30
+    //单位id
31
+    private Integer orgId;
32
+    
33
+    
34
+    //仓房id
35
+    private Integer houseId;
36
+    
37
+    
38
+   //仓房id
39
+    private Integer wareHouseId;
40
+    
41
+    
24 42
 }

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

@@ -1,19 +1,32 @@
1 1
 package com.chinaitop.depot.monitor.controller;
2 2
 
3
+import com.chinaitop.depot.hk.dto.req.CaptureReqDTO;
4
+import com.chinaitop.depot.hk.dto.req.ControllerReqDTO;
3 5
 import com.chinaitop.depot.hk.dto.req.PlaybackReqDTO;
4 6
 import com.chinaitop.depot.hk.dto.req.PreviewReqDTO;
7
+import com.chinaitop.depot.hk.dto.req.RecordStartReqDTO;
8
+import com.chinaitop.depot.hk.dto.req.RecordStopReqDTO;
9
+import com.chinaitop.depot.hk.dto.res.CaptureResDTO;
5 10
 import com.chinaitop.depot.hk.dto.res.PlaybackResDTO;
6 11
 import com.chinaitop.depot.hk.dto.res.PreviewResDTO;
12
+import com.chinaitop.depot.hk.dto.res.RecordStartResDTO;
7 13
 import com.chinaitop.depot.hk.service.HkService;
14
+import com.chinaitop.depot.monitor.model.CameraCapture;
15
+import com.chinaitop.depot.monitor.service.CameraCaptureService;
16
+
8 17
 import io.swagger.annotations.Api;
9 18
 import io.swagger.annotations.ApiImplicitParam;
10 19
 import io.swagger.annotations.ApiImplicitParams;
11 20
 import io.swagger.annotations.ApiOperation;
21
+
22
+import org.springframework.beans.factory.annotation.Value;
12 23
 import org.springframework.http.MediaType;
13
-import org.springframework.web.bind.annotation.RequestBody;
24
+import org.springframework.util.LinkedMultiValueMap;
25
+import org.springframework.util.MultiValueMap;
14 26
 import org.springframework.web.bind.annotation.RequestMapping;
15 27
 import org.springframework.web.bind.annotation.RequestMethod;
16 28
 import org.springframework.web.bind.annotation.RestController;
29
+import org.springframework.web.client.RestTemplate;
17 30
 
18 31
 import javax.annotation.Resource;
19 32
 
@@ -27,7 +40,15 @@ public class PreviewPlaybackController {
27 40
 
28 41
     @Resource
29 42
     private HkService hkService;
43
+    
44
+    @Resource
45
+    private CameraCaptureService cameraCaptureService;
30 46
 
47
+    @Resource
48
+    private RestTemplate restTemplate;
49
+
50
+    @Value("${jsgjjsjUrl}")
51
+    private String jsgjjsjUrl;
31 52
     
32 53
     /**
33 54
      * 摄像头预览
@@ -70,4 +91,75 @@ public class PreviewPlaybackController {
70 91
     }
71 92
 
72 93
     
94
+    /**
95
+     * 开始手动录像
96
+     * @param recordStartReqDTO
97
+     * @return
98
+     */
99
+    @RequestMapping(value="/recordStart", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
100
+    @ApiOperation(value="开始手动录像", notes = "开始手动录像")
101
+    public RecordStartResDTO recordStart(RecordStartReqDTO recordStartReqDTO) {
102
+        return hkService.recordStart(recordStartReqDTO);
103
+    }
104
+    
105
+    /**
106
+     * 停止手动录像
107
+     * @param recordStopReqDTO
108
+     */
109
+    @RequestMapping(value="/recordStop", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
110
+    @ApiOperation(value="停止手动录像", notes = "停止手动录像")
111
+    public void recordStop(RecordStopReqDTO recordStopReqDTO) {
112
+         hkService.recordStop(recordStopReqDTO);
113
+    }
114
+    
115
+    
116
+    /**
117
+     * 手动抓图
118
+     * @param captureReqDTO
119
+     */
120
+    @RequestMapping(value="/manualCapture", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
121
+    @ApiOperation(value="手动抓图", notes = "手动抓图")
122
+    public String manualCapture(CaptureReqDTO captureReqDTO) {
123
+    	CaptureResDTO captureResDTO = hkService.manualCapture(captureReqDTO);
124
+         
125
+         //加到表里
126
+    	CameraCapture cameraCapture = cameraCaptureService.save(captureReqDTO,captureResDTO.getPicUrl());
127
+         if(cameraCapture.getId()>0){
128
+        	 //传到国家局
129
+        	 this.gjjjk(cameraCapture.getId(), Integer.valueOf(cameraCapture.getOrgId()), "i");
130
+         }
131
+         
132
+         return captureResDTO.getPicUrl();
133
+    }
134
+    
135
+    @RequestMapping(value="/controlling", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
136
+    @ApiOperation(value="云台控制", notes = "云台控制")
137
+    public void controlling(ControllerReqDTO controllerReqDTO) {
138
+         hkService.controlling(controllerReqDTO);
139
+    }
140
+    
141
+    
142
+    /**
143
+   	 * 国家局数据
144
+   	 */
145
+       public void gjjjk(Integer id, Integer orgId,String czbz) {
146
+         
147
+    	  String tableName = "ODS_UP_CNSPTXXXJK";
148
+   		/**
149
+            * restTemplate调用
150
+            */
151
+           //String url = "http://localhost:9022/recPublish/sendMessage";//
152
+           //发送post请求,并打印结果,以String类型接收响应结果JSON字符串
153
+   		
154
+        MultiValueMap<String, Object> sendMap = new LinkedMultiValueMap<>();
155
+   		sendMap.add("tableName", tableName);
156
+   		sendMap.add("czbz", czbz);
157
+   		sendMap.add("ywId", id);
158
+   		sendMap.add("orgId", orgId);
159
+
160
+        restTemplate.postForObject(jsgjjsjUrl, sendMap, String.class);
161
+           
162
+    	
163
+       }
164
+    
73 165
 }

+ 30 - 0
src/main/java/com/chinaitop/depot/monitor/mapper/CameraCaptureMapper.java

@@ -0,0 +1,30 @@
1
+package com.chinaitop.depot.monitor.mapper;
2
+
3
+import com.chinaitop.depot.monitor.model.CameraCapture;
4
+import com.chinaitop.depot.monitor.model.CameraCaptureExample;
5
+import java.util.List;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+public interface CameraCaptureMapper {
9
+    int countByExample(CameraCaptureExample example);
10
+
11
+    int deleteByExample(CameraCaptureExample example);
12
+
13
+    int deleteByPrimaryKey(Integer id);
14
+
15
+    int insert(CameraCapture record);
16
+
17
+    int insertSelective(CameraCapture record);
18
+
19
+    List<CameraCapture> selectByExample(CameraCaptureExample example);
20
+
21
+    CameraCapture selectByPrimaryKey(Integer id);
22
+
23
+    int updateByExampleSelective(@Param("record") CameraCapture record, @Param("example") CameraCaptureExample example);
24
+
25
+    int updateByExample(@Param("record") CameraCapture record, @Param("example") CameraCaptureExample example);
26
+
27
+    int updateByPrimaryKeySelective(CameraCapture record);
28
+
29
+    int updateByPrimaryKey(CameraCapture record);
30
+}

+ 323 - 0
src/main/java/com/chinaitop/depot/monitor/mapper/CameraCaptureMapper.xml

@@ -0,0 +1,323 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
+<mapper namespace="com.chinaitop.depot.monitor.mapper.CameraCaptureMapper" >
4
+  <resultMap id="BaseResultMap" type="com.chinaitop.depot.monitor.model.CameraCapture" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="createname" property="createname" jdbcType="VARCHAR" />
7
+    <result column="createdate" property="createdate" jdbcType="TIMESTAMP" />
8
+    <result column="updatename" property="updatename" jdbcType="VARCHAR" />
9
+    <result column="updatedate" property="updatedate" jdbcType="TIMESTAMP" />
10
+    <result column="org_id" property="orgId" jdbcType="VARCHAR" />
11
+    <result column="storehouse_id" property="storehouseId" jdbcType="INTEGER" />
12
+    <result column="warehouse_id" property="warehouseId" jdbcType="INTEGER" />
13
+    <result column="camera_id" property="cameraId" jdbcType="INTEGER" />
14
+    <result column="zpsj" property="zpsj" jdbcType="TIMESTAMP" />
15
+    <result column="cntxwjl" property="cntxwjl" jdbcType="VARCHAR" />
16
+    <result column="txwjhzm" property="txwjhzm" jdbcType="VARCHAR" />
17
+  </resultMap>
18
+  <sql id="Example_Where_Clause" >
19
+    <where >
20
+      <foreach collection="oredCriteria" item="criteria" separator="or" >
21
+        <if test="criteria.valid" >
22
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
23
+            <foreach collection="criteria.criteria" item="criterion" >
24
+              <choose >
25
+                <when test="criterion.noValue" >
26
+                  and ${criterion.condition}
27
+                </when>
28
+                <when test="criterion.singleValue" >
29
+                  and ${criterion.condition} #{criterion.value}
30
+                </when>
31
+                <when test="criterion.betweenValue" >
32
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
33
+                </when>
34
+                <when test="criterion.listValue" >
35
+                  and ${criterion.condition}
36
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
37
+                    #{listItem}
38
+                  </foreach>
39
+                </when>
40
+              </choose>
41
+            </foreach>
42
+          </trim>
43
+        </if>
44
+      </foreach>
45
+    </where>
46
+  </sql>
47
+  <sql id="Update_By_Example_Where_Clause" >
48
+    <where >
49
+      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
50
+        <if test="criteria.valid" >
51
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
52
+            <foreach collection="criteria.criteria" item="criterion" >
53
+              <choose >
54
+                <when test="criterion.noValue" >
55
+                  and ${criterion.condition}
56
+                </when>
57
+                <when test="criterion.singleValue" >
58
+                  and ${criterion.condition} #{criterion.value}
59
+                </when>
60
+                <when test="criterion.betweenValue" >
61
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
62
+                </when>
63
+                <when test="criterion.listValue" >
64
+                  and ${criterion.condition}
65
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
66
+                    #{listItem}
67
+                  </foreach>
68
+                </when>
69
+              </choose>
70
+            </foreach>
71
+          </trim>
72
+        </if>
73
+      </foreach>
74
+    </where>
75
+  </sql>
76
+  <sql id="Base_Column_List" >
77
+    id, createname, createdate, updatename, updatedate, org_id, storehouse_id, warehouse_id, 
78
+    camera_id, zpsj, cntxwjl, txwjhzm
79
+  </sql>
80
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.monitor.model.CameraCaptureExample" >
81
+    select
82
+    <if test="distinct" >
83
+      distinct
84
+    </if>
85
+    <include refid="Base_Column_List" />
86
+    from camera_capture
87
+    <if test="_parameter != null" >
88
+      <include refid="Example_Where_Clause" />
89
+    </if>
90
+    <if test="orderByClause != null" >
91
+      order by ${orderByClause}
92
+    </if>
93
+  </select>
94
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
95
+    select 
96
+    <include refid="Base_Column_List" />
97
+    from camera_capture
98
+    where id = #{id,jdbcType=INTEGER}
99
+  </select>
100
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
101
+    delete from camera_capture
102
+    where id = #{id,jdbcType=INTEGER}
103
+  </delete>
104
+  <delete id="deleteByExample" parameterType="com.chinaitop.depot.monitor.model.CameraCaptureExample" >
105
+    delete from camera_capture
106
+    <if test="_parameter != null" >
107
+      <include refid="Example_Where_Clause" />
108
+    </if>
109
+  </delete>
110
+  <insert id="insert" useGeneratedKeys="true" keyProperty="id"  parameterType="com.chinaitop.depot.monitor.model.CameraCapture" >
111
+    insert into camera_capture (id, createname, createdate, 
112
+      updatename, updatedate, org_id, 
113
+      storehouse_id, warehouse_id, camera_id, 
114
+      zpsj, cntxwjl, txwjhzm
115
+      )
116
+    values (#{id,jdbcType=INTEGER}, #{createname,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP}, 
117
+      #{updatename,jdbcType=VARCHAR}, #{updatedate,jdbcType=TIMESTAMP}, #{orgId,jdbcType=VARCHAR}, 
118
+      #{storehouseId,jdbcType=INTEGER}, #{warehouseId,jdbcType=INTEGER}, #{cameraId,jdbcType=INTEGER}, 
119
+      #{zpsj,jdbcType=TIMESTAMP}, #{cntxwjl,jdbcType=VARCHAR}, #{txwjhzm,jdbcType=VARCHAR}
120
+      )
121
+  </insert>
122
+  <insert id="insertSelective" useGeneratedKeys="true" keyProperty="id"  parameterType="com.chinaitop.depot.monitor.model.CameraCapture" >
123
+    insert into camera_capture
124
+    <trim prefix="(" suffix=")" suffixOverrides="," >
125
+      <if test="id != null" >
126
+        id,
127
+      </if>
128
+      <if test="createname != null" >
129
+        createname,
130
+      </if>
131
+      <if test="createdate != null" >
132
+        createdate,
133
+      </if>
134
+      <if test="updatename != null" >
135
+        updatename,
136
+      </if>
137
+      <if test="updatedate != null" >
138
+        updatedate,
139
+      </if>
140
+      <if test="orgId != null" >
141
+        org_id,
142
+      </if>
143
+      <if test="storehouseId != null" >
144
+        storehouse_id,
145
+      </if>
146
+      <if test="warehouseId != null" >
147
+        warehouse_id,
148
+      </if>
149
+      <if test="cameraId != null" >
150
+        camera_id,
151
+      </if>
152
+      <if test="zpsj != null" >
153
+        zpsj,
154
+      </if>
155
+      <if test="cntxwjl != null" >
156
+        cntxwjl,
157
+      </if>
158
+      <if test="txwjhzm != null" >
159
+        txwjhzm,
160
+      </if>
161
+    </trim>
162
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
163
+      <if test="id != null" >
164
+        #{id,jdbcType=INTEGER},
165
+      </if>
166
+      <if test="createname != null" >
167
+        #{createname,jdbcType=VARCHAR},
168
+      </if>
169
+      <if test="createdate != null" >
170
+        #{createdate,jdbcType=TIMESTAMP},
171
+      </if>
172
+      <if test="updatename != null" >
173
+        #{updatename,jdbcType=VARCHAR},
174
+      </if>
175
+      <if test="updatedate != null" >
176
+        #{updatedate,jdbcType=TIMESTAMP},
177
+      </if>
178
+      <if test="orgId != null" >
179
+        #{orgId,jdbcType=VARCHAR},
180
+      </if>
181
+      <if test="storehouseId != null" >
182
+        #{storehouseId,jdbcType=INTEGER},
183
+      </if>
184
+      <if test="warehouseId != null" >
185
+        #{warehouseId,jdbcType=INTEGER},
186
+      </if>
187
+      <if test="cameraId != null" >
188
+        #{cameraId,jdbcType=INTEGER},
189
+      </if>
190
+      <if test="zpsj != null" >
191
+        #{zpsj,jdbcType=TIMESTAMP},
192
+      </if>
193
+      <if test="cntxwjl != null" >
194
+        #{cntxwjl,jdbcType=VARCHAR},
195
+      </if>
196
+      <if test="txwjhzm != null" >
197
+        #{txwjhzm,jdbcType=VARCHAR},
198
+      </if>
199
+    </trim>
200
+  </insert>
201
+  <select id="countByExample" parameterType="com.chinaitop.depot.monitor.model.CameraCaptureExample" resultType="java.lang.Integer" >
202
+    select count(*) from camera_capture
203
+    <if test="_parameter != null" >
204
+      <include refid="Example_Where_Clause" />
205
+    </if>
206
+  </select>
207
+  <update id="updateByExampleSelective" parameterType="map" >
208
+    update camera_capture
209
+    <set >
210
+      <if test="record.id != null" >
211
+        id = #{record.id,jdbcType=INTEGER},
212
+      </if>
213
+      <if test="record.createname != null" >
214
+        createname = #{record.createname,jdbcType=VARCHAR},
215
+      </if>
216
+      <if test="record.createdate != null" >
217
+        createdate = #{record.createdate,jdbcType=TIMESTAMP},
218
+      </if>
219
+      <if test="record.updatename != null" >
220
+        updatename = #{record.updatename,jdbcType=VARCHAR},
221
+      </if>
222
+      <if test="record.updatedate != null" >
223
+        updatedate = #{record.updatedate,jdbcType=TIMESTAMP},
224
+      </if>
225
+      <if test="record.orgId != null" >
226
+        org_id = #{record.orgId,jdbcType=VARCHAR},
227
+      </if>
228
+      <if test="record.storehouseId != null" >
229
+        storehouse_id = #{record.storehouseId,jdbcType=INTEGER},
230
+      </if>
231
+      <if test="record.warehouseId != null" >
232
+        warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
233
+      </if>
234
+      <if test="record.cameraId != null" >
235
+        camera_id = #{record.cameraId,jdbcType=INTEGER},
236
+      </if>
237
+      <if test="record.zpsj != null" >
238
+        zpsj = #{record.zpsj,jdbcType=TIMESTAMP},
239
+      </if>
240
+      <if test="record.cntxwjl != null" >
241
+        cntxwjl = #{record.cntxwjl,jdbcType=VARCHAR},
242
+      </if>
243
+      <if test="record.txwjhzm != null" >
244
+        txwjhzm = #{record.txwjhzm,jdbcType=VARCHAR},
245
+      </if>
246
+    </set>
247
+    <if test="_parameter != null" >
248
+      <include refid="Update_By_Example_Where_Clause" />
249
+    </if>
250
+  </update>
251
+  <update id="updateByExample" parameterType="map" >
252
+    update camera_capture
253
+    set id = #{record.id,jdbcType=INTEGER},
254
+      createname = #{record.createname,jdbcType=VARCHAR},
255
+      createdate = #{record.createdate,jdbcType=TIMESTAMP},
256
+      updatename = #{record.updatename,jdbcType=VARCHAR},
257
+      updatedate = #{record.updatedate,jdbcType=TIMESTAMP},
258
+      org_id = #{record.orgId,jdbcType=VARCHAR},
259
+      storehouse_id = #{record.storehouseId,jdbcType=INTEGER},
260
+      warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
261
+      camera_id = #{record.cameraId,jdbcType=INTEGER},
262
+      zpsj = #{record.zpsj,jdbcType=TIMESTAMP},
263
+      cntxwjl = #{record.cntxwjl,jdbcType=VARCHAR},
264
+      txwjhzm = #{record.txwjhzm,jdbcType=VARCHAR}
265
+    <if test="_parameter != null" >
266
+      <include refid="Update_By_Example_Where_Clause" />
267
+    </if>
268
+  </update>
269
+  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.monitor.model.CameraCapture" >
270
+    update camera_capture
271
+    <set >
272
+      <if test="createname != null" >
273
+        createname = #{createname,jdbcType=VARCHAR},
274
+      </if>
275
+      <if test="createdate != null" >
276
+        createdate = #{createdate,jdbcType=TIMESTAMP},
277
+      </if>
278
+      <if test="updatename != null" >
279
+        updatename = #{updatename,jdbcType=VARCHAR},
280
+      </if>
281
+      <if test="updatedate != null" >
282
+        updatedate = #{updatedate,jdbcType=TIMESTAMP},
283
+      </if>
284
+      <if test="orgId != null" >
285
+        org_id = #{orgId,jdbcType=VARCHAR},
286
+      </if>
287
+      <if test="storehouseId != null" >
288
+        storehouse_id = #{storehouseId,jdbcType=INTEGER},
289
+      </if>
290
+      <if test="warehouseId != null" >
291
+        warehouse_id = #{warehouseId,jdbcType=INTEGER},
292
+      </if>
293
+      <if test="cameraId != null" >
294
+        camera_id = #{cameraId,jdbcType=INTEGER},
295
+      </if>
296
+      <if test="zpsj != null" >
297
+        zpsj = #{zpsj,jdbcType=TIMESTAMP},
298
+      </if>
299
+      <if test="cntxwjl != null" >
300
+        cntxwjl = #{cntxwjl,jdbcType=VARCHAR},
301
+      </if>
302
+      <if test="txwjhzm != null" >
303
+        txwjhzm = #{txwjhzm,jdbcType=VARCHAR},
304
+      </if>
305
+    </set>
306
+    where id = #{id,jdbcType=INTEGER}
307
+  </update>
308
+  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.monitor.model.CameraCapture" >
309
+    update camera_capture
310
+    set createname = #{createname,jdbcType=VARCHAR},
311
+      createdate = #{createdate,jdbcType=TIMESTAMP},
312
+      updatename = #{updatename,jdbcType=VARCHAR},
313
+      updatedate = #{updatedate,jdbcType=TIMESTAMP},
314
+      org_id = #{orgId,jdbcType=VARCHAR},
315
+      storehouse_id = #{storehouseId,jdbcType=INTEGER},
316
+      warehouse_id = #{warehouseId,jdbcType=INTEGER},
317
+      camera_id = #{cameraId,jdbcType=INTEGER},
318
+      zpsj = #{zpsj,jdbcType=TIMESTAMP},
319
+      cntxwjl = #{cntxwjl,jdbcType=VARCHAR},
320
+      txwjhzm = #{txwjhzm,jdbcType=VARCHAR}
321
+    where id = #{id,jdbcType=INTEGER}
322
+  </update>
323
+</mapper>

+ 221 - 0
src/main/java/com/chinaitop/depot/monitor/model/CameraCapture.java

@@ -0,0 +1,221 @@
1
+package com.chinaitop.depot.monitor.model;
2
+
3
+import java.util.Date;
4
+
5
+public class CameraCapture {
6
+    private Integer id;
7
+
8
+    private String createname;
9
+
10
+    private Date createdate;
11
+
12
+    private String updatename;
13
+
14
+    private Date updatedate;
15
+
16
+    private String orgId;
17
+
18
+    private Integer storehouseId;
19
+
20
+    private Integer warehouseId;
21
+
22
+    private Integer cameraId;
23
+
24
+    private Date zpsj;
25
+
26
+    private String cntxwjl;
27
+
28
+    private String txwjhzm;
29
+
30
+    /**
31
+     * 主键ID
32
+     * @return id 主键ID
33
+     */
34
+    public Integer getId() {
35
+        return id;
36
+    }
37
+
38
+    /**
39
+     * 主键ID
40
+     * @param id 主键ID
41
+     */
42
+    public void setId(Integer id) {
43
+        this.id = id;
44
+    }
45
+
46
+    /**
47
+     * 创建人
48
+     * @return createname 创建人
49
+     */
50
+    public String getCreatename() {
51
+        return createname;
52
+    }
53
+
54
+    /**
55
+     * 创建人
56
+     * @param createname 创建人
57
+     */
58
+    public void setCreatename(String createname) {
59
+        this.createname = createname == null ? null : createname.trim();
60
+    }
61
+
62
+    /**
63
+     * 创建日期
64
+     * @return createdate 创建日期
65
+     */
66
+    public Date getCreatedate() {
67
+        return createdate;
68
+    }
69
+
70
+    /**
71
+     * 创建日期
72
+     * @param createdate 创建日期
73
+     */
74
+    public void setCreatedate(Date createdate) {
75
+        this.createdate = createdate;
76
+    }
77
+
78
+    /**
79
+     * 更新人
80
+     * @return updatename 更新人
81
+     */
82
+    public String getUpdatename() {
83
+        return updatename;
84
+    }
85
+
86
+    /**
87
+     * 更新人
88
+     * @param updatename 更新人
89
+     */
90
+    public void setUpdatename(String updatename) {
91
+        this.updatename = updatename == null ? null : updatename.trim();
92
+    }
93
+
94
+    /**
95
+     * 更新日期
96
+     * @return updatedate 更新日期
97
+     */
98
+    public Date getUpdatedate() {
99
+        return updatedate;
100
+    }
101
+
102
+    /**
103
+     * 更新日期
104
+     * @param updatedate 更新日期
105
+     */
106
+    public void setUpdatedate(Date updatedate) {
107
+        this.updatedate = updatedate;
108
+    }
109
+
110
+    /**
111
+     * 组织机构代码
112
+     * @return org_id 组织机构代码
113
+     */
114
+    public String getOrgId() {
115
+        return orgId;
116
+    }
117
+
118
+    /**
119
+     * 组织机构代码
120
+     * @param orgId 组织机构代码
121
+     */
122
+    public void setOrgId(String orgId) {
123
+        this.orgId = orgId == null ? null : orgId.trim();
124
+    }
125
+
126
+    /**
127
+     * basic_storehouse的id;仓房id;
128
+     * @return storehouse_id basic_storehouse的id;仓房id;
129
+     */
130
+    public Integer getStorehouseId() {
131
+        return storehouseId;
132
+    }
133
+
134
+    /**
135
+     * basic_storehouse的id;仓房id;
136
+     * @param storehouseId basic_storehouse的id;仓房id;
137
+     */
138
+    public void setStorehouseId(Integer storehouseId) {
139
+        this.storehouseId = storehouseId;
140
+    }
141
+
142
+    /**
143
+     * basic_warehouse的id;货位id;
144
+     * @return warehouse_id basic_warehouse的id;货位id;
145
+     */
146
+    public Integer getWarehouseId() {
147
+        return warehouseId;
148
+    }
149
+
150
+    /**
151
+     * basic_warehouse的id;货位id;
152
+     * @param warehouseId basic_warehouse的id;货位id;
153
+     */
154
+    public void setWarehouseId(Integer warehouseId) {
155
+        this.warehouseId = warehouseId;
156
+    }
157
+
158
+    /**
159
+     * 摄像头id;monitor_camera的id;
160
+     * @return camera_id 摄像头id;monitor_camera的id;
161
+     */
162
+    public Integer getCameraId() {
163
+        return cameraId;
164
+    }
165
+
166
+    /**
167
+     * 摄像头id;monitor_camera的id;
168
+     * @param cameraId 摄像头id;monitor_camera的id;
169
+     */
170
+    public void setCameraId(Integer cameraId) {
171
+        this.cameraId = cameraId;
172
+    }
173
+
174
+    /**
175
+     * 图片采集时间
176
+     * @return zpsj 图片采集时间
177
+     */
178
+    public Date getZpsj() {
179
+        return zpsj;
180
+    }
181
+
182
+    /**
183
+     * 图片采集时间
184
+     * @param zpsj 图片采集时间
185
+     */
186
+    public void setZpsj(Date zpsj) {
187
+        this.zpsj = zpsj;
188
+    }
189
+
190
+    /**
191
+     * 仓内图像地址
192
+     * @return cntxwjl 仓内图像地址
193
+     */
194
+    public String getCntxwjl() {
195
+        return cntxwjl;
196
+    }
197
+
198
+    /**
199
+     * 仓内图像地址
200
+     * @param cntxwjl 仓内图像地址
201
+     */
202
+    public void setCntxwjl(String cntxwjl) {
203
+        this.cntxwjl = cntxwjl == null ? null : cntxwjl.trim();
204
+    }
205
+
206
+    /**
207
+     * 图像文件后缀名
208
+     * @return txwjhzm 图像文件后缀名
209
+     */
210
+    public String getTxwjhzm() {
211
+        return txwjhzm;
212
+    }
213
+
214
+    /**
215
+     * 图像文件后缀名
216
+     * @param txwjhzm 图像文件后缀名
217
+     */
218
+    public void setTxwjhzm(String txwjhzm) {
219
+        this.txwjhzm = txwjhzm == null ? null : txwjhzm.trim();
220
+    }
221
+}

+ 989 - 0
src/main/java/com/chinaitop/depot/monitor/model/CameraCaptureExample.java

@@ -0,0 +1,989 @@
1
+package com.chinaitop.depot.monitor.model;
2
+
3
+import java.util.ArrayList;
4
+import java.util.Date;
5
+import java.util.List;
6
+
7
+public class CameraCaptureExample {
8
+    /**
9
+     * camera_capture
10
+     */
11
+    protected String orderByClause;
12
+
13
+    /**
14
+     * camera_capture
15
+     */
16
+    protected boolean distinct;
17
+
18
+    /**
19
+     * camera_capture
20
+     */
21
+    protected List<Criteria> oredCriteria;
22
+
23
+    public CameraCaptureExample() {
24
+        oredCriteria = new ArrayList<Criteria>();
25
+    }
26
+
27
+    public void setOrderByClause(String orderByClause) {
28
+        this.orderByClause = orderByClause;
29
+    }
30
+
31
+    public String getOrderByClause() {
32
+        return orderByClause;
33
+    }
34
+
35
+    public void setDistinct(boolean distinct) {
36
+        this.distinct = distinct;
37
+    }
38
+
39
+    public boolean isDistinct() {
40
+        return distinct;
41
+    }
42
+
43
+    public List<Criteria> getOredCriteria() {
44
+        return oredCriteria;
45
+    }
46
+
47
+    public void or(Criteria criteria) {
48
+        oredCriteria.add(criteria);
49
+    }
50
+
51
+    public Criteria or() {
52
+        Criteria criteria = createCriteriaInternal();
53
+        oredCriteria.add(criteria);
54
+        return criteria;
55
+    }
56
+
57
+    public Criteria createCriteria() {
58
+        Criteria criteria = createCriteriaInternal();
59
+        if (oredCriteria.size() == 0) {
60
+            oredCriteria.add(criteria);
61
+        }
62
+        return criteria;
63
+    }
64
+
65
+    protected Criteria createCriteriaInternal() {
66
+        Criteria criteria = new Criteria();
67
+        return criteria;
68
+    }
69
+
70
+    public void clear() {
71
+        oredCriteria.clear();
72
+        orderByClause = null;
73
+        distinct = false;
74
+    }
75
+
76
+    /**
77
+     * camera_capture 2024-07-22
78
+     */
79
+    protected abstract static class GeneratedCriteria {
80
+        protected List<Criterion> criteria;
81
+
82
+        protected GeneratedCriteria() {
83
+            super();
84
+            criteria = new ArrayList<Criterion>();
85
+        }
86
+
87
+        public boolean isValid() {
88
+            return criteria.size() > 0;
89
+        }
90
+
91
+        public List<Criterion> getAllCriteria() {
92
+            return criteria;
93
+        }
94
+
95
+        public List<Criterion> getCriteria() {
96
+            return criteria;
97
+        }
98
+
99
+        protected void addCriterion(String condition) {
100
+            if (condition == null) {
101
+                throw new RuntimeException("Value for condition cannot be null");
102
+            }
103
+            criteria.add(new Criterion(condition));
104
+        }
105
+
106
+        protected void addCriterion(String condition, Object value, String property) {
107
+            if (value == null) {
108
+                throw new RuntimeException("Value for " + property + " cannot be null");
109
+            }
110
+            criteria.add(new Criterion(condition, value));
111
+        }
112
+
113
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
114
+            if (value1 == null || value2 == null) {
115
+                throw new RuntimeException("Between values for " + property + " cannot be null");
116
+            }
117
+            criteria.add(new Criterion(condition, value1, value2));
118
+        }
119
+
120
+        public Criteria andIdIsNull() {
121
+            addCriterion("id is null");
122
+            return (Criteria) this;
123
+        }
124
+
125
+        public Criteria andIdIsNotNull() {
126
+            addCriterion("id is not null");
127
+            return (Criteria) this;
128
+        }
129
+
130
+        public Criteria andIdEqualTo(Integer value) {
131
+            addCriterion("id =", value, "id");
132
+            return (Criteria) this;
133
+        }
134
+
135
+        public Criteria andIdNotEqualTo(Integer value) {
136
+            addCriterion("id <>", value, "id");
137
+            return (Criteria) this;
138
+        }
139
+
140
+        public Criteria andIdGreaterThan(Integer value) {
141
+            addCriterion("id >", value, "id");
142
+            return (Criteria) this;
143
+        }
144
+
145
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
146
+            addCriterion("id >=", value, "id");
147
+            return (Criteria) this;
148
+        }
149
+
150
+        public Criteria andIdLessThan(Integer value) {
151
+            addCriterion("id <", value, "id");
152
+            return (Criteria) this;
153
+        }
154
+
155
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
156
+            addCriterion("id <=", value, "id");
157
+            return (Criteria) this;
158
+        }
159
+
160
+        public Criteria andIdIn(List<Integer> values) {
161
+            addCriterion("id in", values, "id");
162
+            return (Criteria) this;
163
+        }
164
+
165
+        public Criteria andIdNotIn(List<Integer> values) {
166
+            addCriterion("id not in", values, "id");
167
+            return (Criteria) this;
168
+        }
169
+
170
+        public Criteria andIdBetween(Integer value1, Integer value2) {
171
+            addCriterion("id between", value1, value2, "id");
172
+            return (Criteria) this;
173
+        }
174
+
175
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
176
+            addCriterion("id not between", value1, value2, "id");
177
+            return (Criteria) this;
178
+        }
179
+
180
+        public Criteria andCreatenameIsNull() {
181
+            addCriterion("createname is null");
182
+            return (Criteria) this;
183
+        }
184
+
185
+        public Criteria andCreatenameIsNotNull() {
186
+            addCriterion("createname is not null");
187
+            return (Criteria) this;
188
+        }
189
+
190
+        public Criteria andCreatenameEqualTo(String value) {
191
+            addCriterion("createname =", value, "createname");
192
+            return (Criteria) this;
193
+        }
194
+
195
+        public Criteria andCreatenameNotEqualTo(String value) {
196
+            addCriterion("createname <>", value, "createname");
197
+            return (Criteria) this;
198
+        }
199
+
200
+        public Criteria andCreatenameGreaterThan(String value) {
201
+            addCriterion("createname >", value, "createname");
202
+            return (Criteria) this;
203
+        }
204
+
205
+        public Criteria andCreatenameGreaterThanOrEqualTo(String value) {
206
+            addCriterion("createname >=", value, "createname");
207
+            return (Criteria) this;
208
+        }
209
+
210
+        public Criteria andCreatenameLessThan(String value) {
211
+            addCriterion("createname <", value, "createname");
212
+            return (Criteria) this;
213
+        }
214
+
215
+        public Criteria andCreatenameLessThanOrEqualTo(String value) {
216
+            addCriterion("createname <=", value, "createname");
217
+            return (Criteria) this;
218
+        }
219
+
220
+        public Criteria andCreatenameLike(String value) {
221
+            addCriterion("createname like", value, "createname");
222
+            return (Criteria) this;
223
+        }
224
+
225
+        public Criteria andCreatenameNotLike(String value) {
226
+            addCriterion("createname not like", value, "createname");
227
+            return (Criteria) this;
228
+        }
229
+
230
+        public Criteria andCreatenameIn(List<String> values) {
231
+            addCriterion("createname in", values, "createname");
232
+            return (Criteria) this;
233
+        }
234
+
235
+        public Criteria andCreatenameNotIn(List<String> values) {
236
+            addCriterion("createname not in", values, "createname");
237
+            return (Criteria) this;
238
+        }
239
+
240
+        public Criteria andCreatenameBetween(String value1, String value2) {
241
+            addCriterion("createname between", value1, value2, "createname");
242
+            return (Criteria) this;
243
+        }
244
+
245
+        public Criteria andCreatenameNotBetween(String value1, String value2) {
246
+            addCriterion("createname not between", value1, value2, "createname");
247
+            return (Criteria) this;
248
+        }
249
+
250
+        public Criteria andCreatedateIsNull() {
251
+            addCriterion("createdate is null");
252
+            return (Criteria) this;
253
+        }
254
+
255
+        public Criteria andCreatedateIsNotNull() {
256
+            addCriterion("createdate is not null");
257
+            return (Criteria) this;
258
+        }
259
+
260
+        public Criteria andCreatedateEqualTo(Date value) {
261
+            addCriterion("createdate =", value, "createdate");
262
+            return (Criteria) this;
263
+        }
264
+
265
+        public Criteria andCreatedateNotEqualTo(Date value) {
266
+            addCriterion("createdate <>", value, "createdate");
267
+            return (Criteria) this;
268
+        }
269
+
270
+        public Criteria andCreatedateGreaterThan(Date value) {
271
+            addCriterion("createdate >", value, "createdate");
272
+            return (Criteria) this;
273
+        }
274
+
275
+        public Criteria andCreatedateGreaterThanOrEqualTo(Date value) {
276
+            addCriterion("createdate >=", value, "createdate");
277
+            return (Criteria) this;
278
+        }
279
+
280
+        public Criteria andCreatedateLessThan(Date value) {
281
+            addCriterion("createdate <", value, "createdate");
282
+            return (Criteria) this;
283
+        }
284
+
285
+        public Criteria andCreatedateLessThanOrEqualTo(Date value) {
286
+            addCriterion("createdate <=", value, "createdate");
287
+            return (Criteria) this;
288
+        }
289
+
290
+        public Criteria andCreatedateIn(List<Date> values) {
291
+            addCriterion("createdate in", values, "createdate");
292
+            return (Criteria) this;
293
+        }
294
+
295
+        public Criteria andCreatedateNotIn(List<Date> values) {
296
+            addCriterion("createdate not in", values, "createdate");
297
+            return (Criteria) this;
298
+        }
299
+
300
+        public Criteria andCreatedateBetween(Date value1, Date value2) {
301
+            addCriterion("createdate between", value1, value2, "createdate");
302
+            return (Criteria) this;
303
+        }
304
+
305
+        public Criteria andCreatedateNotBetween(Date value1, Date value2) {
306
+            addCriterion("createdate not between", value1, value2, "createdate");
307
+            return (Criteria) this;
308
+        }
309
+
310
+        public Criteria andUpdatenameIsNull() {
311
+            addCriterion("updatename is null");
312
+            return (Criteria) this;
313
+        }
314
+
315
+        public Criteria andUpdatenameIsNotNull() {
316
+            addCriterion("updatename is not null");
317
+            return (Criteria) this;
318
+        }
319
+
320
+        public Criteria andUpdatenameEqualTo(String value) {
321
+            addCriterion("updatename =", value, "updatename");
322
+            return (Criteria) this;
323
+        }
324
+
325
+        public Criteria andUpdatenameNotEqualTo(String value) {
326
+            addCriterion("updatename <>", value, "updatename");
327
+            return (Criteria) this;
328
+        }
329
+
330
+        public Criteria andUpdatenameGreaterThan(String value) {
331
+            addCriterion("updatename >", value, "updatename");
332
+            return (Criteria) this;
333
+        }
334
+
335
+        public Criteria andUpdatenameGreaterThanOrEqualTo(String value) {
336
+            addCriterion("updatename >=", value, "updatename");
337
+            return (Criteria) this;
338
+        }
339
+
340
+        public Criteria andUpdatenameLessThan(String value) {
341
+            addCriterion("updatename <", value, "updatename");
342
+            return (Criteria) this;
343
+        }
344
+
345
+        public Criteria andUpdatenameLessThanOrEqualTo(String value) {
346
+            addCriterion("updatename <=", value, "updatename");
347
+            return (Criteria) this;
348
+        }
349
+
350
+        public Criteria andUpdatenameLike(String value) {
351
+            addCriterion("updatename like", value, "updatename");
352
+            return (Criteria) this;
353
+        }
354
+
355
+        public Criteria andUpdatenameNotLike(String value) {
356
+            addCriterion("updatename not like", value, "updatename");
357
+            return (Criteria) this;
358
+        }
359
+
360
+        public Criteria andUpdatenameIn(List<String> values) {
361
+            addCriterion("updatename in", values, "updatename");
362
+            return (Criteria) this;
363
+        }
364
+
365
+        public Criteria andUpdatenameNotIn(List<String> values) {
366
+            addCriterion("updatename not in", values, "updatename");
367
+            return (Criteria) this;
368
+        }
369
+
370
+        public Criteria andUpdatenameBetween(String value1, String value2) {
371
+            addCriterion("updatename between", value1, value2, "updatename");
372
+            return (Criteria) this;
373
+        }
374
+
375
+        public Criteria andUpdatenameNotBetween(String value1, String value2) {
376
+            addCriterion("updatename not between", value1, value2, "updatename");
377
+            return (Criteria) this;
378
+        }
379
+
380
+        public Criteria andUpdatedateIsNull() {
381
+            addCriterion("updatedate is null");
382
+            return (Criteria) this;
383
+        }
384
+
385
+        public Criteria andUpdatedateIsNotNull() {
386
+            addCriterion("updatedate is not null");
387
+            return (Criteria) this;
388
+        }
389
+
390
+        public Criteria andUpdatedateEqualTo(Date value) {
391
+            addCriterion("updatedate =", value, "updatedate");
392
+            return (Criteria) this;
393
+        }
394
+
395
+        public Criteria andUpdatedateNotEqualTo(Date value) {
396
+            addCriterion("updatedate <>", value, "updatedate");
397
+            return (Criteria) this;
398
+        }
399
+
400
+        public Criteria andUpdatedateGreaterThan(Date value) {
401
+            addCriterion("updatedate >", value, "updatedate");
402
+            return (Criteria) this;
403
+        }
404
+
405
+        public Criteria andUpdatedateGreaterThanOrEqualTo(Date value) {
406
+            addCriterion("updatedate >=", value, "updatedate");
407
+            return (Criteria) this;
408
+        }
409
+
410
+        public Criteria andUpdatedateLessThan(Date value) {
411
+            addCriterion("updatedate <", value, "updatedate");
412
+            return (Criteria) this;
413
+        }
414
+
415
+        public Criteria andUpdatedateLessThanOrEqualTo(Date value) {
416
+            addCriterion("updatedate <=", value, "updatedate");
417
+            return (Criteria) this;
418
+        }
419
+
420
+        public Criteria andUpdatedateIn(List<Date> values) {
421
+            addCriterion("updatedate in", values, "updatedate");
422
+            return (Criteria) this;
423
+        }
424
+
425
+        public Criteria andUpdatedateNotIn(List<Date> values) {
426
+            addCriterion("updatedate not in", values, "updatedate");
427
+            return (Criteria) this;
428
+        }
429
+
430
+        public Criteria andUpdatedateBetween(Date value1, Date value2) {
431
+            addCriterion("updatedate between", value1, value2, "updatedate");
432
+            return (Criteria) this;
433
+        }
434
+
435
+        public Criteria andUpdatedateNotBetween(Date value1, Date value2) {
436
+            addCriterion("updatedate not between", value1, value2, "updatedate");
437
+            return (Criteria) this;
438
+        }
439
+
440
+        public Criteria andOrgIdIsNull() {
441
+            addCriterion("org_id is null");
442
+            return (Criteria) this;
443
+        }
444
+
445
+        public Criteria andOrgIdIsNotNull() {
446
+            addCriterion("org_id is not null");
447
+            return (Criteria) this;
448
+        }
449
+
450
+        public Criteria andOrgIdEqualTo(String value) {
451
+            addCriterion("org_id =", value, "orgId");
452
+            return (Criteria) this;
453
+        }
454
+
455
+        public Criteria andOrgIdNotEqualTo(String value) {
456
+            addCriterion("org_id <>", value, "orgId");
457
+            return (Criteria) this;
458
+        }
459
+
460
+        public Criteria andOrgIdGreaterThan(String value) {
461
+            addCriterion("org_id >", value, "orgId");
462
+            return (Criteria) this;
463
+        }
464
+
465
+        public Criteria andOrgIdGreaterThanOrEqualTo(String value) {
466
+            addCriterion("org_id >=", value, "orgId");
467
+            return (Criteria) this;
468
+        }
469
+
470
+        public Criteria andOrgIdLessThan(String value) {
471
+            addCriterion("org_id <", value, "orgId");
472
+            return (Criteria) this;
473
+        }
474
+
475
+        public Criteria andOrgIdLessThanOrEqualTo(String value) {
476
+            addCriterion("org_id <=", value, "orgId");
477
+            return (Criteria) this;
478
+        }
479
+
480
+        public Criteria andOrgIdLike(String value) {
481
+            addCriterion("org_id like", value, "orgId");
482
+            return (Criteria) this;
483
+        }
484
+
485
+        public Criteria andOrgIdNotLike(String value) {
486
+            addCriterion("org_id not like", value, "orgId");
487
+            return (Criteria) this;
488
+        }
489
+
490
+        public Criteria andOrgIdIn(List<String> values) {
491
+            addCriterion("org_id in", values, "orgId");
492
+            return (Criteria) this;
493
+        }
494
+
495
+        public Criteria andOrgIdNotIn(List<String> values) {
496
+            addCriterion("org_id not in", values, "orgId");
497
+            return (Criteria) this;
498
+        }
499
+
500
+        public Criteria andOrgIdBetween(String value1, String value2) {
501
+            addCriterion("org_id between", value1, value2, "orgId");
502
+            return (Criteria) this;
503
+        }
504
+
505
+        public Criteria andOrgIdNotBetween(String value1, String value2) {
506
+            addCriterion("org_id not between", value1, value2, "orgId");
507
+            return (Criteria) this;
508
+        }
509
+
510
+        public Criteria andStorehouseIdIsNull() {
511
+            addCriterion("storehouse_id is null");
512
+            return (Criteria) this;
513
+        }
514
+
515
+        public Criteria andStorehouseIdIsNotNull() {
516
+            addCriterion("storehouse_id is not null");
517
+            return (Criteria) this;
518
+        }
519
+
520
+        public Criteria andStorehouseIdEqualTo(Integer value) {
521
+            addCriterion("storehouse_id =", value, "storehouseId");
522
+            return (Criteria) this;
523
+        }
524
+
525
+        public Criteria andStorehouseIdNotEqualTo(Integer value) {
526
+            addCriterion("storehouse_id <>", value, "storehouseId");
527
+            return (Criteria) this;
528
+        }
529
+
530
+        public Criteria andStorehouseIdGreaterThan(Integer value) {
531
+            addCriterion("storehouse_id >", value, "storehouseId");
532
+            return (Criteria) this;
533
+        }
534
+
535
+        public Criteria andStorehouseIdGreaterThanOrEqualTo(Integer value) {
536
+            addCriterion("storehouse_id >=", value, "storehouseId");
537
+            return (Criteria) this;
538
+        }
539
+
540
+        public Criteria andStorehouseIdLessThan(Integer value) {
541
+            addCriterion("storehouse_id <", value, "storehouseId");
542
+            return (Criteria) this;
543
+        }
544
+
545
+        public Criteria andStorehouseIdLessThanOrEqualTo(Integer value) {
546
+            addCriterion("storehouse_id <=", value, "storehouseId");
547
+            return (Criteria) this;
548
+        }
549
+
550
+        public Criteria andStorehouseIdIn(List<Integer> values) {
551
+            addCriterion("storehouse_id in", values, "storehouseId");
552
+            return (Criteria) this;
553
+        }
554
+
555
+        public Criteria andStorehouseIdNotIn(List<Integer> values) {
556
+            addCriterion("storehouse_id not in", values, "storehouseId");
557
+            return (Criteria) this;
558
+        }
559
+
560
+        public Criteria andStorehouseIdBetween(Integer value1, Integer value2) {
561
+            addCriterion("storehouse_id between", value1, value2, "storehouseId");
562
+            return (Criteria) this;
563
+        }
564
+
565
+        public Criteria andStorehouseIdNotBetween(Integer value1, Integer value2) {
566
+            addCriterion("storehouse_id not between", value1, value2, "storehouseId");
567
+            return (Criteria) this;
568
+        }
569
+
570
+        public Criteria andWarehouseIdIsNull() {
571
+            addCriterion("warehouse_id is null");
572
+            return (Criteria) this;
573
+        }
574
+
575
+        public Criteria andWarehouseIdIsNotNull() {
576
+            addCriterion("warehouse_id is not null");
577
+            return (Criteria) this;
578
+        }
579
+
580
+        public Criteria andWarehouseIdEqualTo(Integer value) {
581
+            addCriterion("warehouse_id =", value, "warehouseId");
582
+            return (Criteria) this;
583
+        }
584
+
585
+        public Criteria andWarehouseIdNotEqualTo(Integer value) {
586
+            addCriterion("warehouse_id <>", value, "warehouseId");
587
+            return (Criteria) this;
588
+        }
589
+
590
+        public Criteria andWarehouseIdGreaterThan(Integer value) {
591
+            addCriterion("warehouse_id >", value, "warehouseId");
592
+            return (Criteria) this;
593
+        }
594
+
595
+        public Criteria andWarehouseIdGreaterThanOrEqualTo(Integer value) {
596
+            addCriterion("warehouse_id >=", value, "warehouseId");
597
+            return (Criteria) this;
598
+        }
599
+
600
+        public Criteria andWarehouseIdLessThan(Integer value) {
601
+            addCriterion("warehouse_id <", value, "warehouseId");
602
+            return (Criteria) this;
603
+        }
604
+
605
+        public Criteria andWarehouseIdLessThanOrEqualTo(Integer value) {
606
+            addCriterion("warehouse_id <=", value, "warehouseId");
607
+            return (Criteria) this;
608
+        }
609
+
610
+        public Criteria andWarehouseIdIn(List<Integer> values) {
611
+            addCriterion("warehouse_id in", values, "warehouseId");
612
+            return (Criteria) this;
613
+        }
614
+
615
+        public Criteria andWarehouseIdNotIn(List<Integer> values) {
616
+            addCriterion("warehouse_id not in", values, "warehouseId");
617
+            return (Criteria) this;
618
+        }
619
+
620
+        public Criteria andWarehouseIdBetween(Integer value1, Integer value2) {
621
+            addCriterion("warehouse_id between", value1, value2, "warehouseId");
622
+            return (Criteria) this;
623
+        }
624
+
625
+        public Criteria andWarehouseIdNotBetween(Integer value1, Integer value2) {
626
+            addCriterion("warehouse_id not between", value1, value2, "warehouseId");
627
+            return (Criteria) this;
628
+        }
629
+
630
+        public Criteria andCameraIdIsNull() {
631
+            addCriterion("camera_id is null");
632
+            return (Criteria) this;
633
+        }
634
+
635
+        public Criteria andCameraIdIsNotNull() {
636
+            addCriterion("camera_id is not null");
637
+            return (Criteria) this;
638
+        }
639
+
640
+        public Criteria andCameraIdEqualTo(Integer value) {
641
+            addCriterion("camera_id =", value, "cameraId");
642
+            return (Criteria) this;
643
+        }
644
+
645
+        public Criteria andCameraIdNotEqualTo(Integer value) {
646
+            addCriterion("camera_id <>", value, "cameraId");
647
+            return (Criteria) this;
648
+        }
649
+
650
+        public Criteria andCameraIdGreaterThan(Integer value) {
651
+            addCriterion("camera_id >", value, "cameraId");
652
+            return (Criteria) this;
653
+        }
654
+
655
+        public Criteria andCameraIdGreaterThanOrEqualTo(Integer value) {
656
+            addCriterion("camera_id >=", value, "cameraId");
657
+            return (Criteria) this;
658
+        }
659
+
660
+        public Criteria andCameraIdLessThan(Integer value) {
661
+            addCriterion("camera_id <", value, "cameraId");
662
+            return (Criteria) this;
663
+        }
664
+
665
+        public Criteria andCameraIdLessThanOrEqualTo(Integer value) {
666
+            addCriterion("camera_id <=", value, "cameraId");
667
+            return (Criteria) this;
668
+        }
669
+
670
+        public Criteria andCameraIdIn(List<Integer> values) {
671
+            addCriterion("camera_id in", values, "cameraId");
672
+            return (Criteria) this;
673
+        }
674
+
675
+        public Criteria andCameraIdNotIn(List<Integer> values) {
676
+            addCriterion("camera_id not in", values, "cameraId");
677
+            return (Criteria) this;
678
+        }
679
+
680
+        public Criteria andCameraIdBetween(Integer value1, Integer value2) {
681
+            addCriterion("camera_id between", value1, value2, "cameraId");
682
+            return (Criteria) this;
683
+        }
684
+
685
+        public Criteria andCameraIdNotBetween(Integer value1, Integer value2) {
686
+            addCriterion("camera_id not between", value1, value2, "cameraId");
687
+            return (Criteria) this;
688
+        }
689
+
690
+        public Criteria andZpsjIsNull() {
691
+            addCriterion("zpsj is null");
692
+            return (Criteria) this;
693
+        }
694
+
695
+        public Criteria andZpsjIsNotNull() {
696
+            addCriterion("zpsj is not null");
697
+            return (Criteria) this;
698
+        }
699
+
700
+        public Criteria andZpsjEqualTo(Date value) {
701
+            addCriterion("zpsj =", value, "zpsj");
702
+            return (Criteria) this;
703
+        }
704
+
705
+        public Criteria andZpsjNotEqualTo(Date value) {
706
+            addCriterion("zpsj <>", value, "zpsj");
707
+            return (Criteria) this;
708
+        }
709
+
710
+        public Criteria andZpsjGreaterThan(Date value) {
711
+            addCriterion("zpsj >", value, "zpsj");
712
+            return (Criteria) this;
713
+        }
714
+
715
+        public Criteria andZpsjGreaterThanOrEqualTo(Date value) {
716
+            addCriterion("zpsj >=", value, "zpsj");
717
+            return (Criteria) this;
718
+        }
719
+
720
+        public Criteria andZpsjLessThan(Date value) {
721
+            addCriterion("zpsj <", value, "zpsj");
722
+            return (Criteria) this;
723
+        }
724
+
725
+        public Criteria andZpsjLessThanOrEqualTo(Date value) {
726
+            addCriterion("zpsj <=", value, "zpsj");
727
+            return (Criteria) this;
728
+        }
729
+
730
+        public Criteria andZpsjIn(List<Date> values) {
731
+            addCriterion("zpsj in", values, "zpsj");
732
+            return (Criteria) this;
733
+        }
734
+
735
+        public Criteria andZpsjNotIn(List<Date> values) {
736
+            addCriterion("zpsj not in", values, "zpsj");
737
+            return (Criteria) this;
738
+        }
739
+
740
+        public Criteria andZpsjBetween(Date value1, Date value2) {
741
+            addCriterion("zpsj between", value1, value2, "zpsj");
742
+            return (Criteria) this;
743
+        }
744
+
745
+        public Criteria andZpsjNotBetween(Date value1, Date value2) {
746
+            addCriterion("zpsj not between", value1, value2, "zpsj");
747
+            return (Criteria) this;
748
+        }
749
+
750
+        public Criteria andCntxwjlIsNull() {
751
+            addCriterion("cntxwjl is null");
752
+            return (Criteria) this;
753
+        }
754
+
755
+        public Criteria andCntxwjlIsNotNull() {
756
+            addCriterion("cntxwjl is not null");
757
+            return (Criteria) this;
758
+        }
759
+
760
+        public Criteria andCntxwjlEqualTo(String value) {
761
+            addCriterion("cntxwjl =", value, "cntxwjl");
762
+            return (Criteria) this;
763
+        }
764
+
765
+        public Criteria andCntxwjlNotEqualTo(String value) {
766
+            addCriterion("cntxwjl <>", value, "cntxwjl");
767
+            return (Criteria) this;
768
+        }
769
+
770
+        public Criteria andCntxwjlGreaterThan(String value) {
771
+            addCriterion("cntxwjl >", value, "cntxwjl");
772
+            return (Criteria) this;
773
+        }
774
+
775
+        public Criteria andCntxwjlGreaterThanOrEqualTo(String value) {
776
+            addCriterion("cntxwjl >=", value, "cntxwjl");
777
+            return (Criteria) this;
778
+        }
779
+
780
+        public Criteria andCntxwjlLessThan(String value) {
781
+            addCriterion("cntxwjl <", value, "cntxwjl");
782
+            return (Criteria) this;
783
+        }
784
+
785
+        public Criteria andCntxwjlLessThanOrEqualTo(String value) {
786
+            addCriterion("cntxwjl <=", value, "cntxwjl");
787
+            return (Criteria) this;
788
+        }
789
+
790
+        public Criteria andCntxwjlLike(String value) {
791
+            addCriterion("cntxwjl like", value, "cntxwjl");
792
+            return (Criteria) this;
793
+        }
794
+
795
+        public Criteria andCntxwjlNotLike(String value) {
796
+            addCriterion("cntxwjl not like", value, "cntxwjl");
797
+            return (Criteria) this;
798
+        }
799
+
800
+        public Criteria andCntxwjlIn(List<String> values) {
801
+            addCriterion("cntxwjl in", values, "cntxwjl");
802
+            return (Criteria) this;
803
+        }
804
+
805
+        public Criteria andCntxwjlNotIn(List<String> values) {
806
+            addCriterion("cntxwjl not in", values, "cntxwjl");
807
+            return (Criteria) this;
808
+        }
809
+
810
+        public Criteria andCntxwjlBetween(String value1, String value2) {
811
+            addCriterion("cntxwjl between", value1, value2, "cntxwjl");
812
+            return (Criteria) this;
813
+        }
814
+
815
+        public Criteria andCntxwjlNotBetween(String value1, String value2) {
816
+            addCriterion("cntxwjl not between", value1, value2, "cntxwjl");
817
+            return (Criteria) this;
818
+        }
819
+
820
+        public Criteria andTxwjhzmIsNull() {
821
+            addCriterion("txwjhzm is null");
822
+            return (Criteria) this;
823
+        }
824
+
825
+        public Criteria andTxwjhzmIsNotNull() {
826
+            addCriterion("txwjhzm is not null");
827
+            return (Criteria) this;
828
+        }
829
+
830
+        public Criteria andTxwjhzmEqualTo(String value) {
831
+            addCriterion("txwjhzm =", value, "txwjhzm");
832
+            return (Criteria) this;
833
+        }
834
+
835
+        public Criteria andTxwjhzmNotEqualTo(String value) {
836
+            addCriterion("txwjhzm <>", value, "txwjhzm");
837
+            return (Criteria) this;
838
+        }
839
+
840
+        public Criteria andTxwjhzmGreaterThan(String value) {
841
+            addCriterion("txwjhzm >", value, "txwjhzm");
842
+            return (Criteria) this;
843
+        }
844
+
845
+        public Criteria andTxwjhzmGreaterThanOrEqualTo(String value) {
846
+            addCriterion("txwjhzm >=", value, "txwjhzm");
847
+            return (Criteria) this;
848
+        }
849
+
850
+        public Criteria andTxwjhzmLessThan(String value) {
851
+            addCriterion("txwjhzm <", value, "txwjhzm");
852
+            return (Criteria) this;
853
+        }
854
+
855
+        public Criteria andTxwjhzmLessThanOrEqualTo(String value) {
856
+            addCriterion("txwjhzm <=", value, "txwjhzm");
857
+            return (Criteria) this;
858
+        }
859
+
860
+        public Criteria andTxwjhzmLike(String value) {
861
+            addCriterion("txwjhzm like", value, "txwjhzm");
862
+            return (Criteria) this;
863
+        }
864
+
865
+        public Criteria andTxwjhzmNotLike(String value) {
866
+            addCriterion("txwjhzm not like", value, "txwjhzm");
867
+            return (Criteria) this;
868
+        }
869
+
870
+        public Criteria andTxwjhzmIn(List<String> values) {
871
+            addCriterion("txwjhzm in", values, "txwjhzm");
872
+            return (Criteria) this;
873
+        }
874
+
875
+        public Criteria andTxwjhzmNotIn(List<String> values) {
876
+            addCriterion("txwjhzm not in", values, "txwjhzm");
877
+            return (Criteria) this;
878
+        }
879
+
880
+        public Criteria andTxwjhzmBetween(String value1, String value2) {
881
+            addCriterion("txwjhzm between", value1, value2, "txwjhzm");
882
+            return (Criteria) this;
883
+        }
884
+
885
+        public Criteria andTxwjhzmNotBetween(String value1, String value2) {
886
+            addCriterion("txwjhzm not between", value1, value2, "txwjhzm");
887
+            return (Criteria) this;
888
+        }
889
+    }
890
+
891
+    /**
892
+     * camera_capture
893
+     */
894
+    public static class Criteria extends GeneratedCriteria {
895
+
896
+        protected Criteria() {
897
+            super();
898
+        }
899
+    }
900
+
901
+    /**
902
+     * camera_capture 2024-07-22
903
+     */
904
+    public static class Criterion {
905
+        private String condition;
906
+
907
+        private Object value;
908
+
909
+        private Object secondValue;
910
+
911
+        private boolean noValue;
912
+
913
+        private boolean singleValue;
914
+
915
+        private boolean betweenValue;
916
+
917
+        private boolean listValue;
918
+
919
+        private String typeHandler;
920
+
921
+        public String getCondition() {
922
+            return condition;
923
+        }
924
+
925
+        public Object getValue() {
926
+            return value;
927
+        }
928
+
929
+        public Object getSecondValue() {
930
+            return secondValue;
931
+        }
932
+
933
+        public boolean isNoValue() {
934
+            return noValue;
935
+        }
936
+
937
+        public boolean isSingleValue() {
938
+            return singleValue;
939
+        }
940
+
941
+        public boolean isBetweenValue() {
942
+            return betweenValue;
943
+        }
944
+
945
+        public boolean isListValue() {
946
+            return listValue;
947
+        }
948
+
949
+        public String getTypeHandler() {
950
+            return typeHandler;
951
+        }
952
+
953
+        protected Criterion(String condition) {
954
+            super();
955
+            this.condition = condition;
956
+            this.typeHandler = null;
957
+            this.noValue = true;
958
+        }
959
+
960
+        protected Criterion(String condition, Object value, String typeHandler) {
961
+            super();
962
+            this.condition = condition;
963
+            this.value = value;
964
+            this.typeHandler = typeHandler;
965
+            if (value instanceof List<?>) {
966
+                this.listValue = true;
967
+            } else {
968
+                this.singleValue = true;
969
+            }
970
+        }
971
+
972
+        protected Criterion(String condition, Object value) {
973
+            this(condition, value, null);
974
+        }
975
+
976
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
977
+            super();
978
+            this.condition = condition;
979
+            this.value = value;
980
+            this.secondValue = secondValue;
981
+            this.typeHandler = typeHandler;
982
+            this.betweenValue = true;
983
+        }
984
+
985
+        protected Criterion(String condition, Object value, Object secondValue) {
986
+            this(condition, value, secondValue, null);
987
+        }
988
+    }
989
+}

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

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

+ 41 - 0
src/main/java/com/chinaitop/depot/monitor/service/impl/CameraCaptureServiceImpl.java

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

+ 39 - 0
src/main/java/com/chinaitop/depot/utils/NetFileUtil.java

@@ -0,0 +1,39 @@
1
+package com.chinaitop.depot.utils;
2
+
3
+import cn.hutool.http.HttpUtil;
4
+
5
+import java.util.Base64;
6
+
7
+/**
8
+ * 网络文件工具
9
+ *
10
+ * @author ybw
11
+ * @version V1.0
12
+ * @className FileUtil
13
+ * @date 2024/7/19
14
+ **/
15
+public class NetFileUtil {
16
+
17
+    /**
18
+     * 网络文件转文件流
19
+     */
20
+    public static byte[] urlToStream(String url) {
21
+        return HttpUtil.downloadBytes(url);
22
+    }
23
+
24
+
25
+    /**
26
+     * 获取Base64编码的字符串
27
+     *
28
+     * @param url 网络文件地址
29
+     * @methodName: getBase64Content
30
+     * @return: java.lang.String 网络文件地址
31
+     * @author: ybw
32
+     * @date: 2024/7/19
33
+     **/
34
+    public static String getBase64Content(String url) {
35
+        byte[] bytes = urlToStream(url);
36
+        // 将文件内容转换为Base64字符串
37
+        return Base64.getEncoder().encodeToString(bytes);
38
+    }
39
+}

+ 5 - 1
src/main/resources/bootstrap-dev.yml

@@ -57,4 +57,8 @@ jsgjjsjUrl: http://localhost:9022/recPublish/sendMessage
57 57
 hk:
58 58
   host: 59.220.180.103:443 #平台(nginx)IP 和端口
59 59
   app-key: 22161302 #合作方 key
60
-  app-secret: aSDjmmd5S4uSKkQSygiV #合作方 Secret
60
+  app-secret: aSDjmmd5S4uSKkQSygiV #合作方 Secret
61
+  
62
+  
63
+jsgjjsjUrl: http://localhost:9022/recPublish/sendMessage
64
+  

+ 3 - 0
src/main/resources/bootstrap-prod.yml

@@ -58,3 +58,6 @@ hk:
58 58
   host: 59.220.180.103:443 #平台(nginx)IP 和端口
59 59
   app-key: 22161302 #合作方 key
60 60
   app-secret: aSDjmmd5S4uSKkQSygiV #合作方 Secret
61
+  
62
+jsgjjsjUrl: http://localhost:9022/recPublish/sendMessage
63
+