浏览代码

2023年5月17日15:16:27 仓储分析合计重量双倍问题

纪新园 2 年之前
父节点
当前提交
8045428879
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. 19 0
      ruoyi-warehouse/src/main/resources/mapper/basicData/TWarehouseMapper.xml

+ 19 - 0
ruoyi-warehouse/src/main/resources/mapper/basicData/TWarehouseMapper.xml

@@ -744,6 +744,25 @@
         LEFT JOIN t_goods TG ON TG.f_id = TW.f_goodsid
         LEFT JOIN t_warehouse TWH ON TW.f_warehouseid = TWH.f_id
         LEFT JOIN t_corps TC ON TC.f_id = TW.f_corpid
+        LEFT JOIN (
+        SELECT DISTINCT
+        TWB.f_ifpledge,
+        TWB.f_mblno,
+        bi.f_business_type,
+        bi.f_marks,
+        bi.f_warehouse_information
+        FROM
+        t_warehousebills TWB
+        LEFT JOIN t_warehousebillsitems bi ON bi.f_pid = TWB.f_id
+        WHERE
+        TWB.del_flag = '0'
+        <if test="numbersList != null and numbersList != ''">
+            and TWB.f_mblno IN
+            <foreach item="number" collection="numbersList" open="(" separator="," close=")">
+                #{number}
+            </foreach>
+        </if>
+        ) TWBI ON TWBI.f_mblno = TW.f_mblno
         LEFT JOIN t_warehousebills TWB ON TWB.f_mblno = TW.f_mblno
         LEFT JOIN t_warehousebillsitems TWBI ON TWBI.f_pid = TWB.f_id
         <where>