|
|
|
@@ -311,26 +311,24 @@ public class WxBillPropertyServiceImpl implements WxBillPropertyService { |
|
|
|
|
|
|
|
@Override |
|
|
|
public ResultData updateLatePayMoney(WxBillProperty record, MallUserInfo user) { |
|
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
|
WxBillAction billAction = new WxBillAction(); |
|
|
|
|
|
|
|
if(record.getLatePayMoneyUpdate() != null) { |
|
|
|
record.setLatePayPrice(Long.parseLong(record.getLatePayMoneyUpdate()) * 100); |
|
|
|
|
|
|
|
billAction.setId(idWorker.nextId()); |
|
|
|
billAction.setCreatetime(new Date()); |
|
|
|
billAction.setUserName("系统端"); |
|
|
|
billAction.setAction(EnumBillAction.UPDATE_LATE_PAY_MONEY.getCode()); |
|
|
|
billAction.setBillId(record.getId()); |
|
|
|
billAction.setDetails(record.getLatePayMoneyBefore()+"元变更为" +record.getLatePayMoneyUpdate()+"元"); |
|
|
|
billAction.setUpdatetime(new Date()); |
|
|
|
wxBillActionMapper.insert(billAction); |
|
|
|
} |
|
|
|
if(record.getServiceChargePay() != null) { |
|
|
|
record.setServiceChargePay(record.getServiceChargePay() * 100); |
|
|
|
} |
|
|
|
wxBillPropertyMapper.updateById(record); |
|
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
|
|
|
|
|
WxBillAction billAction = new WxBillAction(); |
|
|
|
billAction.setId(idWorker.nextId()); |
|
|
|
billAction.setCreatetime(new Date()); |
|
|
|
billAction.setUserName("系统端"); |
|
|
|
billAction.setAction(EnumBillAction.UPDATE_LATE_PAY_MONEY.getCode()); |
|
|
|
billAction.setBillId(record.getId()); |
|
|
|
billAction.setDetails(record.getLatePayMoneyBefore()+"元变更为" +record.getLatePayMoneyUpdate()+"元"); |
|
|
|
billAction.setUpdatetime(new Date()); |
|
|
|
wxBillActionMapper.insert(billAction); |
|
|
|
|
|
|
|
if(record.getServiceChargePay() != null) { |
|
|
|
billAction = new WxBillAction(); |
|
|
|
billAction.setId(idWorker.nextId()); |
|
|
|
billAction.setCreatetime(new Date()); |
|
|
|
@@ -341,7 +339,7 @@ public class WxBillPropertyServiceImpl implements WxBillPropertyService { |
|
|
|
billAction.setUpdatetime(new Date()); |
|
|
|
wxBillActionMapper.insert(billAction); |
|
|
|
} |
|
|
|
|
|
|
|
wxBillPropertyMapper.updateById(record); |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
} |