hanqingsong пре 1 година
родитељ
комит
324c6e38cf

+ 4 - 8
pom.xml

@@ -14,7 +14,7 @@
14 14
 	<parent>
15 15
 		<groupId>org.springframework.boot</groupId>
16 16
 		<artifactId>spring-boot-starter-parent</artifactId>
17
-		<version>2.0.2.RELEASE</version>
17
+		<version>2.0.4.RELEASE</version>
18 18
 		<relativePath/> <!-- lookup parent from repository -->
19 19
 	</parent>
20 20
 
@@ -33,7 +33,7 @@
33 33
 		<dependency>
34 34
 			<groupId>org.mybatis.spring.boot</groupId>
35 35
 			<artifactId>mybatis-spring-boot-starter</artifactId>
36
-			<version>1.3.1</version>
36
+			<version>1.3.2</version>
37 37
 		</dependency>
38 38
 		<!-- 引入spring boot自带的pagehelper插件 -->
39 39
 		<dependency>
@@ -43,17 +43,13 @@
43 43
 		</dependency>
44 44
 		<dependency>
45 45
 			<groupId>org.springframework.cloud</groupId>
46
-			<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
46
+			<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
47 47
 		</dependency>
48 48
 		<dependency>
49 49
 			<groupId>org.springframework.cloud</groupId>
50 50
 			<artifactId>spring-cloud-starter-config</artifactId>
51 51
 		</dependency>
52 52
 		<dependency>
53
-        	<groupId>org.springframework.cloud</groupId>
54
-        	<artifactId>spring-cloud-starter-openfeign</artifactId>
55
-        </dependency>
56
-		<dependency>
57 53
 			<groupId>org.apache.commons</groupId>
58 54
 			<artifactId>commons-lang3</artifactId>
59 55
 			<version>3.7</version>
@@ -170,7 +166,7 @@
170 166
 		<dependency>
171 167
 		    <groupId>com.alibaba</groupId>
172 168
 		    <artifactId>fastjson</artifactId>
173
-		    <version>1.2.4</version>
169
+		    <version>1.2.41</version>
174 170
 		</dependency>
175 171
 		<!-- lombok-->
176 172
         <dependency>

+ 20 - 5
src/main/java/com/chinaitop/depot/storage/mapper/StorageDailycheckMapper.xml

@@ -35,6 +35,7 @@
35 35
     <result column="lsmbqk" property="lsmbqk" jdbcType="INTEGER" />
36 36
     <result column="cfywxl" property="cfywxl" jdbcType="INTEGER" />
37 37
     <result column="sffc" property="sffc" jdbcType="INTEGER" />
38
+    <result column="commit_time" property="commitTime" jdbcType="INTEGER" />
38 39
   </resultMap>
39 40
   <sql id="Example_Where_Clause" >
40 41
     <where >
@@ -98,7 +99,7 @@
98 99
     id, house_id, warehouse_id, org_id, sub_type, check_time, checker, pests_position,
99 100
     pests_density, pests_species, rain_check, ratfinch_check, other_check, find_question,
100 101
     flag_type, rcdoor, rcwindow, rclamp, rchygiene, rccorridor, bgy, cyry,
101
-    tqqk, lw, cw, qw, cns, cws, sfjl, lsmbqk, cfywxl, sffc
102
+    tqqk, lw, cw, qw, cns, cws, sfjl, lsmbqk, cfywxl, sffc, commit_time
102 103
   </sql>
103 104
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.StorageDailycheckExample" >
104 105
     select
@@ -137,7 +138,7 @@
137 138
       pests_species, rain_check, ratfinch_check,
138 139
       other_check, find_question, flag_type,
139 140
       rcdoor, rcwindow,rclamp, rchygiene, rccorridor, bgy, cyry,
140
-      tqqk, lw, cw, qw, cns, cws, sfjl, lsmbqk, cfywxl, sffc
141
+      tqqk, lw, cw, qw, cns, cws, sfjl, lsmbqk, cfywxl, sffc, commit_time
141 142
       )
