From 4098ea2b95d6da283ac62f2ebb30ce37fe0d6d3f Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期五, 05 七月 2024 10:12:31 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override

---
 north-glass-erp/src/main/resources/mapper/sd/OrderOtherMoneyMapper.xml |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/sd/OrderOtherMoneyMapper.xml b/north-glass-erp/src/main/resources/mapper/sd/OrderOtherMoneyMapper.xml
index 3941714..de97670 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/OrderOtherMoneyMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/OrderOtherMoneyMapper.xml
@@ -13,14 +13,14 @@
             a.create_time,
             b.alias,
             b.id
-        from order_other_money as a
-        left join  basic_other_money as b
-        on a.`column` = b.`column`
-        where a.order_id = #{orderId}
+        from basic_other_money as b
+        left join  order_other_money as a
+        on a.`column` = b.`column` and a.order_id = #{orderId}
+        where b.`column` like 'M%' and b.state=1
     </select>
 
     <select id="selectGrossAmount">
-        select sum(money) from order_other_money where order_id = #{orderId}
+        select ifnull(sum(money),0) from order_other_money where order_id = #{orderId}
 
     </select>
 

--
Gitblit v1.8.0