|
|
|
@@ -9,6 +9,7 @@ import com.simple.enums.EnumCarVendor; |
|
|
|
import com.simple.mapper.*; |
|
|
|
import com.simple.service.WxMerchantService; |
|
|
|
import com.simple.service.WxProfitSharingReceiverService; |
|
|
|
import com.simple.service.WxRentContractService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
@@ -41,6 +42,8 @@ public class WxMerchantServiceImpl implements WxMerchantService { |
|
|
|
@Autowired |
|
|
|
WxBillRentMapper wxBillRentMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
WxProfitSharingReceiverService wxProfitSharingReceiverService; |
|
|
|
@Override |
|
|
|
public PageInfo<WxMerchant> listAsPage(WxMerchant record, Integer pageIndex, Integer pageSize) { |
|
|
|
|
|
|
|
@@ -201,7 +204,7 @@ public class WxMerchantServiceImpl implements WxMerchantService { |
|
|
|
receiver.setReceiverComments(wxMerchant.getName()); |
|
|
|
receiver.setReceiverType(wxMerchant.getAccountTypeValue()); |
|
|
|
receiver.setTrueName(wxMerchant.getAccountName()); |
|
|
|
wxRentContractMapperService.addReceiver(wxMerchant, receiver); |
|
|
|
wxProfitSharingReceiverService.addReceiver(wxMerchant, receiver); |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
@@ -311,9 +314,9 @@ public class WxMerchantServiceImpl implements WxMerchantService { |
|
|
|
receiver.setReceiverComments(wxMerchant.getName()); |
|
|
|
receiver.setReceiverType(wxMerchant.getAccountTypeValue()); |
|
|
|
receiver.setTrueName(wxMerchant.getAccountName()); |
|
|
|
wxRentContractMapperService.updateReceiver(wxMerchant, receiver); |
|
|
|
wxProfitSharingReceiverService.updateReceiver(wxMerchant, receiver); |
|
|
|
} else { |
|
|
|
wxRentContractMapperService.delReceiver(wxMerchant); |
|
|
|
wxProfitSharingReceiverService.delReceiver(wxMerchant); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|