Browse Source

Merge branch 'dev' of depot-qinghai/depot-basic-qinghai into master

gdd 5 months ago
parent
commit
efe28060c8

+ 51 - 5
src/main/java/com/chinaitop/depot/basic/mapper/BasicTankMapper.xml

@@ -40,6 +40,10 @@
40
     
40
     
41
     <result column="tyygbm" property="tyygbm" jdbcType="VARCHAR" />
41
     <result column="tyygbm" property="tyygbm" jdbcType="VARCHAR" />
42
     
42
     
43
+    <result column="design_life" property="designLife" jdbcType="DECIMAL" />
44
+    <result column="start_date" property="startDate" jdbcType="TIMESTAMP" />
45
+    <result column="keeper" property="keeper" jdbcType="VARCHAR" />
46
+    
43
     
47
     
44
   </resultMap>
48
   </resultMap>
45
   <sql id="Example_Where_Clause" >
49
   <sql id="Example_Where_Clause" >
@@ -105,7 +109,7 @@
105
     heating_type, tank_type, diameter, height, buildDate, check_way, weld_way, tank_apply, 
109
     heating_type, tank_type, diameter, height, buildDate, check_way, weld_way, tank_apply, 
106
     tank_status, library_type, org_id, del_flag, updatetime, bottom_area, design_height, 
110
     tank_status, library_type, org_id, del_flag, updatetime, bottom_area, design_height, 
107
     oil_height, insport_height, tank_chart, tanklib_chart, basic_truck_type, crk_status, ygdm, ygajdm, lylx, jsdw, sjdw, jldw,
111
     oil_height, insport_height, tank_chart, tanklib_chart, basic_truck_type, crk_status, ygdm, ygajdm, lylx, jsdw, sjdw, jldw,
108
-    spt_dataid,tyygbm
112
+    spt_dataid,tyygbm,design_life,start_date,keeper
109
   </sql>
113
   </sql>
110
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.basic.model.BasicTankExample" >
114
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.basic.model.BasicTankExample" >
111
     select
115
     select
@@ -147,7 +151,7 @@
147
       del_flag, updatetime, bottom_area, 
151
       del_flag, updatetime, bottom_area, 
148
       design_height, oil_height, insport_height, 
152
       design_height, oil_height, insport_height, 
149
       tank_chart, tanklib_chart, basic_truck_type, crk_status, ygdm, ygajdm, lylx, jsdw, sjdw, jldw,
153
       tank_chart, tanklib_chart, basic_truck_type, crk_status, ygdm, ygajdm, lylx, jsdw, sjdw, jldw,
150
-      spt_dataid,tyygbm
154
+      spt_dataid,tyygbm,design_life,start_date,keeper
151
       )
155
       )
152
     values (#{id,jdbcType=VARCHAR}, #{storagetankCode,jdbcType=VARCHAR}, #{storagetankName,jdbcType=VARCHAR}, 
156
     values (#{id,jdbcType=VARCHAR}, #{storagetankCode,jdbcType=VARCHAR}, #{storagetankName,jdbcType=VARCHAR}, 
153
       #{orgCode,jdbcType=VARCHAR}, #{tankCapacity,jdbcType=DECIMAL}, #{createdate,jdbcType=TIMESTAMP}, 
157
       #{orgCode,jdbcType=VARCHAR}, #{tankCapacity,jdbcType=DECIMAL}, #{createdate,jdbcType=TIMESTAMP}, 
@@ -160,7 +164,7 @@
160
       #{tankChart,jdbcType=VARCHAR}, #{tanklibChart,jdbcType=VARCHAR}, #{basicTruckType,jdbcType=VARCHAR},
164
       #{tankChart,jdbcType=VARCHAR}, #{tanklibChart,jdbcType=VARCHAR}, #{basicTruckType,jdbcType=VARCHAR},
161
       #{crkStatus,jdbcType=VARCHAR},#{ygdm,jdbcType=VARCHAR},#{ygajdm,jdbcType=VARCHAR}, #{lylx,jdbcType=VARCHAR},
165
       #{crkStatus,jdbcType=VARCHAR},#{ygdm,jdbcType=VARCHAR},#{ygajdm,jdbcType=VARCHAR}, #{lylx,jdbcType=VARCHAR},
162
       #{jsdw,jdbcType=VARCHAR},#{sjdw,jdbcType=VARCHAR},#{jldw,jdbcType=VARCHAR},#{sptDataid,jdbcType=VARCHAR},
166
       #{jsdw,jdbcType=VARCHAR},#{sjdw,jdbcType=VARCHAR},#{jldw,jdbcType=VARCHAR},#{sptDataid,jdbcType=VARCHAR},
163
-      #{tyygbm,jdbcType=VARCHAR}
167
+      #{tyygbm,jdbcType=VARCHAR},#{designLife,jdbcType=DECIMAL},#{startDate,jdbcType=TIMESTAMP},#{keeper,jdbcType=VARCHAR}
164
       )
168
       )
