From 7f1a00b9845c65e825c3e025ae7439daa430619a Mon Sep 17 00:00:00 2001 From: winter <664946893@qq.com> Date: Sat, 30 Nov 2024 17:03:36 +0800 Subject: [PATCH] fix --- mallinkService/src/main/resources/mapper/WxAllBillMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mallinkService/src/main/resources/mapper/WxAllBillMapper.xml b/mallinkService/src/main/resources/mapper/WxAllBillMapper.xml index 736e98a8a..d8ec0dcf5 100644 --- a/mallinkService/src/main/resources/mapper/WxAllBillMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxAllBillMapper.xml @@ -121,7 +121,7 @@ and ( ( `receive_pay` - `pay` - IFNULL(`set_off`,'0') + IFNULL(`return_pay`,'0') < 0 and bill_type not in (13,21,5,6,7)) or - ( `pay` - IFNULL(`return_pay`,'0') > 0 and bill_type in (13,21,5,7)) + ( `pay` - IFNULL(`return_pay`,'0') - IFNULL(`use_money`,'0') > 0 and bill_type in (13,21,5,7)) )