实物领取
This commit is contained in:
@@ -10,6 +10,7 @@ import com.alipay.api.request.AlipayFundTransToaccountTransferRequest;
|
||||
import com.alipay.api.request.AlipayFundTransUniTransferRequest;
|
||||
import com.alipay.api.response.AlipayFundTransToaccountTransferResponse;
|
||||
import com.alipay.api.response.AlipayFundTransUniTransferResponse;
|
||||
import com.sqx.common.annotation.Debounce;
|
||||
import com.sqx.common.utils.Result;
|
||||
import com.sqx.modules.app.annotation.Login;
|
||||
import com.sqx.modules.app.entity.UserEntity;
|
||||
@@ -265,6 +266,7 @@ public class CashController {
|
||||
@RequestMapping(value = "/alipay/{cashId}", method = RequestMethod.POST)
|
||||
@ApiOperation("管理平台确认提现")
|
||||
@ResponseBody
|
||||
@Debounce(interval = 3000, value = "#cashId")
|
||||
public Result alipayPay(@PathVariable Long cashId) {
|
||||
reentrantReadWriteLock.writeLock().lock();
|
||||
try {
|
||||
@@ -419,6 +421,7 @@ public class CashController {
|
||||
@RequestMapping(value = "/refund/{cashId}/{content}", method = RequestMethod.POST)
|
||||
@ApiOperation("管理平台退款")
|
||||
@ResponseBody
|
||||
@Debounce(interval = 3000, value = "#cashId")
|
||||
public Result refund(@PathVariable("cashId") Long cashId, @PathVariable("content") String content) {
|
||||
CashOut one = cashOutService.selectById(cashId);
|
||||
if (one == null) {
|
||||
@@ -479,6 +482,7 @@ public class CashController {
|
||||
|
||||
@GetMapping(value = "/cashMoney")
|
||||
@ApiOperation("发起提现")
|
||||
@Debounce(interval = 3000, value = "#userId")
|
||||
public Result cashMoney(Long userId, Double money) {
|
||||
return cashOutService.sysCashMoney(userId, money);
|
||||
}
|
||||
@@ -491,6 +495,7 @@ public class CashController {
|
||||
@ApiImplicitParam(name = "money", value = "提现金额", dataTypeClass = Double.class, paramType = "param"),
|
||||
@ApiImplicitParam(name = "msg", value = "验证码", dataTypeClass = String.class, paramType = "param"),
|
||||
})
|
||||
@Debounce(interval = 3000, value = "#userId")
|
||||
public Result withdraw(Long userId, Double money, String msg) {
|
||||
if (StringUtils.isBlank(msg)) {
|
||||
return Result.error("请输入验证码");
|
||||
|
||||
Reference in New Issue
Block a user