Przeglądaj źródła

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

fanxw 1 rok temu
rodzic
commit
5c1e4202ce

+ 4 - 0
pom.xml

@@ -58,6 +58,10 @@
58
 			<artifactId>commons-lang3</artifactId>
58
 			<artifactId>commons-lang3</artifactId>
59
 			<version>3.7</version>
59
 			<version>3.7</version>
60
 		</dependency>
60
 		</dependency>
61
+		<dependency>  
62
+		    <groupId>org.springframework.boot</groupId>  
63
+		    <artifactId>spring-boot-starter-security</artifactId>  
64
+		</dependency>
61
 
65
 
62
 		<!-- gbase依赖包 -->
66
 		<!-- gbase依赖包 -->
63
 		<dependency>
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
     <result column="z_id" property="zId" jdbcType="VARCHAR" />
6
     <result column="z_id" property="zId" jdbcType="VARCHAR" />
7
     <result column="org_id" property="orgId" jdbcType="INTEGER" />
7
     <result column="org_id" property="orgId" jdbcType="INTEGER" />
8
     <result column="qy" property="qy" jdbcType="INTEGER" />
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
     <result column="safe" property="safe" jdbcType="INTEGER" />
25
     <result column="safe" property="safe" jdbcType="INTEGER" />
26
     <result column="input_time" property="inputTime" jdbcType="TIMESTAMP" />
26
     <result column="input_time" property="inputTime" jdbcType="TIMESTAMP" />
27
     <result column="edit_time" property="editTime" jdbcType="TIMESTAMP" />
27
     <result column="edit_time" property="editTime" jdbcType="TIMESTAMP" />
@@ -127,11 +127,11 @@
127
       avg_val, safe, input_time, 
127
       avg_val, safe, input_time, 
128
       edit_time)
128
       edit_time)
