|
|
|
@@ -201,25 +201,20 @@ public class WxFlowServiceImpl implements WxFlowService { |
|
|
|
//账单审批 |
|
|
|
Integer billType = (Integer) getVariableByKey(variables, "billType"); |
|
|
|
MallUserInfo user = (MallUserInfo) SecurityUtils.getSubject().getSession().getAttribute("userSession"); |
|
|
|
String latePayMoneyBefore = (String) getVariableByKey(variables, "latePayMoneyBefore"); |
|
|
|
String latePayMoneyUpdate = (String) getVariableByKey(variables, "latePayMoneyUpdate"); |
|
|
|
if(StringUtils.isNotBlank(latePayMoneyBefore)){ //修改滞纳金 |
|
|
|
WxBillAll wxBillAll = new WxBillAll(); |
|
|
|
wxBillAll.setId(businessId); |
|
|
|
wxBillAll.setBillTypeValue(billType); |
|
|
|
wxBillAll.setOldLatePrice(Long.parseLong(latePayMoneyBefore)*100); |
|
|
|
wxBillAll.setNewLatePrice(Long.parseLong(latePayMoneyUpdate)*100); |
|
|
|
wxBillAllService.updateReceivePay(wxBillAll, user); |
|
|
|
Integer billUpdateType = (Integer) getVariableByKey(variables, "billUpdateType"); |
|
|
|
Long oldPrice = Long.parseLong(getVariableByKey(variables, "oldPrice").toString()); |
|
|
|
Long newPrice = Long.parseLong(getVariableByKey(variables, "newPrice").toString()); |
|
|
|
WxBillAll wxBillAll = new WxBillAll(); |
|
|
|
wxBillAll.setId(businessId); |
|
|
|
wxBillAll.setBillTypeValue(billType); |
|
|
|
if(EnumBillUpdateType.LATEPAY.getCode().equals(billUpdateType)){ //修改滞纳金 |
|
|
|
wxBillAll.setOldLatePrice(oldPrice); |
|
|
|
wxBillAll.setNewLatePrice(newPrice); |
|
|
|
}else{ |
|
|
|
Long oldPrice = Long.parseLong(getVariableByKey(variables, "oldPrice").toString()); |
|
|
|
Long newPrice = Long.parseLong(getVariableByKey(variables, "newPrice").toString()); |
|
|
|
WxBillAll wxBillAll = new WxBillAll(); |
|
|
|
wxBillAll.setId(businessId); |
|
|
|
wxBillAll.setBillTypeValue(billType); |
|
|
|
wxBillAll.setOldPrice(oldPrice); |
|
|
|
wxBillAll.setNewPrice(newPrice); |
|
|
|
wxBillAllService.updateReceivePay(wxBillAll, user); |
|
|
|
} |
|
|
|
wxBillAllService.updateReceivePay(wxBillAll, user); |
|
|
|
} |
|
|
|
} else if (EnumFlowKey.NEW_COUPON_UPLINE.getCode().equals(flowType) |
|
|
|
|| EnumFlowKey.NEW_CARD_UPLINE.getCode().equals(flowType) |
|
|
|
|