diff --git a/mallinkBApi/src/main/java/com/iformall/controller/WxMerchantController.java b/mallinkBApi/src/main/java/com/iformall/controller/WxMerchantController.java index d78d9c863..7a03a8a82 100644 --- a/mallinkBApi/src/main/java/com/iformall/controller/WxMerchantController.java +++ b/mallinkBApi/src/main/java/com/iformall/controller/WxMerchantController.java @@ -3,7 +3,6 @@ package com.iformall.controller; import com.iformall.common.ErrorCode; import com.iformall.common.ResultData; import com.iformall.domain.po.WxMerchant; -import com.iformall.domain.po.WxProfitSharingReceiver; import com.iformall.service.WxMerchantService; import com.iformall.service.WxProfitSharingReceiverService; import io.swagger.annotations.Api; @@ -65,13 +64,7 @@ public class WxMerchantController extends BaseController { return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "账号名称不能为空"); } wxMerchant.setTenantId(getTenantId()); - //分账账号 - WxProfitSharingReceiver receiver = new WxProfitSharingReceiver(); - receiver.setReceiverAccount(wxMerchant.getAccountId()); - receiver.setReceiverComments(wxMerchant.getName()); - receiver.setReceiverType(wxMerchant.getAccountTypeValue()); - receiver.setTrueName(wxMerchant.getAccountName()); - return new ResultData(wxProfitSharingReceiverService.updateReceiver(wxMerchant, receiver)); + return wxMerchantService.updateMerchantAccount(wxMerchant); } }