海外读书订单列表修改
This commit is contained in:
@@ -286,7 +286,13 @@ public class HomeController {
|
||||
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::getOrderType,"abroadBook")
|
||||
.eq(BuyOrder::getOrderStatus,"3"));
|
||||
for (BuyOrder bo:orders.getRecords()){
|
||||
if ("abroadBook".equals(bo.getOrderType())){
|
||||
bo.setBookEntity(bookService.getById(bo.getAbroadBookId()));
|
||||
}
|
||||
}
|
||||
return R.ok().put("orders",orders);
|
||||
}
|
||||
|
||||
|
||||
@@ -212,4 +212,6 @@ public class BuyOrder implements Serializable {
|
||||
private BookBuyConfigEntity bookBuyConfigEntity;
|
||||
@TableField(exist = false)
|
||||
private VipBuyConfigEntity vipBuyConfigEntity;
|
||||
@TableField(exist = false)
|
||||
private BookEntity bookEntity;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user