Просмотр исходного кода

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

release_toaliyun_real
gongbiao 7 лет назад
Родитель
Сommit
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);
}

}

Загрузка…
Отмена
Сохранить