129
     values (#{id,jdbcType=VARCHAR}, #{zId,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER}, 
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
       #{editTime,jdbcType=TIMESTAMP})
135
       #{editTime,jdbcType=TIMESTAMP})
136
   </insert>
136
   </insert>
137
   <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageWarterFixedPoint" >
137
   <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageWarterFixedPoint" >
@@ -221,52 +221,52 @@
221
         #{qy,jdbcType=INTEGER},
221
         #{qy,jdbcType=INTEGER},
222
       </if>
222
       </if>
223
       <if test="zyS != null" >
223
       <if test="zyS != null" >
224
-        #{zyS,jdbcType=DECIMAL},
224
+        #{zyS,jdbcType=VARCHAR},
225
       </if>
225
       </if>
226
       <if test="zyZ != null" >
226
       <if test="zyZ != null" >
227
-        #{zyZ,jdbcType=DECIMAL},
227
+        #{zyZ,jdbcType=VARCHAR},
228
       </if>
228
       </if>
229
       <if test="zyX != null" >
229
       <if test="zyX != null" >
230
-        #{zyX,jdbcType=DECIMAL},
230
+        #{zyX,jdbcType=VARCHAR},
231
       </if>
231
       </if>
232
       <if test="dnS != null" >
232
       <if test="dnS != null" >
233
-        #{dnS,jdbcType=DECIMAL},
233
+        #{dnS,jdbcType=VARCHAR},
234
       </if>
234
       </if>
235
       <if test="dnZ != null" >
235
       <if test="dnZ != null" >
236
-        #{dnZ,jdbcType=DECIMAL},
236
+        #{dnZ,jdbcType=VARCHAR},
237
       </if>
237
       </if>
238
       <if test="dnX != null" >
238
       <if test="dnX != null" >
239
-        #{dnX,jdbcType=DECIMAL},
239
+        #{dnX,jdbcType=VARCHAR},
240
       </if>
240
       </if>
241
       <if test="dbS != null" >
241
       <if test="dbS != null" >
242
-        #{dbS,jdbcType=DECIMAL},
242
+        #{dbS,jdbcType=VARCHAR},
243
       </if>
243
       </if>
244
       <if test="dbZ != null" >
244
       <if test="dbZ != null" >
245
-        #{dbZ,jdbcType=DECIMAL},
245
+        #{dbZ,jdbcType=VARCHAR},
246
       </if>
246
       </if>
247
       <if test="dbX != null" >
247
       <if test="dbX != null" >
248
-        #{dbX,jdbcType=DECIMAL},
248
+        #{dbX,jdbcType=VARCHAR},
249
       </if>
249
       </if>
250
       <if test="xnS != null" >
250
       <if test="xnS != null" >
251
-        #{xnS,jdbcType=DECIMAL},
251
+        #{xnS,jdbcType=VARCHAR},
252
       </if>
252
       </if>
253
       <if test="xnZ != null" >
253
       <if test="xnZ != null" >
254
-        #{xnZ,jdbcType=DECIMAL},
254
+        #{xnZ,jdbcType=VARCHAR},
255
       </if>
255
       </if>
256
       <if test="xnX != null" >
256
       <if test="xnX != null" >
257
-        #{xnX,jdbcType=DECIMAL},
257
+        #{xnX,jdbcType=VARCHAR},
258
       </if>
258
       </if>
259
       <if test="xbS != null" >
259
       <if test="xbS != null" >
260
-        #{xbS,jdbcType=DECIMAL},
260
+        #{xbS,jdbcType=VARCHAR},
261
       </if>
261
       </if>
262
       <if test="xbZ != null" >
262
       <if test="xbZ != null" >
263
-        #{xbZ,jdbcType=DECIMAL},
263
+        #{xbZ,jdbcType=VARCHAR},
264
       </if>
264
       </if>
265
       <if test="xbX != null" >
265
       <if test="xbX != null" >
266
-        #{xbX,jdbcType=DECIMAL},
266
+        #{xbX,jdbcType=VARCHAR},
267
       </if>
267
       </if>
268
       <if test="avgVal != null" >
268
       <if test="avgVal != null" >
269
-        #{avgVal,jdbcType=DECIMAL},
269
+        #{avgVal,jdbcType=VARCHAR},
270
       </if>
270
       </if>
271
       <if test="safe != null" >
271
       <if test="safe != null" >
272
         #{safe,jdbcType=INTEGER},
272
         #{safe,jdbcType=INTEGER},
@@ -301,52 +301,52 @@
301
         qy = #{record.qy,jdbcType=INTEGER},
301
         qy = #{record.qy,jdbcType=INTEGER},
302
       </if>
302
       </if>
303
       <if test="record.zyS != null" >
303
       <if test="record.zyS != null" >
304
-        zy_s = #{record.zyS,jdbcType=DECIMAL},
304
+        zy_s = #{record.zyS,jdbcType=VARCHAR},
305
       </if>
305
       </if>
306
       <if test="record.zyZ != null" >
306
       <if test="record.zyZ != null" >
307
-        zy_z = #{record.zyZ,jdbcType=DECIMAL},
307
+        zy_z = #{record.zyZ,jdbcType=VARCHAR},
308
       </if>
308
       </if>
309
       <if test="record.zyX != null" >
309
       <if test="record.zyX != null" >
310
-        zy_x = #{record.zyX,jdbcType=DECIMAL},
310
+        zy_x = #{record.zyX,jdbcType=VARCHAR},
311
       </if>
311
       </if>
312
       <if test="record.dnS != null" >
312
       <if test="record.dnS != null" >
313
-        dn_s = #{record.dnS,jdbcType=DECIMAL},
313
+        dn_s = #{record.dnS,jdbcType=VARCHAR},
314
       </if>
314
       </if>
315
       <if test="record.dnZ != null" >
315
       <if test="record.dnZ != null" >
316
-        dn_z = #{record.dnZ,jdbcType=DECIMAL},
316
+        dn_z = #{record.dnZ,jdbcType=VARCHAR},
317
       </if>
317
       </if>
318
       <if test="record.dnX != null" >
318
       <if test="record.dnX != null" >
319
-        dn_x = #{record.dnX,jdbcType=DECIMAL},
319
+        dn_x = #{record.dnX,jdbcType=VARCHAR},
320
       </if>
320
       </if>
321
       <if test="record.dbS != null" >
321
       <if test="record.dbS != null" >
322
-        db_s = #{record.dbS,jdbcType=DECIMAL},
322
+        db_s = #{record.dbS,jdbcType=VARCHAR},
323
       </if>
323
       </if>
324
       <if test="record.dbZ != null" >
324
       <if test="record.dbZ != null" >
325
-        db_z = #{record.dbZ,jdbcType=DECIMAL},
325
+        db_z = #{record.dbZ,jdbcType=VARCHAR},
326
       </if>
326
       </if>
327
       <if test="record.dbX != null" >
327
       <if test="record.dbX != null" >
328
-        db_x = #{record.dbX,jdbcType=DECIMAL},
328
+        db_x = #{record.dbX,jdbcType=VARCHAR},
329
       </if>
329
       </if>
330
       <if test="record.xnS != null" >
330
       <if test="record.xnS != null" >
331
-        xn_s = #{record.xnS,jdbcType=DECIMAL},
331
+        xn_s = #{record.xnS,jdbcType=VARCHAR},
332
       </if>
332
       </if>
333
       <if test="record.xnZ != null" >
333
       <if test="record.xnZ != null" >
334
-        xn_z = #{record.xnZ,jdbcType=DECIMAL},
334
+        xn_z = #{record.xnZ,jdbcType=VARCHAR},
335
       </if>
335
       </if>
336
       <if test="record.xnX != null" >
336
       <if test="record.xnX != null" >
337
-        xn_x = #{record.xnX,jdbcType=DECIMAL},
337
+        xn_x = #{record.xnX,jdbcType=VARCHAR},
338
       </if>
338
       </if>
339
       <if test="record.xbS != null" >
339
       <if test="record.xbS != null" >
340
-        xb_s = #{record.xbS,jdbcType=DECIMAL},
340
+        xb_s = #{record.xbS,jdbcType=VARCHAR},
341
       </if>
341
       </if>
342
       <if test="record.xbZ != null" >
342
       <if test="record.xbZ != null" >
343
-        xb_z = #{record.xbZ,jdbcType=DECIMAL},
343
+        xb_z = #{record.xbZ,jdbcType=VARCHAR},
344
       </if>
344
       </if>
345
       <if test="record.xbX != null" >
345
       <if test="record.xbX != null" >
346
-        xb_x = #{record.xbX,jdbcType=DECIMAL},
346
+        xb_x = #{record.xbX,jdbcType=VARCHAR},
347
       </if>
347
       </if>
348
       <if test="record.avgVal != null" >
348
       <if test="record.avgVal != null" >
349
-        avg_val = #{record.avgVal,jdbcType=DECIMAL},
349
+        avg_val = #{record.avgVal,jdbcType=VARCHAR},
350
       </if>
350
       </if>
351
       <if test="record.safe != null" >
351
       <if test="record.safe != null" >
352
         safe = #{record.safe,jdbcType=INTEGER},
352
         safe = #{record.safe,jdbcType=INTEGER},
@@ -368,22 +368,22 @@
368
       z_id = #{record.zId,jdbcType=VARCHAR},
368
       z_id = #{record.zId,jdbcType=VARCHAR},
369
       org_id = #{record.orgId,jdbcType=INTEGER},
369
       org_id = #{record.orgId,jdbcType=INTEGER},
370
       qy = #{record.qy,jdbcType=INTEGER},
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
       safe = #{record.safe,jdbcType=INTEGER},
387
       safe = #{record.safe,jdbcType=INTEGER},
388
       input_time = #{record.inputTime,jdbcType=TIMESTAMP},
388
       input_time = #{record.inputTime,jdbcType=TIMESTAMP},
389
       edit_time = #{record.editTime,jdbcType=TIMESTAMP}
389
       edit_time = #{record.editTime,jdbcType=TIMESTAMP}
@@ -404,52 +404,52 @@
404
         qy = #{qy,jdbcType=INTEGER},
404
         qy = #{qy,jdbcType=INTEGER},
405
       </if>
405
       </if>
406
       <if test="zyS != null" >
406
       <if test="zyS != null" >
407
-        zy_s = #{zyS,jdbcType=DECIMAL},
407
+        zy_s = #{zyS,jdbcType=VARCHAR},
408
       </if>
408
       </if>
409
       <if test="zyZ != null" >
409
       <if test="zyZ != null" >
410
-        zy_z = #{zyZ,jdbcType=DECIMAL},
410
+        zy_z = #{zyZ,jdbcType=VARCHAR},
411
       </if>
411
       </if>
412
       <if test="zyX != null" >
412
       <if test="zyX != null" >
413
-        zy_x = #{zyX,jdbcType=DECIMAL},
413
+        zy_x = #{zyX,jdbcType=VARCHAR},
414
       </if>
414
       </if>
415
       <if test="dnS != null" >
415
       <if test="dnS != null" >
416
-        dn_s = #{dnS,jdbcType=DECIMAL},
416
+        dn_s = #{dnS,jdbcType=VARCHAR},
417
       </if>
417
       </if>
418
       <if test="dnZ != null" >
418
       <if test="dnZ != null" >
419
-        dn_z = #{dnZ,jdbcType=DECIMAL},
419
+        dn_z = #{dnZ,jdbcType=VARCHAR},
420
       </if>
420
       </if>
421
       <if test="dnX != null" >
421
       <if test="dnX != null" >
422
-        dn_x = #{dnX,jdbcType=DECIMAL},
422
+        dn_x = #{dnX,jdbcType=VARCHAR},
423
       </if>
423
       </if>
424
       <if test="dbS != null" >
424
       <if test="dbS != null" >
425
-        db_s = #{dbS,jdbcType=DECIMAL},
425
+        db_s = #{dbS,jdbcType=VARCHAR},
426
       </if>
426
       </if>
427
       <if test="dbZ != null" >
427
       <if test="dbZ != null" >
428
-        db_z = #{dbZ,jdbcType=DECIMAL},
428
+        db_z = #{dbZ,jdbcType=VARCHAR},
429
       </if>
429
       </if>
430
       <if test="dbX != null" >
430
       <if test="dbX != null" >
431
-        db_x = #{dbX,jdbcType=DECIMAL},
431
+        db_x = #{dbX,jdbcType=VARCHAR},
432
       </if>
432
       </if>
433
       <if test="xnS != null" >
433
       <if test="xnS != null" >
434
-        xn_s = #{xnS,jdbcType=DECIMAL},
434
+        xn_s = #{xnS,jdbcType=VARCHAR},
435
       </if>
435
       </if>
436
       <if test="xnZ != null" >
436
       <if test="xnZ != null" >
437
-        xn_z = #{xnZ,jdbcType=DECIMAL},
437
+        xn_z = #{xnZ,jdbcType=VARCHAR},
438
       </if>
438
       </if>
439
       <if test="xnX != null" >
439
       <if test="xnX != null" >
440
-        xn_x = #{xnX,jdbcType=DECIMAL},
440
+        xn_x = #{xnX,jdbcType=VARCHAR},
441
       </if>
441
       </if>
442
       <if test="xbS != null" >
442
       <if test="xbS != null" >
443
-        xb_s = #{xbS,jdbcType=DECIMAL},
443
+        xb_s = #{xbS,jdbcType=VARCHAR},
444
       </if>
444
       </if>
445
       <if test="xbZ != null" >
445
       <if test="xbZ != null" >
446
-        xb_z = #{xbZ,jdbcType=DECIMAL},
446
+        xb_z = #{xbZ,jdbcType=VARCHAR},
447
       </if>
447
       </if>
448
       <if test="xbX != null" >
448
       <if test="xbX != null" >
449
-        xb_x = #{xbX,jdbcType=DECIMAL},
449
+        xb_x = #{xbX,jdbcType=VARCHAR},
450
       </if>
450
       </if>
451
       <if test="avgVal != null" >
451
       <if test="avgVal != null" >
452
-        avg_val = #{avgVal,jdbcType=DECIMAL},
452
+        avg_val = #{avgVal,jdbcType=VARCHAR},
453
       </if>
453
       </if>
454
       <if test="safe != null" >
454
       <if test="safe != null" >
455
         safe = #{safe,jdbcType=INTEGER},
455
         safe = #{safe,jdbcType=INTEGER},
@@ -468,22 +468,22 @@
468
     set z_id = #{zId,jdbcType=VARCHAR},
468
     set z_id = #{zId,jdbcType=VARCHAR},
469
       org_id = #{orgId,jdbcType=INTEGER},
469
       org_id = #{orgId,jdbcType=INTEGER},
470
       qy = #{qy,jdbcType=INTEGER},
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
       safe = #{safe,jdbcType=INTEGER},
487
       safe = #{safe,jdbcType=INTEGER},
488
       input_time = #{inputTime,jdbcType=TIMESTAMP},
488
       input_time = #{inputTime,jdbcType=TIMESTAMP},
489
       edit_time = #{editTime,jdbcType=TIMESTAMP}
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
     private Integer warehouseId;
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
     private Integer subType;//粮食品种在字典表的id
62
     private Integer subType;//粮食品种在字典表的id
63
 
63
 
@@ -75,10 +75,18 @@ public class StorageQualitycheck {
75
     @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
75
     @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
76
     private Date zhycsj;
76
     private Date zhycsj;
77
 
77
 
78
+    /**
79
+     * 质量检查类型:0:初检或自检 1:验收 2:春秋普查 3:出库检验 4:日常检验(春秋普查) 5:第三方检查,6:入仓初检(入库检验)
80
+     * @return
81
+     */
78
     public String getTypeUpdate() {
82
     public String getTypeUpdate() {
79
         return typeUpdate;
83
         return typeUpdate;
80
     }
84
     }
81
 
85
 
86
+    /**
87
+     * 质量检查类型:0:初检或自检 1:验收 2:春秋普查 3:出库检验 4:日常检验(春秋普查) 5:第三方检查,6:入仓初检(入库检验)
88
+     * @param typeUpdate
89
+     */
82
     public void setTypeUpdate(String typeUpdate) {
90
     public void setTypeUpdate(String typeUpdate) {
83
         this.typeUpdate = typeUpdate;
91
         this.typeUpdate = typeUpdate;
84
     }
92
     }

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

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

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

@@ -7,7 +7,7 @@ server:
7
 eureka:
7
 eureka:
8
   client:
8
   client:
9
     service-url:
9
     service-url:
10
-      defaultZone: http://localhost:9001/eureka/
10
+      defaultZone: http://tj_admin:Admin_1234@${eureka.instance.hostname}:9001/eureka/
11
   instance:
11
   instance:
12
     hostname: 172.16.0.16
12
     hostname: 172.16.0.16
13
     prefer-ip-address: true
13
     prefer-ip-address: true
@@ -20,6 +20,10 @@ eureka:
20
 mybatis:
20
 mybatis:
21
   config-location: classpath:mybatis/mybatis-config.xml
21
   config-location: classpath:mybatis/mybatis-config.xml
22
 
22
 
23
+management:
24
+  server:
25
+    port: -1
26
+
23
 spring:
27
 spring:
24
   application:
28
   application:
25
     name: depot-qualitycheck
29
     name: depot-qualitycheck
@@ -29,7 +33,7 @@ spring:
29
     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;
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
     username: gbasedbt
34
     username: gbasedbt
31
     password: cDbK2S0go8
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
     #username: gbasedbt
37
     #username: gbasedbt
34
     #password: GBase123
38
     #password: GBase123
35
     driver-class-name: com.gbasedbt.jdbc.IfxDriver
39
     driver-class-name: com.gbasedbt.jdbc.IfxDriver
@@ -57,7 +61,7 @@ spring:
57
 #    time-zone: GMT+8
61
 #    time-zone: GMT+8
58
  
62
  
59
 web:
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
 cxf:
65
 cxf:
62
   path: /quality
66
   path: /quality
63
 #出入库生成库存接口
67
 #出入库生成库存接口