From ab335a89280e8bc22068c8dc42787959dfbfb466 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期四, 29 八月 2024 15:30:03 +0800
Subject: [PATCH] 新增物料出库打印

---
 north-glass-erp/src/main/resources/mapper/sd/DeliveryDetailMapper.xml |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/sd/DeliveryDetailMapper.xml b/north-glass-erp/src/main/resources/mapper/sd/DeliveryDetailMapper.xml
index b165403..4c28901 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/DeliveryDetailMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/DeliveryDetailMapper.xml
@@ -1006,13 +1006,9 @@
     <select id="getSelectOrderPrinting"  >
         select od.order_id,od.product_id,p.remarks as product_name,sum(od.compute_gross_area) as area,sum(od.gross_amount) as gross_amount ,sum(od.quantity) as quantity from
          order_detail od left join product p on od.product_id=p.id
-
-        <where>
-            <if test="orderDetail.orderId != null and orderDetail.orderId != ''">
-                and od.order_id like concat('%',#{orderDetail.orderId},'%')
-            </if>
-        </where>
-        group by od.product_name,od.product_id
+        where od.order_id = #{orderId}
+        and od.product_id = #{productId}
+        group by od.product_name,od.product_id ;
     </select>
 
     <select id="getSelectDeliveryDetailPrinting" >
@@ -1047,7 +1043,7 @@
     </select>
 
     <select id="getSelectOrderotherMoney" >
-        select bom.alias,oom.price,#{value}*od.quantity as count,oom.price*#{value}*od.quantity as monery
+        select bom.alias,ifnull(oom.price,0) as price,#{value}*od.quantity as count,ifnull(oom.price,0)*#{value}*od.quantity as monery
                  from order_detail od
                  left join order_other_money oom on oom.order_id=od.order_id  and oom.column=#{key}
                  left join basic_other_money bom on bom.`column`=oom.`column`

--
Gitblit v1.8.0