init
This commit is contained in:
@@ -56,9 +56,12 @@ public class AccountCashController extends BaseController {
|
||||
@SaCheckPermission("cai:accountCash:export")
|
||||
@Log(title = "用户提现记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(AccountCash bo, HttpServletResponse response) {
|
||||
List<AccountCash> list = accountCashService.list(Wrappers.lambdaQuery(bo));
|
||||
ExcelUtil.exportExcel(list, "用户提现记录", AccountCash.class, response);
|
||||
public void export(AccountCashAdminVo bo, HttpServletResponse response) {
|
||||
PageQuery query = new PageQuery();
|
||||
query.setPageSize(Integer.MAX_VALUE);
|
||||
query.setPageNum(1);
|
||||
List<AccountCashAdminVo> list = accountCashService.pageAdmin(query,bo).getRecords();
|
||||
ExcelUtil.exportExcel(list, "用户提现记录", AccountCashAdminVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,6 +8,8 @@ import com.ruoyi.cai.pay.PayManager;
|
||||
import com.ruoyi.cai.service.RechargeOrderService;
|
||||
import com.ruoyi.cai.service.VipOrderService;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
@@ -19,6 +21,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/cai/test/pay")
|
||||
@Tag(name = "测试接口,正式环境取消")
|
||||
public class TestPayController {
|
||||
|
||||
@Autowired
|
||||
@@ -29,6 +32,7 @@ public class TestPayController {
|
||||
private PayManager payManager;
|
||||
|
||||
@GetMapping("/vip")
|
||||
@Operation(hidden = true)
|
||||
public R<Void> vip(Long memberPriceId, Long userId){
|
||||
AddVipOrderDto addVipOrderDto = new AddVipOrderDto();
|
||||
addVipOrderDto.setUserId(userId);
|
||||
@@ -39,6 +43,7 @@ public class TestPayController {
|
||||
}
|
||||
|
||||
@GetMapping("/recharge")
|
||||
@Operation(hidden = true)
|
||||
public R<Void> recharge(Long goodId, Long userId){
|
||||
AddRechargeOrderDto dto = new AddRechargeOrderDto();
|
||||
dto.setUserId(userId);
|
||||
|
||||
Reference in New Issue
Block a user