小程序端采用银行卡提现,提交后报:请求参数bankName类型错误。

原因:yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/brokerage/vo/withdraw/AppBrokerageWithdrawCreateReqVO.java中的字段:private Integer bankName实际应为String型,因为无论是用户手动输入银行名字,或是采用查询字典表类型"brokerage_bank_name"提交字典值"value",都应该是String型。

经检查其相所有相关的DO,VO的属性bankName均为String,所以AppBrokerageWithdrawCreateReqVO的bankName改为String为宜。

Signed-off-by: heyho <heywsk@qq.com>
This commit is contained in:
heyho 2024-09-04 05:24:04 +00:00 committed by Gitee
parent d1fc18a409
commit 819323d3db
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public class AppBrokerageWithdrawCreateReqVO {
private String name;
@Schema(description = "提现银行", example = "1")
@NotNull(message = "提现银行不能为空", groups = {Bank.class})
private Integer bankName;
private String bankName;
@Schema(description = "开户地址", example = "海淀支行")
private String bankAddress;