142 143
     values (#{id,jdbcType=INTEGER}, #{houseId,jdbcType=INTEGER}, #{warehouseId,jdbcType=INTEGER},
143 144
       #{orgId,jdbcType=INTEGER}, #{subType,jdbcType=INTEGER}, #{checkTime,jdbcType=TIMESTAMP},
@@ -148,7 +149,7 @@
148 149
       #{bgy,jdbcType=VARCHAR}, #{cyry,jdbcType=VARCHAR}, #{tqqk,jdbcType=VARCHAR}, #{lw,jdbcType=DECIMAL},
149 150
       #{cw,jdbcType=VARCHAR}, #{qw,jdbcType=VARCHAR}, #{cns,jdbcType=VARCHAR}, #{cws,jdbcType=VARCHAR},
150 151
       #{sfjl,jdbcType=INTEGER}, #{lsmbqk,jdbcType=INTEGER}, #{cfywxl,jdbcType=INTEGER},
151
-      #{sffc,jdbcType=INTEGER})
152
+      #{sffc,jdbcType=INTEGER}, #{commitTime,jdbcType=TIMESTAMP})
152 153
   </insert>
153 154
   <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageDailycheck" >
154 155
     insert into storage_dailycheck
@@ -250,6 +251,9 @@
250 251
       <if test="sffc != null" >
251 252
         sffc,
252 253
       </if>
254
+      <if test="commitTime != null" >
255
+        commit_time,
256
+      </if>
253 257
     </trim>
254 258
     <trim prefix="values (" suffix=")" suffixOverrides="," >
255 259
       SEQ_STORAGE_DAILYCHECK.nextVal,
@@ -349,6 +353,9 @@
349 353
       <if test="sffc != null" >
350 354
         #{sffc,jdbcType=INTEGER},
351 355
       </if>
356
+      <if test="commitTime != null" >
357
+        #{commitTime,jdbcType=TIMESTAMP},
358
+      </if>
352 359
     </trim>
353 360
   </insert>
354 361
   <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageDailycheckExample" resultType="java.lang.Integer" >
@@ -459,6 +466,9 @@
459 466
       <if test="record.sffc != null" >
460 467
         sffc = #{record.sffc,jdbcType=INTEGER},
461 468
       </if>
469
+      <if test="record.commitTime != null" >
470
+        commit_time = #{record.commitTime,jdbcType=TIMESTAMP},
471
+      </if>
462 472
     </set>
463 473
     <if test="_parameter != null" >
464 474
       <include refid="Update_By_Example_Where_Clause" />
@@ -497,7 +507,8 @@
497 507
     sfjl = #{record.sfjl,jdbcType=INTEGER},
498 508
     lsmbqk = #{record.lsmbqk,jdbcType=INTEGER},
499 509
     cfywxl = #{record.cfywxl,jdbcType=INTEGER},
500
-    sffc = #{record.sffc,jdbcType=INTEGER}
510
+    sffc = #{record.sffc,jdbcType=INTEGER},
511
+    commit_time = #{record.commitTime,jdbcType=TIMESTAMP}
501 512
     <if test="_parameter != null" >
502 513
       <include refid="Update_By_Example_Where_Clause" />
503 514
     </if>
@@ -601,6 +612,9 @@
601 612
       <if test="sffc != null" >
602 613
         sffc = #{sffc,jdbcType=INTEGER},
603 614
       </if>
615
+      <if test="commitTime != null" >
616
+        commit_time = #{commitTime,jdbcType=TIMESTAMP},
617
+      </if>
604 618
     </set>
605 619
     where id = #{id,jdbcType=INTEGER}
606 620
   </update>
@@ -636,7 +650,8 @@
636 650
       sfjl = #{sfjl,jdbcType=INTEGER},
637 651
       lsmbqk = #{lsmbqk,jdbcType=INTEGER},
638 652
       cfywxl = #{cfywxl,jdbcType=INTEGER},
639
-      sffc = #{sffc,jdbcType=INTEGER}
653
+      sffc = #{sffc,jdbcType=INTEGER},
654
+      commit_time = #{commitTime,jdbcType=TIMESTAMP}
640 655
     where id = #{id,jdbcType=INTEGER}
641 656
   </update>
642 657
 

+ 11 - 1
src/main/java/com/chinaitop/depot/storage/model/StorageDailycheck.java

@@ -18,7 +18,9 @@ public class StorageDailycheck {
18 18
 
19 19
     private String bgy;
20 20
 
21
-    private String cyry;
21
+    private String cyry; // 参与人员(提交人)
22
+
23
+    private Date commitTime; // 参与人员(提交人)
22 24
 
23 25
     private String tqqk;
24 26
 
@@ -455,4 +457,12 @@ public class StorageDailycheck {
455 457
     public void setSffc(Integer sffc) {
456 458
         this.sffc = sffc;
457 459
     }
460
+
461
+    public Date getCommitTime() {
462
+        return commitTime;
463
+    }
464
+
465
+    public void setCommitTime(Date commitTime) {
466
+        this.commitTime = commitTime;
467
+    }
458 468
 }

+ 60 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageDailycheckExample.java

@@ -2287,6 +2287,66 @@ public class StorageDailycheckExample {
2287 2287
             addCriterion("sffc not between", value1, value2, "sffc");
2288 2288
             return (Criteria) this;
2289 2289
         }
2290
+
2291
+        public Criteria andCommitTimeIsNull() {
2292
+            addCriterion("commit_time is null");
2293
+            return (Criteria) this;
2294
+        }
2295
+
2296
+        public Criteria andCommitTimeIsNotNull() {
2297
+            addCriterion("commit_time is not null");
2298
+            return (Criteria) this;
2299
+        }
2300
+
2301
+        public Criteria andCommitTimeEqualTo(Date value) {
2302
+            addCriterion("commit_time =", value, "commitTime");
2303
+            return (Criteria) this;
2304
+        }
2305
+
2306
+        public Criteria andCommitTimeNotEqualTo(Date value) {
2307
+            addCriterion("commit_time <>", value, "commitTime");
2308
+            return (Criteria) this;
2309
+        }
2310
+
2311
+        public Criteria andCommitTimeGreaterThan(Date value) {
2312
+            addCriterion("commit_time >", value, "commitTime");
2313
+            return (Criteria) this;
2314
+        }
2315
+
2316
+        public Criteria andCommitTimeGreaterThanOrEqualTo(Date value) {
2317
+            addCriterion("commit_time >=", value, "commitTime");
2318
+            return (Criteria) this;
2319
+        }
2320
+
2321
+        public Criteria andCommitTimeLessThan(Date value) {
2322
+            addCriterion("commit_time <", value, "commitTime");
2323
+            return (Criteria) this;
2324
+        }
2325
+
2326
+        public Criteria andCommitTimeLessThanOrEqualTo(Date value) {
2327
+            addCriterion("commit_time <=", value, "commitTime");
2328
+            return (Criteria) this;
2329
+        }
2330
+
2331
+        public Criteria andCommitTimeIn(List<Date> values) {
2332
+            addCriterion("commit_time in", values, "commitTime");
2333
+            return (Criteria) this;
2334
+        }
2335
+
2336
+        public Criteria andCommitTimeNotIn(List<Date> values) {
2337
+            addCriterion("commit_time not in", values, "commitTime");
2338
+            return (Criteria) this;
2339
+        }
2340
+
2341
+        public Criteria andCommitTimeBetween(Date value1, Date value2) {
2342
+            addCriterion("commit_time between", value1, value2, "commitTime");
2343
+            return (Criteria) this;
2344
+        }
2345
+
2346
+        public Criteria andCommitTimeNotBetween(Date value1, Date value2) {
2347
+            addCriterion("commit_time not between", value1, value2, "commitTime");
2348
+            return (Criteria) this;
2349
+        }
2290 2350
     }
2291 2351
 
2292 2352
     /**