From 4d3b41ad075bc3a242526e6c47a6406ee30ccb96 Mon Sep 17 00:00:00 2001 From: gaowdong Date: Fri, 16 May 2025 18:38:34 +0800 Subject: [PATCH] =?UTF-8?q?6009=20=E4=B8=AA=E4=BA=BA=E6=94=B6=E6=94=AF?= =?UTF-8?q?=E6=B1=87=E6=80=BB=E4=B8=8A=E6=9C=9F=E4=BD=99=E9=A2=9D=E4=BC=9A?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E8=B4=9F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/report/AccReportMapper.xml | 68 +++++++++++++++---- 1 file changed, 53 insertions(+), 15 deletions(-) diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/report/AccReportMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/report/AccReportMapper.xml index 520496e..f80d8e2 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/report/AccReportMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/report/AccReportMapper.xml @@ -69,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" at2.actual_amount end, 0)) as income, SUM(IFNULL(CASE - WHEN at2.trade_type in (30, 100, 110) then + WHEN at2.trade_type in (30, 100, 110, 120) then at2.actual_amount end, 0)) as outcome from @@ -128,21 +128,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" \ No newline at end of file