YL2767 4 dni temu
rodzic
commit
8d725c3ead

+ 4
- 4
src/main/java/com/th/demo/service/impl/ware/StoreServiceImpl.java Wyświetl plik

@@ -126,7 +126,7 @@ public class StoreServiceImpl implements StoreService {
126 126
         // 4: 出库已标记入仓
127 127
         if (outFlag.equals("0")){
128 128
             out_lag = "0";
129
-            localFlag="0";
129
+            localFlag="";
130 130
             outBound = "";
131 131
         }else if (outFlag.equals("1")){
132 132
             out_lag = "1";
@@ -138,7 +138,7 @@ public class StoreServiceImpl implements StoreService {
138 138
             outBound = "";
139 139
         }else if (outFlag.equals("3")){
140 140
             out_lag = "0";
141
-            localFlag="0";
141
+            localFlag="";
142 142
             outBound = "已入仓";
143 143
         }else if (outFlag.equals("4")){
144 144
             out_lag = "1";
@@ -489,7 +489,7 @@ public class StoreServiceImpl implements StoreService {
489 489
         // 4: 出库已标记入仓
490 490
         if (outFlag.equals("0")){
491 491
             out_lag = "0";
492
-            localFlag="0";
492
+            localFlag="";
493 493
             outBound = "";
494 494
         }else if (outFlag.equals("1")){
495 495
             out_lag = "1";
@@ -501,7 +501,7 @@ public class StoreServiceImpl implements StoreService {
501 501
             outBound = "";
502 502
         }else if (outFlag.equals("3")){
503 503
             out_lag = "0";
504
-            localFlag="0";
504
+            localFlag="";
505 505
             outBound = "已入仓";
506 506
         }else if (outFlag.equals("4")){
507 507
             out_lag = "1";

+ 6
- 6
src/main/resource/localhost/db.properties Wyświetl plik

@@ -1,13 +1,13 @@
1
-jdbc.driverClass=com.mysql.jdbc.Driver
2
-jdbc.jdbcUrl=jdbc:mysql://172.18.200.32:3306/ware_zg?characterEncoding=utf8
3
-jdbc.user=root
4
-jdbc.password=root
5
-
6 1
 #jdbc.driverClass=com.mysql.jdbc.Driver
7
-#jdbc.jdbcUrl=jdbc:mysql://localhost:3306/ware_zg?characterEncoding=utf8
2
+#jdbc.jdbcUrl=jdbc:mysql://172.18.200.32:3306/ware_zg?characterEncoding=utf8
8 3
 #jdbc.user=root
9 4
 #jdbc.password=root
10 5
 
6
+jdbc.driverClass=com.mysql.jdbc.Driver
7
+jdbc.jdbcUrl=jdbc:mysql://localhost:3306/ware_zg?characterEncoding=utf8
8
+jdbc.user=root
9
+jdbc.password=root
10
+
11 11
 #jdbc.driverClass=com.mysql.jdbc.Driver
12 12
 #jdbc.jdbcUrl=jdbc:mysql://60.205.9.174:3309/ware_zg?useUnicode=true&characterEncoding=utf8
13 13
 #jdbc.user=root

+ 2
- 2
src/main/resource/mapper/home/HomeMapper.xml Wyświetl plik

@@ -18,9 +18,9 @@
18 18
     </select>
19 19
 
20 20
     <select id="selectdrawLine2" resultMap="BaseResultMap" parameterType="java.lang.String" >
21
-        SELECT tmm.name AS value1,sum(tws.weight) as value2 FROM t_ware_store tws, t_maint_material tmm
21
+        SELECT tmm.code AS value1,sum(tws.weight) as value2 FROM t_ware_store tws, t_maint_material tmm
22 22
         where 1=1 AND tws.material_id = tmm.id
23
-          AND tws.cancel_flag ='0' and tws.out_flag ='0' and tws.lock_flag ='0' group by tmm.name order by value2 desc
23
+          AND tws.cancel_flag ='0' and tws.out_flag ='0' and tws.lock_flag ='0' group by tmm.code order by value2 desc
24 24
     </select>
25 25
 
26 26
     <select id="selectdrawLine3" resultMap="BaseResultMap" parameterType="java.lang.String" >

+ 7
- 2
src/main/resource/mapper/ware/StoreMapper.xml Wyświetl plik

@@ -525,7 +525,10 @@ update t_ware_store t set t.layer =   #{param7,jdbcType=INTEGER}
525 525
     and t.belong_id = #{param8,jdbcType=VARCHAR}
526 526
     and t.cancel_flag = '0'
527 527
     and t.out_flag = #{param18,jdbcType=VARCHAR}
528
-    and t.lock_flag = #{param19,jdbcType=VARCHAR}
528
+      <if test="param19 != null and param19 !=''">
529
+        and t.lock_flag = #{param19,jdbcType=VARCHAR}
530
+      </if>
531
+
529 532
       <if test="param20 != null and param20 !=''">
530 533
         and t.out_bound = #{param20,jdbcType=VARCHAR}
531 534
       </if>
@@ -583,7 +586,9 @@ update t_ware_store t set t.layer =   #{param7,jdbcType=INTEGER}
583 586
     and t.belong_id = #{param8,jdbcType=VARCHAR}
584 587
     and t.cancel_flag = '0'
585 588
     and t.out_flag = #{param18,jdbcType=VARCHAR}
586
-    and t.lock_flag = #{param19,jdbcType=VARCHAR}
589
+      <if test="param19 != null and param19 != ''">
590
+        and t.lock_flag = #{param19,jdbcType=VARCHAR}
591
+      </if>
587 592
     <if test="param20 != null and param20 !=''">
588 593
       and t.out_bound = #{param20,jdbcType=VARCHAR}
589 594
     </if>

Ładowanie…
Anuluj
Zapisz