From 6dd90a95c5dff764f7ea6e8f61a36fc0e3bf6aa3 Mon Sep 17 00:00:00 2001 From: wuzeyu <1223318623@qq.com> Date: 星期一, 16 十二月 2024 17:20:10 +0800 Subject: [PATCH] 优化接口 获得一个取水口接口 优化传参方式、增加片区名称和地址两个字段 --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeRefundMapper.xml | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeRefundMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeRefundMapper.xml index 5fc7a50..e928160 100644 --- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeRefundMapper.xml +++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeRefundMapper.xml @@ -229,4 +229,18 @@ </if> </trim> </select> + + <!--鑾峰彇鎸囧畾鏃ユ湡寰俊閫�娆撅紙鍙绠楀凡閫�鐨勶級鎬婚锛岃储鍔″璐﹀鏍搁〉浣跨敤--> + <select id="getRefundSum" resultType="java.lang.Double"> + SELECT + SUM(refund_amount) AS tradeAmount + FROM se_refund + <where> + AND refund_status = 2 + <if test = "tradeDate != null and tradeDate !=''"> + AND Date(audit_time) = #{tradeDate} + </if> + </where> + GROUP BY Date(audit_time) + </select> </mapper> \ No newline at end of file -- Gitblit v1.8.0