提现申请审核
This commit is contained in:
@@ -0,0 +1,51 @@
|
|||||||
|
package com.sqx.modules.discSpinning.controller;
|
||||||
|
|
||||||
|
import com.sqx.common.utils.Constant;
|
||||||
|
import com.sqx.common.utils.PageUtils;
|
||||||
|
import com.sqx.common.utils.Result;
|
||||||
|
import com.sqx.modules.pay.entity.CashOut;
|
||||||
|
import com.sqx.modules.pay.service.CashOutService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiImplicitParam;
|
||||||
|
import io.swagger.annotations.ApiImplicitParams;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import springfox.documentation.annotations.ApiIgnore;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提现审核
|
||||||
|
*
|
||||||
|
* @author tankaikai
|
||||||
|
* @since 2024-12-26 14:39
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/cashOutAudit")
|
||||||
|
@AllArgsConstructor
|
||||||
|
@Api(value = "提现审核", tags = {"提现审核"})
|
||||||
|
public class CashOutController {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private CashOutService cashOutService;
|
||||||
|
|
||||||
|
@GetMapping("/page")
|
||||||
|
@ApiOperation("分页")
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
||||||
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
||||||
|
})
|
||||||
|
public Result page(@ApiIgnore @RequestParam Map<String, Object> params) {
|
||||||
|
PageUtils page = cashOutService.auditPage(params);
|
||||||
|
return Result.success().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
@PostMapping("/audit")
|
||||||
|
@ApiOperation("审核")
|
||||||
|
public Result audit(@RequestBody CashOut cashOut) {
|
||||||
|
cashOutService.audit(cashOut);
|
||||||
|
return Result.success();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -74,7 +74,7 @@ public class CashOut implements Serializable {
|
|||||||
private String orderNumber;
|
private String orderNumber;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态 0待转账 1成功 -1退款 2失败
|
* 状态 0待转账 1成功 -1退款 2失败 3-待人工审核
|
||||||
*/
|
*/
|
||||||
private Integer state;
|
private Integer state;
|
||||||
|
|
||||||
@@ -107,4 +107,9 @@ public class CashOut implements Serializable {
|
|||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String sysUserName;
|
private String sysUserName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否同意提现 0不同意 1同意
|
||||||
|
*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Integer isAgree;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import com.sqx.modules.utils.excel.ExcelData;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
public interface CashOutService {
|
public interface CashOutService {
|
||||||
|
|
||||||
@@ -49,4 +50,13 @@ public interface CashOutService {
|
|||||||
*/
|
*/
|
||||||
Result withdraw(Long userId, Double money, String msg, boolean isSys);
|
Result withdraw(Long userId, Double money, String msg, boolean isSys);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提现审核分页查询
|
||||||
|
*
|
||||||
|
* @param params
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
PageUtils auditPage(Map<String, Object> params);
|
||||||
|
|
||||||
|
void audit(CashOut cashOut);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user