|
|
|
@@ -8,7 +8,6 @@ import com.iformall.service.WxMerchantService; |
|
|
|
import com.iformall.service.WxProfitSharingReceiverService; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
import io.swagger.annotations.ApiImplicitParams; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
@@ -46,15 +45,8 @@ public class WxMerchantController extends BaseController { |
|
|
|
return new ResultData(wxProfitSharingReceiverService.findReceiver(wxMerchant)); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("更新收款账户信息") |
|
|
|
@ApiOperation("更新收款账户信息:必填项 id(商户ID) name(商户名称) accountId(账号ID) accountTypeValue(账号类型) accountName(账号名称)") |
|
|
|
@PostMapping("/updateAccount") |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name = "id", value = "商户ID", dataType = "Long", paramType = "query", required = true), |
|
|
|
@ApiImplicitParam(name = "name", value = "商户名称", dataType = "String", paramType = "query", required = true), |
|
|
|
@ApiImplicitParam(name = "accountId", value = "账号ID", dataType = "String", paramType = "query", required = true), |
|
|
|
@ApiImplicitParam(name = "accountTypeValue", value = "账号类型", dataType = "Integer", paramType = "query", required = true), |
|
|
|
@ApiImplicitParam(name = "accountName", value = "账号名称", dataType = "String", paramType = "query", required = true), |
|
|
|
}) |
|
|
|
public ResultData addAccount(@RequestBody WxMerchant wxMerchant) { |
|
|
|
log.debug("[" + getIpAddr() + "] merchantProfitSharingReceiver::addAccount"); |
|
|
|
if (wxMerchant.getId() == null) { |
|
|
|
|