| | |
| | | ExcelUtil<OrderPageListVo> util = new ExcelUtil<OrderPageListVo>(OrderPageListVo.class); |
| | | util.exportExcel(response, list, "订单数据"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取用户订单数量 |
| | | * @param appUserId |
| | | * @return |
| | | */ |
| | | @PostMapping("/getOrderCountByAppUserId") |
| | | public R<Long> getOrderCountByAppUserId(@RequestParam("id") Long appUserId){ |
| | | long count = orderService.count(new LambdaQueryWrapper<Order>().eq(Order::getDelFlag, 0) |
| | | .eq(Order::getAppUserId, appUserId).in(Order::getOrderStatus, Arrays.asList(1, 2, 3, 4, 7, 8)) |
| | | .eq(Order::getPayStatus, 2)); |
| | | return R.ok(count); |
| | | } |
| | | } |
| | | |