添加订单列表

This commit is contained in:
wuchunlei
2024-12-11 15:48:48 +08:00
parent b377c6e6ee
commit 078f05d037

View File

@@ -44,6 +44,8 @@ public class HomeController {
private BookChapterService bookChapterService;
@Autowired
private BookChapterContentService bookChapterContentService;
@Autowired
private BuyOrderService buyOrderService;
//我的图书
@RequestMapping("/getMyBooks")
@@ -277,6 +279,17 @@ public class HomeController {
return R.ok().put("bookList",bookList);
}
//订单列表
@RequestMapping("/getAbroadOrderList")
public R getAbroadOrderList(@RequestBody Map<String,Object> params){
Page<BuyOrder> orders = buyOrderService.page(new Page<>(
Long.parseLong(params.get("current").toString()), Long.parseLong(params.get("limit").toString())),new LambdaQueryWrapper<BuyOrder>()
.eq(BuyOrder::getUserId,ShiroUtils.getUId())
.eq(BuyOrder::getCome,3)
.eq(BuyOrder::getOrderStatus,"3"));
return R.ok().put("orders",orders);
}