YL2767 4 天前
父节点
当前提交
8d725c3ead

+ 4
- 4
src/main/java/com/th/demo/service/impl/ware/StoreServiceImpl.java 查看文件

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

+ 6
- 6
src/main/resource/localhost/db.properties 查看文件

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
 #jdbc.driverClass=com.mysql.jdbc.Driver
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
 #jdbc.user=root
3
 #jdbc.user=root
9
 #jdbc.password=root
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
 #jdbc.driverClass=com.mysql.jdbc.Driver
11
 #jdbc.driverClass=com.mysql.jdbc.Driver
12
 #jdbc.jdbcUrl=jdbc:mysql://60.205.9.174:3309/ware_zg?useUnicode=true&characterEncoding=utf8
12
 #jdbc.jdbcUrl=jdbc:mysql://60.205.9.174:3309/ware_zg?useUnicode=true&characterEncoding=utf8
13
 #jdbc.user=root
13
 #jdbc.user=root

+ 2
- 2
src/main/resource/mapper/home/HomeMapper.xml 查看文件

18
     </select>
18
     </select>
19
 
19
 
20
     <select id="selectdrawLine2" resultMap="BaseResultMap" parameterType="java.lang.String" >
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
         where 1=1 AND tws.material_id = tmm.id
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
     </select>
24
     </select>
25
 
25
 
26
     <select id="selectdrawLine3" resultMap="BaseResultMap" parameterType="java.lang.String" >
26
     <select id="selectdrawLine3" resultMap="BaseResultMap" parameterType="java.lang.String" >

+ 7
- 2
src/main/resource/mapper/ware/StoreMapper.xml 查看文件

525
     and t.belong_id = #{param8,jdbcType=VARCHAR}
525
     and t.belong_id = #{param8,jdbcType=VARCHAR}
526
     and t.cancel_flag = '0'
526
     and t.cancel_flag = '0'
527
     and t.out_flag = #{param18,jdbcType=VARCHAR}
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
       <if test="param20 != null and param20 !=''">
532
       <if test="param20 != null and param20 !=''">
530
         and t.out_bound = #{param20,jdbcType=VARCHAR}
533
         and t.out_bound = #{param20,jdbcType=VARCHAR}
531
       </if>
534
       </if>
583
     and t.belong_id = #{param8,jdbcType=VARCHAR}
586
     and t.belong_id = #{param8,jdbcType=VARCHAR}
584
     and t.cancel_flag = '0'
587
     and t.cancel_flag = '0'
585
     and t.out_flag = #{param18,jdbcType=VARCHAR}
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
     <if test="param20 != null and param20 !=''">
592
     <if test="param20 != null and param20 !=''">
588
       and t.out_bound = #{param20,jdbcType=VARCHAR}
593
       and t.out_bound = #{param20,jdbcType=VARCHAR}
589
     </if>
594
     </if>

正在加载...
取消
保存