Browse Source

问题修改

zhs 2 years ago
parent
commit
4e5e5bdc4e

+ 1 - 0
src/main/java/com/tld/service/impl/WarehousingServiceImpl.java

@@ -135,6 +135,7 @@ public class WarehousingServiceImpl implements WarehousingService {
     public Map<String, Object> addWarehousingVirtual(WarehousingVirtual warehousingVirtual) {
         Map<String, Object> map = new HashMap<>();
         try {
+
             warehousingMapper.addWarehousingVirtual(warehousingVirtual);
             map.put("msg", "200");
         } catch (Exception e) {

+ 4 - 3
src/main/resources/mapper/AskGoodsMapper.xml

@@ -80,15 +80,16 @@
                e.CODE               AS materialCode,
                b.ask_goods_code,
                b.company_number,
+               b.sqrq,
                c.name,
                c.code,
                c.id                 AS departmentId,
                a.production_code,
                a.wbs
         FROM tld_ask_goods a
-                 JOIN tld_ask_goods_f b ON a.ask_goods_id = b.ask_goods_id
-                 LEFT JOIN tld_department c ON b.department = c.code
-                 JOIN tld_material e ON a.material_id = e.tld_id
+        JOIN tld_ask_goods_f b ON a.ask_goods_id = b.ask_goods_id
+        LEFT JOIN tld_department c ON b.department = c.code
+        JOIN tld_material e ON a.material_id = e.tld_id
         WHERE (a.num + 0) <![CDATA[>]]> (
             IFNULL(a.out_num, 0) + 0)
           and e.part_type != '半成品' and e.part_type != '产成品'

+ 1 - 0
src/main/resources/mapper/InviteMapper.xml

@@ -67,6 +67,7 @@
             e.CODE AS materialCode,
             b.ask_goods_code,
             b.company_number,
+            b.sqrq,
             c.name ,
             c.code,
             c.id AS departmentId,

+ 2 - 2
src/main/resources/mapper/WarehousingMapper.xml

@@ -374,7 +374,7 @@
         (select count(*)
         from tld_inventory a
         join tld_storage_location b on a.storage_location_code = b.storage_location_code
-        where a.supplier_id = #{suppId} and a.serial = #{unique} and a.wllb_code = #{wllbCode} and a.produc_batch =
+        where a.supplier_id = #{suppId} and a.serial = #{unique} and a.wllb_code = #{wllbCode} and a.produc_date =
         #{producDate}
         <if test="warehouseWhere != null and warehouseWhere != ''">
             and b.warehouse_where = #{warehouseWhere}
@@ -953,7 +953,7 @@
                 where attribute = #{attribute}
                   and serial = #{serial}
                   and wllb_code = #{materialCode}
-                  and produc_batch = #{producBatch}) as inventoryCount,
+                  and produc_date = #{producBatch}) as inventoryCount,
                (select count(*)
                 from tld_warehousing_virtual
                 where attribute = #{attribute}