From 2eadd24576e5097aeb2d74903aeb506ecd7ccdbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E5=A4=A7=E5=8F=94?= <494979559@qq.com> Date: Tue, 30 Jul 2024 10:31:46 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8F=90=E7=8E=B0=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E5=B0=8F=E4=BA=8E20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/ss/transactionBill/domain/dto/WithdrawDTO.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/domain/dto/WithdrawDTO.java b/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/domain/dto/WithdrawDTO.java index b4b166f6..87eb0544 100644 --- a/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/domain/dto/WithdrawDTO.java +++ b/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/domain/dto/WithdrawDTO.java @@ -3,6 +3,7 @@ package com.ruoyi.ss.transactionBill.domain.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import javax.validation.constraints.Min; import java.math.BigDecimal; /** @@ -14,6 +15,7 @@ import java.math.BigDecimal; public class WithdrawDTO { @ApiModelProperty("提现金额") + @Min(value = 20, message = "提现金额不能小于20") private BigDecimal money; @ApiModelProperty("提现到账金额") From aa285be9b1c197a742dc8126350ac15ad83945ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E5=A4=A7=E5=8F=94?= <494979559@qq.com> Date: Tue, 30 Jul 2024 10:32:36 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8F=90=E7=8E=B0=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E5=B0=8F=E4=BA=8E20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/web/controller/app/AppTransactionBillController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smart-switch-web/src/main/java/com/ruoyi/web/controller/app/AppTransactionBillController.java b/smart-switch-web/src/main/java/com/ruoyi/web/controller/app/AppTransactionBillController.java index 6a68579b..36147e68 100644 --- a/smart-switch-web/src/main/java/com/ruoyi/web/controller/app/AppTransactionBillController.java +++ b/smart-switch-web/src/main/java/com/ruoyi/web/controller/app/AppTransactionBillController.java @@ -196,7 +196,7 @@ public class AppTransactionBillController extends BaseController // @MchRequired @ApiOperation("提现申请") @PostMapping("/withdraw") - public AjaxResult withdraw(@RequestBody @Validated({ValidGroup.Withdraw.class}) WithdrawDTO dto) { + public AjaxResult withdraw(@RequestBody @Validated WithdrawDTO dto) { dto.setUserId(getUserId()); return AjaxResult.success("操作成功", smTransactionBillService.addWithdraw(transactionBillConverter.toWithdrawBO(dto))); }