From 27a48ddb9838a47fff8067eb446601829dfb6498 Mon Sep 17 00:00:00 2001 From: hupeng Date: Mon, 10 Sep 2018 15:18:56 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=94=AF=E4=BB=98][=E4=BF=AE=E6=94=B9]:?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=B8=80=E4=B8=AA=E5=88=86=E8=B4=A6?= =?UTF-8?q?=E8=B4=A6=E6=88=B7=E7=9B=B8=E5=85=B3=E7=9A=84commit=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/simple/service/impl/WxMerchantServiceImpl.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mallinkService/src/main/java/com/simple/service/impl/WxMerchantServiceImpl.java b/mallinkService/src/main/java/com/simple/service/impl/WxMerchantServiceImpl.java index 306dc23a4..70a0ff781 100644 --- a/mallinkService/src/main/java/com/simple/service/impl/WxMerchantServiceImpl.java +++ b/mallinkService/src/main/java/com/simple/service/impl/WxMerchantServiceImpl.java @@ -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 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); } }