From a726b2cbc8331a3429a8c247c6be9925d4511812 Mon Sep 17 00:00:00 2001 From: gongbiao Date: Thu, 9 May 2019 17:33:47 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=95=86=E6=88=B7][=E4=BF=AE=E6=94=B9[?= =?UTF-8?q?=E5=88=86=E8=B4=A6=E8=B4=A6=E6=88=B7=E6=9B=B4=E6=96=B0]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/iformall/controller/WxMerchantController.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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); } }