165
   </insert>
169
   </insert>
166
   <insert id="insertSelective" parameterType="com.chinaitop.depot.basic.model.BasicTank" >
170
   <insert id="insertSelective" parameterType="com.chinaitop.depot.basic.model.BasicTank" >
@@ -274,6 +278,15 @@
274
       <if test="tyygbm != null">
278
       <if test="tyygbm != null">
275
         tyygbm,
279
         tyygbm,
276
       </if>
280
       </if>
281
+      <if test="designLife != null">
282
+        design_life,
283
+      </if>
284
+      <if test="startDate != null">
285
+        start_date,
286
+      </if>
287
+      <if test="keeper != null">
288
+        keeper,
289
+      </if>
277
     </trim>
290
     </trim>
278
     <trim prefix="values (" suffix=")" suffixOverrides="," >
291
     <trim prefix="values (" suffix=")" suffixOverrides="," >
279
       <if test="id != null" >
292
       <if test="id != null" >
@@ -384,6 +397,15 @@
384
       <if test="tyygbm != null">
397
       <if test="tyygbm != null">
385
         #{tyygbm,jdbcType=VARCHAR},
398
         #{tyygbm,jdbcType=VARCHAR},
386
       </if>
399
       </if>
400
+      <if test="designLife != null">
401
+        #{designLife,jdbcType=DECIMAL},
402
+      </if>
403
+      <if test="startDate != null">
404
+        #{startDate,jdbcType=TIMESTAMP},
405
+      </if>
406
+      <if test="keeper != null">
407
+        #{keeper,jdbcType=VARCHAR},
408
+      </if>
387
     </trim>
409
     </trim>
388
   </insert>
410
   </insert>
389
   <select id="countByExample" parameterType="com.chinaitop.depot.basic.model.BasicTankExample" resultType="java.lang.Integer" >
411
   <select id="countByExample" parameterType="com.chinaitop.depot.basic.model.BasicTankExample" resultType="java.lang.Integer" >
@@ -503,6 +525,15 @@
503
       <if test="record.tyygbm != null">
525
       <if test="record.tyygbm != null">
504
         tyygbm = #{record.tyygbm,jdbcType=VARCHAR},
526
         tyygbm = #{record.tyygbm,jdbcType=VARCHAR},
505
       </if>
527
       </if>
528
+      <if test="record.designLife != null">
529
+        design_life = #{record.designLife,jdbcType=DECIMAL},
530
+      </if>
531
+      <if test="record.startDate != null">
532
+        start_date = #{record.startDate,jdbcType=TIMESTAMP},
533
+      </if>
534
+      <if test="record.keeper != null">
535
+        keeper = #{record.keeper,jdbcType=VARCHAR},
536
+      </if>
506
     </set>
537
     </set>
507
     <if test="_parameter != null" >
538
     <if test="_parameter != null" >
508
       <include refid="Update_By_Example_Where_Clause" />
539
       <include refid="Update_By_Example_Where_Clause" />
@@ -545,7 +576,10 @@
545
       sjdw = #{record.sjdw,jdbcType=VARCHAR},
576
       sjdw = #{record.sjdw,jdbcType=VARCHAR},
546
       jldw = #{record.jldw,jdbcType=VARCHAR},
577
       jldw = #{record.jldw,jdbcType=VARCHAR},
547
       spt_dataid = #{record.sptDataid,jdbcType=VARCHAR},
578
       spt_dataid = #{record.sptDataid,jdbcType=VARCHAR},
548
-      tyygbm = #{record.tyygbm,jdbcType=VARCHAR}
579
+      tyygbm = #{record.tyygbm,jdbcType=VARCHAR},
580
+      design_life = #{designLife,jdbcType=DECIMAL},
581
+      start_date = #{startDate,jdbcType=TIMESTAMP},
582
+      keeper = #{record.keeper,jdbcType=VARCHAR}
549
     <if test="_parameter != null" >
