From b74d3f3e8cfece410031916d18b9ebccb0aba731 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期三, 03 七月 2024 13:04:25 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override
---
north-glass-erp/src/main/resources/mapper/sd/OrderOtherMoneyMapper.xml | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 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 fbe2e09..f0e9d8f 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/OrderOtherMoneyMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/OrderOtherMoneyMapper.xml
@@ -5,13 +5,24 @@
<mapper namespace="com.example.erp.mapper.sd.OrderOtherMoneyMapper">
<select id="findById">
select
- a.*,
- b.alias
+ a.order_id,
+ a.`column`,
+ a.quantity,
+ a.price,
+ a.money,
+ 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}
</select>
+ <select id="selectGrossAmount">
+ select ifnull(sum(money),0) from order_other_money where order_id = #{orderId}
+
+ </select>
+
</mapper>
\ No newline at end of file
--
Gitblit v1.8.0