Browse Source

[账单审批][修改][保存账单操作记录]

release_toaliyun_real
gongbiao 7 years ago
parent
commit
3a00527d46
1 changed files with 10 additions and 9 deletions
  1. +10
    -9
      mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java

+ 10
- 9
mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java View File

@@ -210,7 +210,7 @@ public class WxFlowServiceImpl implements WxFlowService {
wxBillRent.setUpdatetime(updateDate);
wxBillRentMapper.updateByPrimaryKeySelective(wxBillRent);
//账单日志
addBillAction(oldPrice, newPrice, mallUserInfo);
addBillAction(businessId, oldPrice, newPrice, mallUserInfo);
} else if (billType.equals(EnumBillTypeParam.RENT_DEPOSIT.getCode())) {
//租赁押金账单更新
WxBillDeposit wxBillDeposit = new WxBillDeposit();
@@ -219,7 +219,7 @@ public class WxFlowServiceImpl implements WxFlowService {
wxBillDeposit.setUpdatetime(updateDate);
wxBillDepositMapper.updateByPrimaryKeySelective(wxBillDeposit);
//账单日志
addBillAction(oldPrice, newPrice, mallUserInfo);
addBillAction(businessId, oldPrice, newPrice, mallUserInfo);
} else if (billType.equals(EnumBillTypeParam.PROPERTY.getCode())) {
//物业账单更新
WxBillProperty wxBillProperty = new WxBillProperty();
@@ -228,7 +228,7 @@ public class WxFlowServiceImpl implements WxFlowService {
wxBillProperty.setUpdatetime(updateDate);
wxBillPropertyMapper.updateByPrimaryKeySelective(wxBillProperty);
//账单日志
addBillAction(oldPrice, newPrice, mallUserInfo);
addBillAction(businessId, oldPrice, newPrice, mallUserInfo);
} else if (billType.equals(EnumBillTypeParam.PROPERTY_DEPOSIT.getCode())) {
//物业押金账单更新
WxBillPropertyDeposit wxBillPropertyDeposit = new WxBillPropertyDeposit();
@@ -237,17 +237,17 @@ public class WxFlowServiceImpl implements WxFlowService {
wxBillPropertyDeposit.setUpdatetime(updateDate);
wxBillPropertyDepositMapper.updateByPrimaryKeySelective(wxBillPropertyDeposit);
//账单日志
addBillAction(oldPrice, newPrice, mallUserInfo);
addBillAction(businessId, oldPrice, newPrice, mallUserInfo);
} else if (billType.equals(EnumBillTypeParam.WATER.getCode())) {
//水费账单更新
updateDailyBill(businessId, newPrice, updateDate);
//账单日志
addBillAction(oldPrice, newPrice, mallUserInfo);
addBillAction(businessId, oldPrice, newPrice, mallUserInfo);
} else if (billType.equals(EnumBillTypeParam.POWER.getCode())) {
//电费账单更新
updateDailyBill(businessId, newPrice, updateDate);
//账单日志
addBillAction(oldPrice, newPrice, mallUserInfo);
addBillAction(businessId, oldPrice, newPrice, mallUserInfo);
} else if (billType.equals(EnumBillTypeParam.ROUTINE.getCode())) {
//其他费用账单更新
WxBillOther wxBillOther = new WxBillOther();
@@ -256,7 +256,7 @@ public class WxFlowServiceImpl implements WxFlowService {
wxBillOther.setUpdatetime(updateDate);
wxBillOtherMapper.updateByPrimaryKeySelective(wxBillOther);
//账单日志
addBillAction(oldPrice, newPrice, mallUserInfo);
addBillAction(businessId, oldPrice, newPrice, mallUserInfo);
} else if (billType.equals(EnumBillTypeParam.ATHER_DEPOSIT.getCode())) {
//其他押金账单更新
WxBillOtherDeposit wxBillOtherDeposit = new WxBillOtherDeposit();
@@ -265,7 +265,7 @@ public class WxFlowServiceImpl implements WxFlowService {
wxBillOtherDeposit.setUpdatetime(updateDate);
wxBillOtherDepositMapper.updateByPrimaryKeySelective(wxBillOtherDeposit);
//账单日志
addBillAction(oldPrice, newPrice, mallUserInfo);
addBillAction(businessId, oldPrice, newPrice, mallUserInfo);
} else {
logger.info("未找到账单类型");
}
@@ -281,8 +281,9 @@ public class WxFlowServiceImpl implements WxFlowService {
wxBillDailyMapper.updateByPrimaryKeySelective(wxBillDaily);
}

public void addBillAction(Integer oldPrice, Integer newPrice, MallUserInfo mallUserInfo) {
public void addBillAction(Long billId, Integer oldPrice, Integer newPrice, MallUserInfo mallUserInfo) {
WxBillAction wxBillAction = new WxBillAction();
wxBillAction.setBillId(billId);
wxBillAction.setOldPrice(oldPrice);
wxBillAction.setNewPrice(newPrice);
wxBillActionService.modifyBill(wxBillAction, mallUserInfo);


Loading…
Cancel
Save