From dd0cf10ca30f2a7a365ca27a2cda2d83c1b4af9a Mon Sep 17 00:00:00 2001 From: aike <17730485278@139.com> Date: Thu, 12 Mar 2026 17:02:10 +0800 Subject: [PATCH] =?UTF-8?q?demand:=20=20=20=20=20tms-=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E8=B4=A6=E5=8D=95=E7=AE=A1=E7=90=86-=E8=B6=85=E6=9C=9F?= =?UTF-8?q?=E5=9B=9E=E6=AC=BE=E9=A2=84=E8=AD=A6-=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E8=B6=85=E6=9C=9F=E6=9C=AA=E6=94=B6=E9=87=91=E9=A2=9D=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E5=B0=8F=E4=BA=8E0=20=20tms-=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1-=E5=AE=9A=E6=97=B6=E6=89=AB=E6=8F=8F?= =?UTF-8?q?=E6=9C=AA=E6=94=B6=E6=AC=BE=E8=B4=A6=E5=8D=95=E5=B9=B6=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E5=AF=B9=E5=BA=94=E8=B4=A3=E4=BB=BB=E4=BA=BA=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E8=AE=BE=E7=BD=AE=E8=B6=85=E6=9C=9F=E6=9C=AA=E6=94=B6?= =?UTF-8?q?=E9=87=91=E9=A2=9D=E4=B8=8D=E8=83=BD=E5=B0=8F=E4=BA=8E0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/EmisSettleBillMapper.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml b/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml index abd20d6a6..3f198f3a5 100644 --- a/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml @@ -590,7 +590,13 @@ ifnull(tbc.recdPayMoney,0) as recdPayMoney, (tba.recPayMoney-ifnull(tbc.recdPayMoney,0)-ifnull(tbd.expiredRecdPayMoney,0)-tba.totalSatisfyMoney-tba.totalAllowanceMoney-tba.totalDeductionMoney-tba.totalOtherMoney ) as noRecdPayMoney, ifnull(tbd.expiredRecdPayMoney,0) as expiredRecdPayMoney, - ( ifnull(tbe.expiredNoRecdPayMoney,0) - tba.totalSatisfyMoney-tba.totalAllowanceMoney-tba.totalDeductionMoney-tba.totalOtherMoney ) as expiredNoRecdPayMoney + ( + case + when ( ifnull(tbe.expiredNoRecdPayMoney,0) - tba.totalSatisfyMoney-tba.totalAllowanceMoney-tba.totalDeductionMoney-tba.totalOtherMoney ) 0 + then 0 + else ( ifnull(tbe.expiredNoRecdPayMoney,0) - tba.totalSatisfyMoney-tba.totalAllowanceMoney-tba.totalDeductionMoney-tba.totalOtherMoney ) + end + ) as expiredNoRecdPayMoney from ( select salesmen,bill_month as billMonth, ROUND(sum(rec_money),2) as recPayMoney,