From 9589da1559c710c5f29ddd337c3e31c1820bcc14 Mon Sep 17 00:00:00 2001 From: gongbiao Date: Wed, 10 Jul 2019 10:13:39 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90BUG][=E4=BF=AE=E6=94=B9][=E3=80=90ID10?= =?UTF-8?q?02033=E3=80=91=E6=B5=8B=E8=AF=95=E7=8E=AF=E5=A2=83-=E8=B4=A6?= =?UTF-8?q?=E5=8D=95=E7=AE=A1=E7=90=86-=E7=BC=B4=E6=AC=BE=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E4=B8=8B=E6=98=8E=E7=BB=86=E5=AF=BC=E5=85=A5=E8=B4=A6?= =?UTF-8?q?=E5=8D=95=E9=9C=80=E8=A6=81=E6=B7=BB=E5=8A=A0=E9=87=91=E9=92=B1?= =?UTF-8?q?=E6=98=8E=E7=BB=86]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/WxBillAllServiceImpl.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxBillAllServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxBillAllServiceImpl.java index b567bd70b..076ba14a5 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxBillAllServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxBillAllServiceImpl.java @@ -985,7 +985,7 @@ public class WxBillAllServiceImpl implements WxBillAllService { rent.setPayDate(bill.getPayDate()); rent.setReceiveDate(bill.getReceiveDate()); wxBillRentMapper.updateByPrimaryKey(rent); - addActionImport(rent.getId(), bill.getPayWay(), bill.getPayDate(), user); + addActionImport(rent.getId(), bill.getPayWay(), bill.getPayDate(), user, bill.getPayStr()); } } else if (billType.equals(EnumBillExcelTemplate.SHOP_PROPERTY.getCode()) || billType.equals(EnumBillExcelTemplate.POINT_PROPERTY.getCode())) { WxBillProperty propertyQuery = new WxBillProperty(); @@ -1010,7 +1010,7 @@ public class WxBillAllServiceImpl implements WxBillAllService { property.setPayDate(bill.getPayDate()); property.setReceiveDate(bill.getReceiveDate()); wxBillPropertyMapper.updateByPrimaryKey(property); - addActionImport(property.getId(), bill.getPayWay(), bill.getPayDate(), user); + addActionImport(property.getId(), bill.getPayWay(), bill.getPayDate(), user, pay); } } else if (billType.equals(EnumBillExcelTemplate.DAILY.getCode())) { WxBillDaily dailyQuery = new WxBillDaily(); @@ -1040,7 +1040,7 @@ public class WxBillAllServiceImpl implements WxBillAllService { daily.setPayDate(bill.getPayDate()); daily.setReceiveDate(bill.getReceiveDate()); wxBillDailyMapper.updateByPrimaryKey(daily); - addActionImport(daily.getId(), bill.getPayWay(), bill.getPayDate(), user); + addActionImport(daily.getId(), bill.getPayWay(), bill.getPayDate(), user, pay); } } else { WxMerchantShop wxMerchantShop = new WxMerchantShop(); @@ -1071,7 +1071,7 @@ public class WxBillAllServiceImpl implements WxBillAllService { daily.setStarttime(bill.getStarttime()); daily.setEndtime(bill.getEndtime()); wxBillDailyMapper.insertSelective(daily); - addActionImport(daily.getId(), bill.getPayWay(), bill.getPayDate(), user); + addActionImport(daily.getId(), bill.getPayWay(), bill.getPayDate(), user, pay); } } } else if (billType.equals(EnumBillExcelTemplate.OTHER.getCode())) { @@ -1095,7 +1095,7 @@ public class WxBillAllServiceImpl implements WxBillAllService { other.setPayDate(bill.getPayDate()); other.setReceiveDate(bill.getReceiveDate()); wxBillOtherMapper.updateByPrimaryKey(other); - addActionImport(other.getId(), bill.getPayWay(), bill.getPayDate(), user); + addActionImport(other.getId(), bill.getPayWay(), bill.getPayDate(), user, pay); } } else { WxMerchantShop wxMerchantShop = new WxMerchantShop(); @@ -1127,7 +1127,7 @@ public class WxBillAllServiceImpl implements WxBillAllService { other.setStarttime(bill.getStarttime()); other.setEndtime(bill.getEndtime()); wxBillOtherMapper.insertSelective(other); - addActionImport(other.getId(), bill.getPayWay(), bill.getPayDate(), user); + addActionImport(other.getId(), bill.getPayWay(), bill.getPayDate(), user, pay); } } } else if (billType.equals(EnumBillExcelTemplate.OTHER_DEPOSIT.getCode())) { @@ -1149,7 +1149,7 @@ public class WxBillAllServiceImpl implements WxBillAllService { otherDeposit.setPayDate(bill.getPayDate()); otherDeposit.setReceiveDate(bill.getReceiveDate()); wxBillOtherDepositMapper.updateByPrimaryKey(otherDeposit); - addActionImport(otherDeposit.getId(), bill.getPayWay(), bill.getPayDate(), user); + addActionImport(otherDeposit.getId(), bill.getPayWay(), bill.getPayDate(), user, pay); } } else { WxMerchantShop wxMerchantShop = new WxMerchantShop(); @@ -1182,7 +1182,7 @@ public class WxBillAllServiceImpl implements WxBillAllService { otherDeposit.setStarttime(bill.getStarttime()); otherDeposit.setEndtime(bill.getEndtime()); wxBillOtherDepositMapper.insertSelective(otherDeposit); - addActionImport(otherDeposit.getId(), bill.getPayWay(), bill.getPayDate(), user); + addActionImport(otherDeposit.getId(), bill.getPayWay(), bill.getPayDate(), user, pay); } } } else { @@ -1193,11 +1193,11 @@ public class WxBillAllServiceImpl implements WxBillAllService { stringRedisTemplate.expire(importKey, 10, TimeUnit.SECONDS); } - public void addActionImport(Long billId, String payWay, Date payDate, MallUserInfo user) { + public void addActionImport(Long billId, String payWay, Date payDate, MallUserInfo user, String pay) { WxBillAction wxBillAction = new WxBillAction(); wxBillAction.setBillId(billId); String details = StringUtils.isEmpty(payWay) ? "其他缴费" : payWay + "缴费"; - wxBillAction.setDetails(details); + wxBillAction.setDetails(details + pay + "元"); wxBillAction.setAction(EnumBillAction.IMPORT_PAY.getCode()); wxBillAction.setPayDate(payDate); wxBillActionService.modifyBill(wxBillAction, user);