Merge remote-tracking branch 'origin/master' into dev

This commit is contained in:
墨大叔 2024-07-30 10:33:23 +08:00
commit 76714ad044
2 changed files with 3 additions and 1 deletions

View File

@ -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("提现到账金额")

View File

@ -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)));
}