Commit 819323d3dba064772478a35b392724e3b987f6c2
Committed by
Gitee
1 parent
d1fc18a4
小程序端采用银行卡提现,提交后报:请求参数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>
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/brokerage/vo/withdraw/AppBrokerageWithdrawCreateReqVO.java
| ... | ... | @@ -44,7 +44,7 @@ public class AppBrokerageWithdrawCreateReqVO { |
| 44 | 44 | private String name; |
| 45 | 45 | @Schema(description = "提现银行", example = "1") |
| 46 | 46 | @NotNull(message = "提现银行不能为空", groups = {Bank.class}) |
| 47 | - private Integer bankName; | |
| 47 | + private String bankName; | |
| 48 | 48 | @Schema(description = "开户地址", example = "海淀支行") |
| 49 | 49 | private String bankAddress; |
| 50 | 50 | ... | ... |