north-glass-erp/src/main/resources/mapper/sd/OrderOtherMoneyMapper.xml
@@ -5,11 +5,23 @@ <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 sum(money) from order_other_money where order_id = #{orderId} </select>