添加订单列表
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user