Bläddra i källkod

[支付][修改]:修复上一个分账账户相关的commit的问题

release_toaliyun_real
hupeng 7 år sedan
förälder
incheckning
27a48ddb98
1 ändrade filer med 6 tillägg och 3 borttagningar
  1. +6
    -3
      mallinkService/src/main/java/com/simple/service/impl/WxMerchantServiceImpl.java

+ 6
- 3
mallinkService/src/main/java/com/simple/service/impl/WxMerchantServiceImpl.java Visa fil

@@ -9,6 +9,7 @@ import com.simple.enums.EnumCarVendor;
import com.simple.mapper.*; import com.simple.mapper.*;
import com.simple.service.WxMerchantService; import com.simple.service.WxMerchantService;
import com.simple.service.WxProfitSharingReceiverService; import com.simple.service.WxProfitSharingReceiverService;
import com.simple.service.WxRentContractService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@@ -41,6 +42,8 @@ public class WxMerchantServiceImpl implements WxMerchantService {
@Autowired @Autowired
WxBillRentMapper wxBillRentMapper; WxBillRentMapper wxBillRentMapper;


@Autowired
WxProfitSharingReceiverService wxProfitSharingReceiverService;
@Override @Override
public PageInfo<WxMerchant> listAsPage(WxMerchant record, Integer pageIndex, Integer pageSize) { public PageInfo<WxMerchant> listAsPage(WxMerchant record, Integer pageIndex, Integer pageSize) {


@@ -201,7 +204,7 @@ public class WxMerchantServiceImpl implements WxMerchantService {
receiver.setReceiverComments(wxMerchant.getName()); receiver.setReceiverComments(wxMerchant.getName());
receiver.setReceiverType(wxMerchant.getAccountTypeValue()); receiver.setReceiverType(wxMerchant.getAccountTypeValue());
receiver.setTrueName(wxMerchant.getAccountName()); receiver.setTrueName(wxMerchant.getAccountName());
wxRentContractMapperService.addReceiver(wxMerchant, receiver);
wxProfitSharingReceiverService.addReceiver(wxMerchant, receiver);
} }


} else { } else {
@@ -311,9 +314,9 @@ public class WxMerchantServiceImpl implements WxMerchantService {
receiver.setReceiverComments(wxMerchant.getName()); receiver.setReceiverComments(wxMerchant.getName());
receiver.setReceiverType(wxMerchant.getAccountTypeValue()); receiver.setReceiverType(wxMerchant.getAccountTypeValue());
receiver.setTrueName(wxMerchant.getAccountName()); receiver.setTrueName(wxMerchant.getAccountName());
wxRentContractMapperService.updateReceiver(wxMerchant, receiver);
wxProfitSharingReceiverService.updateReceiver(wxMerchant, receiver);
} else { } else {
wxRentContractMapperService.delReceiver(wxMerchant);
wxProfitSharingReceiverService.delReceiver(wxMerchant);
} }
} }




Laddar…
Avbryt
Spara