支付回调不加书bug

This commit is contained in:
wangjinlei
2023-11-02 18:19:13 +08:00
parent f219296d33
commit 051373adf0
5 changed files with 38 additions and 6 deletions

View File

@@ -312,6 +312,26 @@ public class BuyOrderController {
return R.ok(result);
}
@RequestMapping("/llll")
public R ls(){
LambdaQueryWrapper<BuyOrder> wrapper = new LambdaQueryWrapper<>();
ArrayList<Integer> integers = new ArrayList<>();
integers.add(1);
integers.add(2);
integers.add(3);
wrapper.in(BuyOrder::getOrderStatus,integers);
wrapper.eq(BuyOrder::getOrderType,"order");
List<BuyOrder> list = buyOrderService.list(wrapper);
for (BuyOrder b : list){
List<Integer> orderBookId = shopProductBookService.getOrderBookId(b.getOrderSn());
System.out.println(orderBookId);
userEbookBuyService.addBookForUser(b.getUserId(),orderBookId);
}
return R.ok();
}
/**
* 计算运费
*