From 073fd54b2cb66bf6fa8e7b3864d96ce382cb3b44 Mon Sep 17 00:00:00 2001 From: gongbiao Date: Thu, 9 May 2019 15:26:18 +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=93=8D=E4=BD=9CB?= =?UTF-8?q?=E7=AB=AF=E5=8F=82=E6=95=B0=E6=B3=A8=E9=87=8A]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iformall/controller/WxMerchantController.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/mallinkBApi/src/main/java/com/iformall/controller/WxMerchantController.java b/mallinkBApi/src/main/java/com/iformall/controller/WxMerchantController.java index 50571c96b..f86e419dc 100644 --- a/mallinkBApi/src/main/java/com/iformall/controller/WxMerchantController.java +++ b/mallinkBApi/src/main/java/com/iformall/controller/WxMerchantController.java @@ -7,6 +7,8 @@ import com.iformall.domain.po.WxProfitSharingReceiver; 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; @@ -34,7 +36,8 @@ public class WxMerchantController extends BaseController { @ApiOperation("查询账户信息") @GetMapping("/findAccountById") - public ResultData findByMerchantId(@ModelAttribute WxMerchant wxMerchant) { + @ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true) + public ResultData findAccountById(@ModelAttribute WxMerchant wxMerchant) { log.debug("[" + getIpAddr() + "] WxMerchantController::findAccountById"); if (wxMerchant.getId() == null) { return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "商户ID不能为空"); @@ -45,6 +48,13 @@ public class WxMerchantController extends BaseController { @ApiOperation("更新收款账户信息") @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) {