From 7e243d1b887bbc82d2d4c8075bf4c4a549e79f68 Mon Sep 17 00:00:00 2001 From: wuzeyu <1223318623@qq.com> Date: 星期六, 19 十月 2024 11:58:42 +0800 Subject: [PATCH] 实现接口 获取指定时间内农户充值、消费、余额合计 --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeGeneralMapper.xml | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeGeneralMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeGeneralMapper.xml index 8fbf4cd..9499940 100644 --- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeGeneralMapper.xml +++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeGeneralMapper.xml @@ -250,7 +250,7 @@ <!--鑾峰彇鎸囧畾鏃ユ湡銆佹寚瀹氭敹閾跺憳銆佹寚瀹氭敮浠樻柟寮忓疄鏀堕噾棰濆悎璁�--> <select id="getPaymentSums" resultType="java.lang.Float"> SELECT - SUM(ope.trade_amount) AS tradeAmount + (SUM(ope.trade_amount) + SUM(ope.card_cost)) AS tradeAmount FROM se_card_operate ope <where> AND ope.operate_valid = 2 @@ -305,6 +305,7 @@ INNER JOIN ba_user us ON us.id = ope.operator <where> AND ope.operate_type IN(1,2,3,4,5) + AND ope.operate_valid = 2 <if test = "cashierId != null and cashierId > 0"> AND us.id = #{cashierId} </if> -- Gitblit v1.8.0