From 95586fe08fb02b6c58a5c11f0bb28601230b936b Mon Sep 17 00:00:00 2001 From: zhubaomin <zhubaomin> Date: 星期四, 22 八月 2024 16:54:58 +0800 Subject: [PATCH] 2024-08-22 朱宝民 优化代码-漏损记录查询 --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeClientCardMapper.xml | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeClientCardMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeClientCardMapper.xml index 04879a7..1bdeb43 100644 --- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeClientCardMapper.xml +++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeClientCardMapper.xml @@ -589,4 +589,12 @@ ORDER BY card.id </select> + <!--褰撳墠浣欓鎬婚噺锛堢墿鐞嗗崱锛�--> + <select id="getTotalMoneyIcCards" resultType="java.lang.Double"> + SELECT + IFNULL(SUM(money),0) AS totalMoney + FROM + `se_client_card` + WHERE state = 1 + </select> </mapper> \ No newline at end of file -- Gitblit v1.8.0