ソースを参照

固定点位的水分数据类型更新

fanxw 1 年間 前
コミット
5c1e4202ce

+ 4 - 0
pom.xml

@@ -58,6 +58,10 @@
58 58
 			<artifactId>commons-lang3</artifactId>
59 59
 			<version>3.7</version>
60 60
 		</dependency>
61
+		<dependency>  
62
+		    <groupId>org.springframework.boot</groupId>  
63
+		    <artifactId>spring-boot-starter-security</artifactId>  
64
+		</dependency>
61 65
 
62 66
 		<!-- gbase依赖包 -->
63 67
 		<dependency>

+ 24 - 0
src/main/java/com/chinaitop/WebSecurityConfig.java

@@ -0,0 +1,24 @@
1
+package com.chinaitop;
2
+
3
+import org.springframework.context.annotation.Configuration;
4
+import org.springframework.security.config.annotation.web.builders.HttpSecurity;
5
+import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
6
+import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
7
+
8
+@Configuration
9
+@EnableWebSecurity
10
+public class WebSecurityConfig 
11
+extends WebSecurityConfigurerAdapter 
12
+{
13
+
14
+	@Override
15
+    protected void configure(HttpSecurity http) throws Exception {
16
+		http.authorizeRequests()
17
+		.antMatchers("/**")
18
+		.permitAll() //允许所有用户访问所有资源
19
+        .and()
20
+        .csrf().disable(); // 禁用CSRF(防止伪造的跨域攻击)
21
+
22
+        super.configure(http);
23
+    }
24
+}

+ 101 - 101
src/main/java/com/chinaitop/depot/storage/mapper/StorageWarterFixedPointMapper.xml

@@ -6,22 +6,22 @@
6 6
     <result column="z_id" property="zId" jdbcType="VARCHAR" />
7 7
     <result column="org_id" property="orgId" jdbcType="INTEGER" />
8 8
     <result column="qy" property="qy" jdbcType="INTEGER" />
9
-    <result column="zy_s" property="zyS" jdbcType="DECIMAL" />
10
-    <result column="zy_z" property="zyZ" jdbcType="DECIMAL" />
11
-    <result column="zy_x" property="zyX" jdbcType="DECIMAL" />
12
-    <result column="dn_s" property="dnS" jdbcType="DECIMAL" />
13
-    <result column="dn_z" property="dnZ" jdbcType="DECIMAL" />
14
-    <result column="dn_x" property="dnX" jdbcType="DECIMAL" />
15
-    <result column="db_s" property="dbS" jdbcType="DECIMAL" />
16
-    <result column="db_z" property="dbZ" jdbcType="DECIMAL" />
17
-    <result column="db_x" property="dbX" jdbcType="DECIMAL" />
18
-    <result column="xn_s" property="xnS" jdbcType="DECIMAL" />
19
-    <result column="xn_z" property="xnZ" jdbcType="DECIMAL" />
20
-    <result column="xn_x" property="xnX" jdbcType="DECIMAL" />
21
-    <result column="xb_s" property="xbS" jdbcType="DECIMAL" />
22
-    <result column="xb_z" property="xbZ" jdbcType="DECIMAL" />
23
-    <result column="xb_x" property="xbX" jdbcType="DECIMAL" />
24
-    <result column="avg_val" property="avgVal" jdbcType="DECIMAL" />
9
+    <result column="zy_s" property="zyS" jdbcType="VARCHAR" />
10
+    <result column="zy_z" property="zyZ" jdbcType="VARCHAR" />
11
+    <result column="zy_x" property="zyX" jdbcType="VARCHAR" />
12
+    <result column="dn_s" property="dnS" jdbcType="VARCHAR" />
13
+    <result column="dn_z" property="dnZ" jdbcType="VARCHAR" />
14
+    <result column="dn_x" property="dnX" jdbcType="VARCHAR" />
15
+    <result column="db_s" property="dbS" jdbcType="VARCHAR" />
16
+    <result column="db_z" property="dbZ" jdbcType="VARCHAR" />
17
+    <result column="db_x" property="dbX" jdbcType="VARCHAR" />
18
+    <result column="xn_s" property="xnS" jdbcType="VARCHAR" />
19
+    <result column="xn_z" property="xnZ" jdbcType="VARCHAR" />
20
+    <result column="xn_x" property="xnX" jdbcType="VARCHAR" />
21
+    <result column="xb_s" property="xbS" jdbcType="VARCHAR" />
22
+    <result column="xb_z" property="xbZ" jdbcType="VARCHAR" />
23
+    <result column="xb_x" property="xbX" jdbcType="VARCHAR" />
24
+    <result column="avg_val" property="avgVal" jdbcType="VARCHAR" />
25 25
     <result column="safe" property="safe" jdbcType="INTEGER" />
26 26
     <result column="input_time" property="inputTime" jdbcType="TIMESTAMP" />
27 27
     <result column="edit_time" property="editTime" jdbcType="TIMESTAMP" />