583
     <if test="_parameter != null" >
550
       <include refid="Update_By_Example_Where_Clause" />
584
       <include refid="Update_By_Example_Where_Clause" />
551
     </if>
585
     </if>
@@ -658,6 +692,15 @@
658
       <if test="tyygbm != null">
692
       <if test="tyygbm != null">
659
         tyygbm = #{tyygbm,jdbcType=VARCHAR},
693
         tyygbm = #{tyygbm,jdbcType=VARCHAR},
660
       </if>
694
       </if>
695
+      <if test="designLife != null">
696
+        design_life = #{designLife,jdbcType=DECIMAL},
697
+      </if>
698
+      <if test="startDate != null">
699
+        start_date = #{startDate,jdbcType=TIMESTAMP},
700
+      </if>
701
+      <if test="keeper != null">
702
+        keeper = #{keeper,jdbcType=VARCHAR},
703
+      </if>
661
     </set>
704
     </set>
662
     where id = #{id,jdbcType=VARCHAR}
705
     where id = #{id,jdbcType=VARCHAR}
663
   </update>
706
   </update>
@@ -697,7 +740,10 @@
697
       sjdw = #{sjdw,jdbcType=VARCHAR},
740
       sjdw = #{sjdw,jdbcType=VARCHAR},
698
       jldw = #{jldw,jdbcType=VARCHAR},
741
       jldw = #{jldw,jdbcType=VARCHAR},
699
       spt_dataid = #{sptDataid,jdbcType=VARCHAR},
742
       spt_dataid = #{sptDataid,jdbcType=VARCHAR},
700
-      tyygbm = #{tyygbm,jdbcType=VARCHAR}
743
+      tyygbm = #{tyygbm,jdbcType=VARCHAR},
744
+      design_life = #{designLife,jdbcType=DECIMAL},
745
+      start_date = #{startDate,jdbcType=TIMESTAMP},
746
+      keeper = #{keeper,jdbcType=VARCHAR}
701
     where id = #{id,jdbcType=VARCHAR}
747
     where id = #{id,jdbcType=VARCHAR}
702
   </update>
748
   </update>
703
 
749
 

+ 34 - 0
src/main/java/com/chinaitop/depot/basic/model/BasicTank.java

@@ -5,6 +5,40 @@ import java.util.Date;
5
 
5
 
