zx 2 年之前
父节点
当前提交
babc9a99b6
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/main/resources/com/steerinfo/dil/mapper/AmsSaleOrderMapper.xml

+ 2 - 0
src/main/resources/com/steerinfo/dil/mapper/AmsSaleOrderMapper.xml

@@ -2297,6 +2297,7 @@
     left join OMSTRUCK_ORDER_MATERIAL o_o_material
     on o_order.order_id=o_o_material.ORDER_ID
     where t_w_result.RESULT_NET_WEIGHT is null and o_order.order_status in (2,4,5)
+    AND o_order.ORDER_TYPE=2
     GROUP BY
     a_s_o_Material.SALE_ORDER_ID
     ) sumWeight2
@@ -2311,6 +2312,7 @@
     left join Tmstruck_Weight_Result t_w_result
     on t_t_result.result_total_id=t_w_result.result_total_id
     where o_order.order_status in (2,4,5)
+    AND o_order.ORDER_TYPE=2
     GROUP BY
     a_s_o_Material.SALE_ORDER_ID