@@ -127,11 +127,11 @@
127 127
       avg_val, safe, input_time, 
128 128
       edit_time)
129 129
     values (#{id,jdbcType=VARCHAR}, #{zId,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER}, 
130
-      #{qy,jdbcType=INTEGER}, #{zyS,jdbcType=DECIMAL}, #{zyZ,jdbcType=DECIMAL}, #{zyX,jdbcType=DECIMAL}, 
131
-      #{dnS,jdbcType=DECIMAL}, #{dnZ,jdbcType=DECIMAL}, #{dnX,jdbcType=DECIMAL}, #{dbS,jdbcType=DECIMAL}, 
132
-      #{dbZ,jdbcType=DECIMAL}, #{dbX,jdbcType=DECIMAL}, #{xnS,jdbcType=DECIMAL}, #{xnZ,jdbcType=DECIMAL}, 
133
-      #{xnX,jdbcType=DECIMAL}, #{xbS,jdbcType=DECIMAL}, #{xbZ,jdbcType=DECIMAL}, #{xbX,jdbcType=DECIMAL}, 
134
-      #{avgVal,jdbcType=DECIMAL}, #{safe,jdbcType=INTEGER}, #{inputTime,jdbcType=TIMESTAMP}, 
130
+      #{qy,jdbcType=INTEGER}, #{zyS,jdbcType=VARCHAR}, #{zyZ,jdbcType=VARCHAR}, #{zyX,jdbcType=VARCHAR}, 
131
+      #{dnS,jdbcType=VARCHAR}, #{dnZ,jdbcType=VARCHAR}, #{dnX,jdbcType=VARCHAR}, #{dbS,jdbcType=VARCHAR}, 
132
+      #{dbZ,jdbcType=VARCHAR}, #{dbX,jdbcType=VARCHAR}, #{xnS,jdbcType=VARCHAR}, #{xnZ,jdbcType=VARCHAR}, 
133
+      #{xnX,jdbcType=VARCHAR}, #{xbS,jdbcType=VARCHAR}, #{xbZ,jdbcType=VARCHAR}, #{xbX,jdbcType=VARCHAR}, 
134
+      #{avgVal,jdbcType=VARCHAR}, #{safe,jdbcType=INTEGER}, #{inputTime,jdbcType=TIMESTAMP}, 
135 135
       #{editTime,jdbcType=TIMESTAMP})
136 136
   </insert>
137 137
   <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageWarterFixedPoint" >
@@ -221,52 +221,52 @@
221 221
         #{qy,jdbcType=INTEGER},
222 222
       </if>
223 223
       <if test="zyS != null" >
224
-        #{zyS,jdbcType=DECIMAL},
224
+        #{zyS,jdbcType=VARCHAR},
225 225
       </if>
226 226
       <if test="zyZ != null" >
227
-        #{zyZ,jdbcType=DECIMAL},
227
+        #{zyZ,jdbcType=VARCHAR},
228 228
       </if>
229 229
       <if test="zyX != null" >
230
-        #{zyX,jdbcType=DECIMAL},
230
+        #{zyX,jdbcType=VARCHAR},
231 231
       </if>
232 232
       <if test="dnS != null" >
233
-        #{dnS,jdbcType=DECIMAL},
233
+        #{dnS,jdbcType=VARCHAR},
234 234
       </if>
235 235
       <if test="dnZ != null" >
236
-        #{dnZ,jdbcType=DECIMAL},
236
+        #{dnZ,jdbcType=VARCHAR},
237 237
       </if>
238 238
       <if test="dnX != null" >
239
-        #{dnX,jdbcType=DECIMAL},
239
+        #{dnX,jdbcType=VARCHAR},
240 240
       </if>
241 241
       <if test="dbS != null" >
242
-        #{dbS,jdbcType=DECIMAL},
242
+        #{dbS,jdbcType=VARCHAR},
243 243
       </if>
244 244
       <if test="dbZ != null" >
245
-        #{dbZ,jdbcType=DECIMAL},
245
+        #{dbZ,jdbcType=VARCHAR},
246 246
       </if>
247 247
       <if test="dbX != null" >
248
-        #{dbX,jdbcType=DECIMAL},
248
+        #{dbX,jdbcType=VARCHAR},
249 249
       </if>
250 250
       <if test="xnS != null" >
251
-        #{xnS,jdbcType=DECIMAL},
251
+        #{xnS,jdbcType=VARCHAR},
252 252
       </if>
253 253
       <if test="xnZ != null" >
254
-        #{xnZ,jdbcType=DECIMAL},
254
+        #{xnZ,jdbcType=VARCHAR},
255 255
       </if>
256 256
       <if test="xnX != null" >
257
-        #{xnX,jdbcType=DECIMAL},
257
+        #{xnX,jdbcType=VARCHAR},
258 258
       </if>
259 259
       <if test="xbS != null" >
260
-        #{xbS,jdbcType=DECIMAL},
260
+        #{xbS,jdbcType=VARCHAR},
261 261
       </if>
262 262
       <if test="xbZ != null" >
263
-        #{xbZ,jdbcType=DECIMAL},
263
+        #{xbZ,jdbcType=VARCHAR},
264 264
       </if>
265 265
       <if test="xbX != null" >
266
-        #{xbX,jdbcType=DECIMAL},
266
+        #{xbX,jdbcType=VARCHAR},
267 267
       </if>
268 268
       <if test="avgVal != null" >
269
-        #{avgVal,jdbcType=DECIMAL},
269
+        #{avgVal,jdbcType=VARCHAR},
270 270
       </if>
271 271
       <if test="safe != null" >
272 272
         #{safe,jdbcType=INTEGER},
@@ -301,52 +301,52 @@
301 301
         qy = #{record.qy,jdbcType=INTEGER},
302 302
       </if>
303 303
       <if test="record.zyS != null" >
304
-        zy_s = #{record.zyS,jdbcType=DECIMAL},
304
+        zy_s = #{record.zyS,jdbcType=VARCHAR},
305 305
       </if>
306 306
       <if test="record.zyZ != null" >
307
-        zy_z = #{record.zyZ,jdbcType=DECIMAL},
307
+        zy_z = #{record.zyZ,jdbcType=VARCHAR},
308 308
       </if>
309 309
       <if test="record.zyX != null" >
310
-        zy_x = #{record.zyX,jdbcType=DECIMAL},
310
+        zy_x = #{record.zyX,jdbcType=VARCHAR},
311 311
       </if>
312 312
       <if test="record.dnS != null" >
313
-        dn_s = #{record.dnS,jdbcType=DECIMAL},
313
+        dn_s = #{record.dnS,jdbcType=VARCHAR},
314 314
       </if>
315 315
       <if test="record.dnZ != null" >
316
-        dn_z = #{record.dnZ,jdbcType=DECIMAL},
316
+        dn_z = #{record.dnZ,jdbcType=VARCHAR},
317 317
       </if>
318 318
       <if test="record.dnX != null" >
319
-        dn_x = #{record.dnX,jdbcType=DECIMAL},
319
+        dn_x = #{record.dnX,jdbcType=VARCHAR},
320 320
       </if>
321 321
       <if test="record.dbS != null" >
322
-        db_s = #{record.dbS,jdbcType=DECIMAL},
322
+        db_s = #{record.dbS,jdbcType=VARCHAR},
323 323
       </if>
324 324
       <if test="record.dbZ != null" >
325
-        db_z = #{record.dbZ,jdbcType=DECIMAL},
325
+        db_z = #{record.dbZ,jdbcType=VARCHAR},
326 326
       </if>
327 327
       <if test="record.dbX != null" >
328
-        db_x = #{record.dbX,jdbcType=DECIMAL},
328
+        db_x = #{record.dbX,jdbcType=VARCHAR},
329 329
       </if>
330 330
       <if test="record.xnS != null" >
331
-        xn_s = #{record.xnS,jdbcType=DECIMAL},
331
+        xn_s = #{record.xnS,jdbcType=VARCHAR},
332 332
       </if>
333 333
       <if test="record.xnZ != null" >
334
-        xn_z = #{record.xnZ,jdbcType=DECIMAL},
334
+        xn_z = #{record.xnZ,jdbcType=VARCHAR},
335 335
       </if>
336 336
       <if test="record.xnX != null" >
337
-        xn_x = #{record.xnX,jdbcType=DECIMAL},
337
+        xn_x = #{record.xnX,jdbcType=VARCHAR},
338 338
       </if>
339 339
       <if test="record.xbS != null" >
340
-        xb_s = #{record.xbS,jdbcType=DECIMAL},
340
+        xb_s = #{record.xbS,jdbcType=VARCHAR},
341 341
       </if>
342 342
       <if test="record.xbZ != null" >
343
-        xb_z = #{record.xbZ,jdbcType=DECIMAL},
343
+        xb_z = #{record.xbZ,jdbcType=VARCHAR},
344 344
       </if>
345 345
       <if test="record.xbX != null" >
346
-        xb_x = #{record.xbX,jdbcType=DECIMAL},
346
+        xb_x = #{record.xbX,jdbcType=VARCHAR},
347 347
       </if>
348 348
       <if test="record.avgVal != null" >
349
-        avg_val = #{record.avgVal,jdbcType=DECIMAL},
349
+        avg_val = #{record.avgVal,jdbcType=VARCHAR},
350 350
       </if>
351 351
       <if test="record.safe != null" >
352 352
         safe = #{record.safe,jdbcType=INTEGER},
@@ -368,22 +368,22 @@
368 368
       z_id = #{record.zId,jdbcType=VARCHAR},
369 369
       org_id = #{record.orgId,jdbcType=INTEGER},
370 370
       qy = #{record.qy,jdbcType=INTEGER},
371
-      zy_s = #{record.zyS,jdbcType=DECIMAL},
372
-      zy_z = #{record.zyZ,jdbcType=DECIMAL},
373
-      zy_x = #{record.zyX,jdbcType=DECIMAL},
374
-      dn_s = #{record.dnS,jdbcType=DECIMAL},
375
-      dn_z = #{record.dnZ,jdbcType=DECIMAL},
376
-      dn_x = #{record.dnX,jdbcType=DECIMAL},
377
-      db_s = #{record.dbS,jdbcType=DECIMAL},
378
-      db_z = #{record.dbZ,jdbcType=DECIMAL},
379
-      db_x = #{record.dbX,jdbcType=DECIMAL},
380
-      xn_s = #{record.xnS,jdbcType=DECIMAL},
381
-      xn_z = #{record.xnZ,jdbcType=DECIMAL},
382
-      xn_x = #{record.xnX,jdbcType=DECIMAL},
383
-      xb_s = #{record.xbS,jdbcType=DECIMAL},
384
-      xb_z = #{record.xbZ,jdbcType=DECIMAL},
385
-      xb_x = #{record.xbX,jdbcType=DECIMAL},
386
-      avg_val = #{record.avgVal,jdbcType=DECIMAL},
371
+      zy_s = #{record.zyS,jdbcType=VARCHAR},
372
+      zy_z = #{record.zyZ,jdbcType=VARCHAR},
373
+      zy_x = #{record.zyX,jdbcType=VARCHAR},
374
+      dn_s = #{record.dnS,jdbcType=VARCHAR},
375
+      dn_z = #{record.dnZ,jdbcType=VARCHAR},
376
+      dn_x = #{record.dnX,jdbcType=VARCHAR},
377
+      db_s = #{record.dbS,jdbcType=VARCHAR},
378
+      db_z = #{record.dbZ,jdbcType=VARCHAR},
379
+      db_x = #{record.dbX,jdbcType=VARCHAR},
380
+      xn_s = #{record.xnS,jdbcType=VARCHAR},
381
+      xn_z = #{record.xnZ,jdbcType=VARCHAR},
382
+      xn_x = #{record.xnX,jdbcType=VARCHAR},
383
+      xb_s = #{record.xbS,jdbcType=VARCHAR},
384
+      xb_z = #{record.xbZ,jdbcType=VARCHAR},
385
+      xb_x = #{record.xbX,jdbcType=VARCHAR},
386
+      avg_val = #{record.avgVal,jdbcType=VARCHAR},
387 387
       safe = #{record.safe,jdbcType=INTEGER},
388 388
       input_time = #{record.inputTime,jdbcType=TIMESTAMP},
389 389
       edit_time = #{record.editTime,jdbcType=TIMESTAMP}
@@ -404,52 +404,52 @@
404 404
         qy = #{qy,jdbcType=INTEGER},
405 405
       </if>
406 406
       <if test="zyS != null" >
407
-        zy_s = #{zyS,jdbcType=DECIMAL},
407
+        zy_s = #{zyS,jdbcType=VARCHAR},
408 408
       </if>
409 409
       <if test="zyZ != null" >
410
-        zy_z = #{zyZ,jdbcType=DECIMAL},
410
+        zy_z = #{zyZ,jdbcType=VARCHAR},
411 411
       </if>
412 412
       <if test="zyX != null" >
413
-        zy_x = #{zyX,jdbcType=DECIMAL},
413
+        zy_x = #{zyX,jdbcType=VARCHAR},
414 414
       </if>
415 415
       <if test="dnS != null" >
416
-        dn_s = #{dnS,jdbcType=DECIMAL},
416
+        dn_s = #{dnS,jdbcType=VARCHAR},
417 417
       </if>
418 418
       <if test="dnZ != null" >
419
-        dn_z = #{dnZ,jdbcType=DECIMAL},
419
+        dn_z = #{dnZ,jdbcType=VARCHAR},
420 420
       </if>
421 421
       <if test="dnX != null" >
422
-        dn_x = #{dnX,jdbcType=DECIMAL},
422
+        dn_x = #{dnX,jdbcType=VARCHAR},
423 423
       </if>
424 424
       <if test="dbS != null" >
425
-        db_s = #{dbS,jdbcType=DECIMAL},
425
+        db_s = #{dbS,jdbcType=VARCHAR},
426 426
       </if>
427 427
       <if test="dbZ != null" >
428
-        db_z = #{dbZ,jdbcType=DECIMAL},
428
+        db_z = #{dbZ,jdbcType=VARCHAR},
429 429
       </if>
430 430
       <if test="dbX != null" >
431
-        db_x = #{dbX,jdbcType=DECIMAL},
431
+        db_x = #{dbX,jdbcType=VARCHAR},
432 432
       </if>
433 433
       <if test="xnS != null" >
434
-        xn_s = #{xnS,jdbcType=DECIMAL},
434
+        xn_s = #{xnS,jdbcType=VARCHAR},
435 435
       </if>
436 436
       <if test="xnZ != null" >
437
-        xn_z = #{xnZ,jdbcType=DECIMAL},
437
+        xn_z = #{xnZ,jdbcType=VARCHAR},
438 438
       </if>
439 439
       <if test="xnX != null" >
440
-        xn_x = #{xnX,jdbcType=DECIMAL},
440
+        xn_x = #{xnX,jdbcType=VARCHAR},
441 441
       </if>
442 442
       <if test="xbS != null" >
443
-        xb_s = #{xbS,jdbcType=DECIMAL},
443
+        xb_s = #{xbS,jdbcType=VARCHAR},
444 444
       </if>
445 445
       <if test="xbZ != null" >
446
-        xb_z = #{xbZ,jdbcType=DECIMAL},
446
+        xb_z = #{xbZ,jdbcType=VARCHAR},
447 447
       </if>
448 448
       <if test="xbX != null" >
449
-        xb_x = #{xbX,jdbcType=DECIMAL},
449
+        xb_x = #{xbX,jdbcType=VARCHAR},
450 450
       </if>
451 451
       <if test="avgVal != null" >
452
-        avg_val = #{avgVal,jdbcType=DECIMAL},
452
+        avg_val = #{avgVal,jdbcType=VARCHAR},
453 453
       </if>
454 454
       <if test="safe != null" >
455 455
         safe = #{safe,jdbcType=INTEGER},
@@ -468,22 +468,22 @@
468 468
     set z_id = #{zId,jdbcType=VARCHAR},
469 469
       org_id = #{orgId,jdbcType=INTEGER},
470 470
       qy = #{qy,jdbcType=INTEGER},
471
-      zy_s = #{zyS,jdbcType=DECIMAL},
472
-      zy_z = #{zyZ,jdbcType=DECIMAL},
473
-      zy_x = #{zyX,jdbcType=DECIMAL},
474
-      dn_s = #{dnS,jdbcType=DECIMAL},
475
-      dn_z = #{dnZ,jdbcType=DECIMAL},
476
-      dn_x = #{dnX,jdbcType=DECIMAL},
477
-      db_s = #{dbS,jdbcType=DECIMAL},
478
-      db_z = #{dbZ,jdbcType=DECIMAL},
479
-      db_x = #{dbX,jdbcType=DECIMAL},
480
-      xn_s = #{xnS,jdbcType=DECIMAL},
481
-      xn_z = #{xnZ,jdbcType=DECIMAL},
482
-      xn_x = #{xnX,jdbcType=DECIMAL},
483
-      xb_s = #{xbS,jdbcType=DECIMAL},
484
-      xb_z = #{xbZ,jdbcType=DECIMAL},
485
-      xb_x = #{xbX,jdbcType=DECIMAL},
486
-      avg_val = #{avgVal,jdbcType=DECIMAL},
471
+      zy_s = #{zyS,jdbcType=VARCHAR},
472
+      zy_z = #{zyZ,jdbcType=VARCHAR},
473
+      zy_x = #{zyX,jdbcType=VARCHAR},
474
+      dn_s = #{dnS,jdbcType=VARCHAR},
475
+      dn_z = #{dnZ,jdbcType=VARCHAR},
476
+      dn_x = #{dnX,jdbcType=VARCHAR},
477
+      db_s = #{dbS,jdbcType=VARCHAR},
478
+      db_z = #{dbZ,jdbcType=VARCHAR},
479
+      db_x = #{dbX,jdbcType=VARCHAR},
480
+      xn_s = #{xnS,jdbcType=VARCHAR},
481
+      xn_z = #{xnZ,jdbcType=VARCHAR},
482
+      xn_x = #{xnX,jdbcType=VARCHAR},
483
+      xb_s = #{xbS,jdbcType=VARCHAR},
484
+      xb_z = #{xbZ,jdbcType=VARCHAR},
485
+      xb_x = #{xbX,jdbcType=VARCHAR},
486
+      avg_val = #{avgVal,jdbcType=VARCHAR},
487 487
       safe = #{safe,jdbcType=INTEGER},
488 488
       input_time = #{inputTime,jdbcType=TIMESTAMP},
489 489
       edit_time = #{editTime,jdbcType=TIMESTAMP}

+ 9 - 1
src/main/java/com/chinaitop/depot/storage/model/StorageQualitycheck.java

@@ -57,7 +57,7 @@ public class StorageQualitycheck {
57 57
 
58 58
     private Integer warehouseId;
59 59
 
60
-    private String typeUpdate;//质量检查类型:0:初检 1:验收 2:春秋普查 3:出库检验 4:日常检验 5:第三方检查
60
+    private String typeUpdate;//质量检查类型:0:初检或自检 1:验收 2:春秋普查 3:出库检验 4:日常检验(春秋普查) 5:第三方检查,6:入仓初检(入库检验)
61 61
 
62 62
     private Integer subType;//粮食品种在字典表的id
63 63
 
@@ -75,10 +75,18 @@ public class StorageQualitycheck {
75 75
     @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
76 76
     private Date zhycsj;
77 77
 
78
+    /**
79
+     * 质量检查类型:0:初检或自检 1:验收 2:春秋普查 3:出库检验 4:日常检验(春秋普查) 5:第三方检查,6:入仓初检(入库检验)
80
+     * @return
81
+     */
78 82
     public String getTypeUpdate() {
79 83
         return typeUpdate;
80 84
     }
81 85
 
86
+    /**
87
+     * 质量检查类型:0:初检或自检 1:验收 2:春秋普查 3:出库检验 4:日常检验(春秋普查) 5:第三方检查,6:入仓初检(入库检验)
88
+     * @param typeUpdate
89
+     */
82 90
     public void setTypeUpdate(String typeUpdate) {
83 91
         this.typeUpdate = typeUpdate;
84 92
     }

+ 48 - 49
src/main/java/com/chinaitop/depot/storage/model/StorageWarterFixedPoint.java

@@ -1,6 +1,5 @@
1 1
 package com.chinaitop.depot.storage.model;
2 2
 
3
-import java.math.BigDecimal;
4 3
 import java.util.Date;
5 4
 
6 5
 public class StorageWarterFixedPoint {
@@ -12,37 +11,37 @@ public class StorageWarterFixedPoint {
12 11
 
13 12
     private Integer qy;
14 13
 
15
-    private BigDecimal zyS;
14
+    private String zyS;
16 15
 
17
-    private BigDecimal zyZ;
16
+    private String zyZ;
18 17
 
19
-    private BigDecimal zyX;
18
+    private String zyX;
20 19
 
21
-    private BigDecimal dnS;
20
+    private String dnS;
22 21
 
23
-    private BigDecimal dnZ;
22
+    private String dnZ;
24 23
 
25
-    private BigDecimal dnX;
24
+    private String dnX;
26 25
 
27
-    private BigDecimal dbS;
26
+    private String dbS;
28 27
 
29
-    private BigDecimal dbZ;
28
+    private String dbZ;
30 29
 
31
-    private BigDecimal dbX;
30
+    private String dbX;
32 31
 
33
-    private BigDecimal xnS;
32
+    private String xnS;
34 33
 
35
-    private BigDecimal xnZ;
34
+    private String xnZ;
36 35
 
37
-    private BigDecimal xnX;
36
+    private String xnX;
38 37
 
39
-    private BigDecimal xbS;
38
+    private String xbS;
40 39
 
41
-    private BigDecimal xbZ;
40
+    private String xbZ;
42 41
 
43
-    private BigDecimal xbX;
42
+    private String xbX;
44 43
 
45
-    private BigDecimal avgVal;
44
+    private String avgVal;
46 45
 
47 46
     private Integer safe;
48 47
 
@@ -118,7 +117,7 @@ public class StorageWarterFixedPoint {
118 117
      * null
119 118
      * @return zy_s null
120 119
      */
121
-    public BigDecimal getZyS() {
120
+    public String getZyS() {
122 121
         return zyS;
123 122
     }
124 123
 
@@ -126,7 +125,7 @@ public class StorageWarterFixedPoint {
126 125
      * null
127 126
      * @param zyS null
128 127
      */
129
-    public void setZyS(BigDecimal zyS) {
128
+    public void setZyS(String zyS) {
130 129
         this.zyS = zyS;
131 130
     }
132 131
 
@@ -134,7 +133,7 @@ public class StorageWarterFixedPoint {
134 133
      * null
135 134
      * @return zy_z null
136 135
      */
137
-    public BigDecimal getZyZ() {
136
+    public String getZyZ() {
138 137
         return zyZ;
139 138
     }
140 139
 
@@ -142,7 +141,7 @@ public class StorageWarterFixedPoint {
142 141
      * null
143 142
      * @param zyZ null
144 143
      */
145
-    public void setZyZ(BigDecimal zyZ) {
144
+    public void setZyZ(String zyZ) {
146 145
         this.zyZ = zyZ;
147 146
     }
148 147
 
@@ -150,7 +149,7 @@ public class StorageWarterFixedPoint {
150 149
      * null
151 150
      * @return zy_x null
152 151
      */
153
-    public BigDecimal getZyX() {
152
+    public String getZyX() {
154 153
         return zyX;
155 154
     }
156 155
 
@@ -158,7 +157,7 @@ public class StorageWarterFixedPoint {
158 157
      * null
159 158
      * @param zyX null
160 159
      */
161
-    public void setZyX(BigDecimal zyX) {
160
+    public void setZyX(String zyX) {
162 161
         this.zyX = zyX;
163 162
     }
164 163
 
@@ -166,7 +165,7 @@ public class StorageWarterFixedPoint {
166 165
      * null
167 166
      * @return dn_s null
168 167
      */
169
-    public BigDecimal getDnS() {
168
+    public String getDnS() {
170 169
         return dnS;
171 170
     }
172 171
 
@@ -174,7 +173,7 @@ public class StorageWarterFixedPoint {
174 173
      * null
175 174
      * @param dnS null
176 175
      */
177
-    public void setDnS(BigDecimal dnS) {
176
+    public void setDnS(String dnS) {
178 177
         this.dnS = dnS;
179 178
     }
180 179
 
@@ -182,7 +181,7 @@ public class StorageWarterFixedPoint {
182 181
      * null
183 182
      * @return dn_z null
184 183
      */
185
-    public BigDecimal getDnZ() {
184
+    public String getDnZ() {
186 185
         return dnZ;
187 186
     }
188 187
 
@@ -190,7 +189,7 @@ public class StorageWarterFixedPoint {
190 189
      * null
191 190
      * @param dnZ null
192 191
      */
193
-    public void setDnZ(BigDecimal dnZ) {
192
+    public void setDnZ(String dnZ) {
194 193
         this.dnZ = dnZ;
195 194
     }
196 195
 
@@ -198,7 +197,7 @@ public class StorageWarterFixedPoint {
198 197
      * null
199 198
      * @return dn_x null
200 199
      */
201
-    public BigDecimal getDnX() {
200
+    public String getDnX() {
202 201
         return dnX;
203 202
     }
204 203
 
@@ -206,7 +205,7 @@ public class StorageWarterFixedPoint {
206 205
      * null
207 206
      * @param dnX null
208 207
      */
209
-    public void setDnX(BigDecimal dnX) {
208
+    public void setDnX(String dnX) {
210 209
         this.dnX = dnX;
211 210
     }
212 211
 
@@ -214,7 +213,7 @@ public class StorageWarterFixedPoint {
214 213
      * null
215 214
      * @return db_s null
216 215
      */
217
-    public BigDecimal getDbS() {
216
+    public String getDbS() {
218 217
         return dbS;
219 218
     }
220 219
 
@@ -222,7 +221,7 @@ public class StorageWarterFixedPoint {
222 221
      * null
223 222
      * @param dbS null
224 223
      */
225
-    public void setDbS(BigDecimal dbS) {
224
+    public void setDbS(String dbS) {
226 225
         this.dbS = dbS;
227 226
     }
228 227
 
@@ -230,7 +229,7 @@ public class StorageWarterFixedPoint {
230 229
      * null
231 230
      * @return db_z null
232 231
      */
233
-    public BigDecimal getDbZ() {
232
+    public String getDbZ() {
234 233
         return dbZ;
235 234
     }
236 235
 
@@ -238,7 +237,7 @@ public class StorageWarterFixedPoint {
238 237
      * null
239 238
      * @param dbZ null
240 239
      */
241
-    public void setDbZ(BigDecimal dbZ) {
240
+    public void setDbZ(String dbZ) {
242 241
         this.dbZ = dbZ;
243 242
     }
244 243
 
@@ -246,7 +245,7 @@ public class StorageWarterFixedPoint {
246 245
      * null
247 246
      * @return db_x null
248 247
      */
249
-    public BigDecimal getDbX() {
248
+    public String getDbX() {
250 249
         return dbX;
251 250
     }
252 251
 
@@ -254,7 +253,7 @@ public class StorageWarterFixedPoint {
254 253
      * null
255 254
      * @param dbX null
256 255
      */
257
-    public void setDbX(BigDecimal dbX) {
256
+    public void setDbX(String dbX) {
258 257
         this.dbX = dbX;
259 258
     }
260 259
 
@@ -262,7 +261,7 @@ public class StorageWarterFixedPoint {
262 261
      * null
263 262
      * @return xn_s null
264 263
      */
265
-    public BigDecimal getXnS() {
264
+    public String getXnS() {
266 265
         return xnS;
267 266
     }
268 267
 
@@ -270,7 +269,7 @@ public class StorageWarterFixedPoint {
270 269
      * null
271 270
      * @param xnS null
272 271
      */
273
-    public void setXnS(BigDecimal xnS) {
272
+    public void setXnS(String xnS) {
274 273
         this.xnS = xnS;
275 274
     }
276 275
 
@@ -278,7 +277,7 @@ public class StorageWarterFixedPoint {
278 277
      * null
279 278
      * @return xn_z null
280 279
      */
281
-    public BigDecimal getXnZ() {
280
+    public String getXnZ() {
282 281
         return xnZ;
283 282
     }
284 283
 
@@ -286,7 +285,7 @@ public class StorageWarterFixedPoint {
286 285
      * null
287 286
      * @param xnZ null
288 287
      */
289
-    public void setXnZ(BigDecimal xnZ) {
288
+    public void setXnZ(String xnZ) {
290 289
         this.xnZ = xnZ;
291 290
     }
292 291
 
@@ -294,7 +293,7 @@ public class StorageWarterFixedPoint {
294 293
      * null
295 294
      * @return xn_x null
296 295
      */
297
-    public BigDecimal getXnX() {
296
+    public String getXnX() {
298 297
         return xnX;
299 298
     }
300 299
 
@@ -302,7 +301,7 @@ public class StorageWarterFixedPoint {
302 301
      * null
303 302
      * @param xnX null
304 303
      */
305
-    public void setXnX(BigDecimal xnX) {
304
+    public void setXnX(String xnX) {
306 305
         this.xnX = xnX;
307 306
     }
308 307
 
@@ -310,7 +309,7 @@ public class StorageWarterFixedPoint {
310 309
      * null
311 310
      * @return xb_s null
312 311
      */
313
-    public BigDecimal getXbS() {
312
+    public String getXbS() {
314 313
         return xbS;
315 314
     }
316 315
 
@@ -318,7 +317,7 @@ public class StorageWarterFixedPoint {
318 317
      * null
319 318
      * @param xbS null
320 319
      */
321
-    public void setXbS(BigDecimal xbS) {
320
+    public void setXbS(String xbS) {
322 321
         this.xbS = xbS;
323 322
     }
324 323
 
@@ -326,7 +325,7 @@ public class StorageWarterFixedPoint {
326 325
      * null
327 326
      * @return xb_z null
328 327
      */
329
-    public BigDecimal getXbZ() {
328
+    public String getXbZ() {
330 329
         return xbZ;
331 330
     }
332 331
 
@@ -334,7 +333,7 @@ public class StorageWarterFixedPoint {
334 333
      * null
335 334
      * @param xbZ null
336 335
      */
337
-    public void setXbZ(BigDecimal xbZ) {
336
+    public void setXbZ(String xbZ) {
338 337
         this.xbZ = xbZ;
339 338
     }
340 339
 
@@ -342,7 +341,7 @@ public class StorageWarterFixedPoint {
342 341
      * null
343 342
      * @return xb_x null
344 343
      */
345
-    public BigDecimal getXbX() {
344
+    public String getXbX() {
346 345
         return xbX;
347 346
     }
348 347
 
@@ -350,7 +349,7 @@ public class StorageWarterFixedPoint {
350 349
      * null
351 350
      * @param xbX null
352 351
      */
353
-    public void setXbX(BigDecimal xbX) {
352
+    public void setXbX(String xbX) {
354 353
         this.xbX = xbX;
355 354
     }
356 355
 
@@ -358,7 +357,7 @@ public class StorageWarterFixedPoint {
358 357
      * null
359 358
      * @return avg_val null
360 359
      */
361
-    public BigDecimal getAvgVal() {
360
+    public String getAvgVal() {
362 361
         return avgVal;
363 362
     }
364 363
 
@@ -366,7 +365,7 @@ public class StorageWarterFixedPoint {
366 365
      * null
367 366
      * @param avgVal null
368 367
      */
369
-    public void setAvgVal(BigDecimal avgVal) {
368
+    public void setAvgVal(String avgVal) {
370 369
         this.avgVal = avgVal;
371 370
     }
372 371
 

+ 7 - 3
src/main/resources/bootstrap.yml

@@ -7,7 +7,7 @@ server:
7 7
 eureka:
8 8
   client:
9 9
     service-url:
10
-      defaultZone: http://localhost:9001/eureka/
10
+      defaultZone: http://tj_admin:Admin_1234@${eureka.instance.hostname}:9001/eureka/
11 11
   instance:
12 12
     hostname: 172.16.0.16
13 13
     prefer-ip-address: true
@@ -20,6 +20,10 @@ eureka:
20 20
 mybatis:
21 21
   config-location: classpath:mybatis/mybatis-config.xml
22 22
 
23
+management:
24
+  server:
25
+    port: -1
26
+
23 27
 spring:
24 28
   application:
25 29
     name: depot-qualitycheck
@@ -29,7 +33,7 @@ spring:
29 33
     url: jdbc:gbasedbt-sqli://101.36.160.140:19089/depot:INFORMIXSERVER=gbaseserver;NEWCODESET=GB18030,GB18030-2000,5488;DB_LOCALE=zh_cn.GB18030-2000;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;
30 34
     username: gbasedbt
31 35
     password: cDbK2S0go8
32
-    #url: jdbc:gbasedbt-sqli://111.164.113.172:666/depot:INFORMIXSERVER=gbaseserver;NEWCODESET=GBK,8859-1,819;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;
36
+    #url: jdbc:gbasedbt-sqli://10.223.3.63:9088/depot:INFORMIXSERVER=gbaseserver;NEWCODESET=GBK,8859-1,819;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;
33 37
     #username: gbasedbt
34 38
     #password: GBase123
35 39
     driver-class-name: com.gbasedbt.jdbc.IfxDriver
@@ -57,7 +61,7 @@ spring:
57 61
 #    time-zone: GMT+8
58 62
  
59 63
 web:
60
-  upload-path: /home/depot/depot-web/apache-tomcat-8.0.53/webapps/ROOT/WEB-INF/classes/static
64
+  upload-path: /home/depot/depot-web/depot-file
61 65
 cxf:
62 66
   path: /quality
63 67
 #出入库生成库存接口