瀏覽代碼

[商户][修改[分账账户更新]

release_toaliyun_real
gongbiao 7 年之前
父節點
當前提交
a726b2cbc8
共有 1 個文件被更改,包括 1 次插入8 次删除
  1. +1
    -8
      mallinkBApi/src/main/java/com/iformall/controller/WxMerchantController.java

+ 1
- 8
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);
}

}

Loading…
取消
儲存