From cb25d666f408cbbf25e4722fcb14d7c3720087c3 Mon Sep 17 00:00:00 2001 From: linfso Date: Fri, 27 Dec 2024 11:29:01 +0800 Subject: [PATCH] md --- .../src/main/resources/mapper/EmisSettleBillMapper.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml b/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml index acc4ac83a..d48e0043c 100644 --- a/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml @@ -262,8 +262,11 @@ where 1=1 - and tba.totalNoRecdPayMoney = ]]> 0 - and ( expiredNoRecdPayMoney = ]]> 0 or noRecdPayMoney = ]]> 0 ) + and tba.totalNoRecdPayMoney ]] 0 + and ( + ifnull( tbe.expiredNoRecdPayMoney, 0 ) ]] 0 + or (tba.recPayMoney - ifnull( tbc.recdPayMoney, 0 )) ]] 0 + )