6
 public class BasicTank {
6
 public class BasicTank {
7
 	
7
 	
8
+	
9
+	private BigDecimal designLife; //设计年限
10
+
11
+    private Date startDate;//启用日期
12
+
13
+    private String keeper;//保管员
14
+    
15
+	
16
+    
17
+	
18
+	public BigDecimal getDesignLife() {
19
+		return designLife;
20
+	}
21
+
22
+	public void setDesignLife(BigDecimal designLife) {
23
+		this.designLife = designLife;
24
+	}
25
+
26
+	public Date getStartDate() {
27
+		return startDate;
28
+	}
29
+
30
+	public void setStartDate(Date startDate) {
31
+		this.startDate = startDate;
32
+	}
33
+
34
+	public String getKeeper() {
35
+		return keeper;
36
+	}
37
+
38
+	public void setKeeper(String keeper) {
39
+		this.keeper = keeper;
40
+	}
41
+
8
 	private String tyygbm;
42
 	private String tyygbm;
9
 	
43
 	
10
     public String getTyygbm() {
44
     public String getTyygbm() {

+ 2 - 0
src/main/java/com/chinaitop/depot/gjjsj/mapper/GjjMapper.java

@@ -49,6 +49,8 @@ public interface GjjMapper {
49
 	Map<String, Object> getZjGjjDate(String id);
49
 	Map<String, Object> getZjGjjDate(String id);
50
 
50
 
51
 	Map<String, Object> getWjGjjData(String ywId);
51
 	Map<String, Object> getWjGjjData(String ywId);
52
+
53
+	Map<String, Object> getCnsptxGjjData(String ywId);
52
 	
54
 	
53
 
55
 
54
 
56
 

+ 26 - 1
src/main/java/com/chinaitop/depot/gjjsj/mapper/GjjMapper.xml

@@ -782,6 +782,7 @@
782
     </select>
782
     </select>
783
     
783
     
784
     
784
     
785
+    <!-- 文件信息 -->
785
     <select id="getWjGjjData" parameterType="java.lang.String" resultType="java.util.Map">
786
     <select id="getWjGjjData" parameterType="java.lang.String" resultType="java.util.Map">
786
     		SELECT
787
     		SELECT
787
 				org_id id,
788
 				org_id id,
@@ -794,6 +795,30 @@
794
 			FROM
795
 			FROM
795
 				org_info
796
 				org_info
796
 		    where 
797
 		    where 
797
-			   org_class_id=5318 and org_id = #{id}
798
+			   org_class_id=5318 and org_id = #{ywId}
799
+    </select>
800
+    
801
+    <!-- 仓内视频图像信息 -->
802
+    <select id="getCnsptxGjjData" parameterType="java.lang.String" resultType="java.util.Map">
803
+    		SELECT
804
+				a.id,
805
+				b.kqbm kqdm, -- 库区代码 Y
806
+				b.tykqbm tykqbm, -- 统一库区编码 Y
807
+				a.camera_id spjksbid,-- 视频监控设备id  K
808
+				c.cfbm cfdm, -- 仓房代码  K
809
+				c.tycfbm tycfbm,-- 统一仓房编码 Y
810
+				d.hwdm hwdm,-- 货位代码 Y
811
+				d.tyhwbm tyhwbm,-- 统一货位编码 Y
812
+				DATE_FORMAT(a.zpsj, '%Y-%m-%d %H:%i:%s') zpsj,-- 抓拍时间 K
813
+				a.cntxwjl cntxdz,-- 仓内图像地址 Y
814
+				'jpg' AS txwjhzm,-- 图像文件后缀名 
815
+				CONCAT(d.hwdm,01) Yzwbh,-- 预置位编号K
816
+				DATE_FORMAT(a.createdate, '%Y-%m-%d %H:%i:%s') zhgxsj  -- 最后更新时间----Y
817
+				FROM
818
+					camera_capture a
819
+				left JOIN org_info b on a.org_id = b.org_id
820
+				LEFT JOIN basic_storehouse c on c.storehouse_id = a.storehouse_id
821
+				LEFT JOIN basic_warehouse d on d.warehouse_id = a.warehouse_id
822
+			where a.id = #{ywId}
798
     </select>
823
     </select>
799
 </mapper>
824
 </mapper>

+ 2 - 0
src/main/java/com/chinaitop/mq/dto/jkEnum.java

@@ -48,6 +48,8 @@ public enum jkEnum {
48
 	
48
 	
49
 	xz("熏蒸",2431,"ODS_UP_XZZYXXJK"),
49
 	xz("熏蒸",2431,"ODS_UP_XZZYXXJK"),
50
 	
50
 	
51
+	cnsptx("仓内视频图像信息",2432,"ODS_UP_CNSPTXXXJK"),
52
+	
51
 	wgyj("违规预警信息",2434,"ODS_UP_WGYJXXJK"),
53
 	wgyj("违规预警信息",2434,"ODS_UP_WGYJXXJK"),
52
 	
54
 	
53
 	zj("质检",2435,"ODS_UP_ZJXXJK"),
55
 	zj("质检",2435,"ODS_UP_ZJXXJK"),

+ 9 - 0
src/main/java/com/chinaitop/mq/sub/MyMessageListener.java

@@ -194,6 +194,15 @@ public class MyMessageListener implements MessageListener {
194
     			
194
     			
195
     			pjsjmap.remove("tpdz");
195
     			pjsjmap.remove("tpdz");
196
     			
196
     			
197
+    		}else if(tableName.equals(jkEnum.cnsptx.getTableName())){//仓内视频图像信息
198
+    			pjsjmap = gjjMapper.getCnsptxGjjData(ywId);
199
+    			
200
+    			String cntxdz = (String) pjsjmap.get("cntxdz");
201
+    			String wjl = FileUtil.getBase64Content(cntxdz);
202
+    			pjsjmap.put("cntxwjl", wjl);
203
+    			
204
+    			pjsjmap.remove("cntxdz");
205
+    			
197
     		}
206
     		}
198
     		
207
     		
199
     		if(!pjsjmap.isEmpty() && pjsjmap != null){
208
     		if(!pjsjmap.isEmpty() && pjsjmap != null){