From 424b5c1ddacb0fd6a7f41aa91fabf4427e0606fc Mon Sep 17 00:00:00 2001 From: winter Date: Wed, 7 Aug 2024 14:57:57 +0800 Subject: [PATCH] fix --- .../iformall/service/impl/WxPropertyContractServiceImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java index 9a10ab811..2c3259223 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java @@ -834,6 +834,11 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService private WxAllBill generateBillProperty(WxPayAccountBill wxPayAccountBill,WxPropertyContract wxPropertyContract,Integer isPreview,Date start,Date end,Date receiveDate,String needpay, MallUserInfo user,Integer billcount,Map shopInfo,String standarsTotal,String remark,Long parentBillId,Long feesStandardsId) { + if (StringUtils.isBlank(needpay)) { + needpay = "0"; + }else { + needpay = new BigDecimal(needpay).setScale(wxPropertyContract.getDecimalSize(),BigDecimal.ROUND_HALF_UP).toPlainString(); + } final IdWorker idWorker = IdWorker.get(); WxAllBill wxBillProperty = new WxAllBill(); wxBillProperty.setIsPreview(isPreview);