订单列表重构
This commit is contained in:
@@ -112,8 +112,8 @@ public class BuyOrderController {
|
||||
*/
|
||||
@RequestMapping(path = "/orderList", method = RequestMethod.POST)
|
||||
public R orderList(@RequestBody BuyOrderListRequestVo requestVo) {
|
||||
Map<String, Object> result = buyOrderService.orderList(requestVo);
|
||||
return R.ok().put("result", result);
|
||||
Page<BuyOrder> buyOrderPage = buyOrderService.orderList(requestVo);
|
||||
return R.ok().put("result", buyOrderPage);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -376,6 +376,7 @@ public class BuyOrderController {
|
||||
integers.add(1);
|
||||
integers.add(2);
|
||||
integers.add(3);
|
||||
wrapper.gt(BuyOrder::getOrderId,4522);
|
||||
wrapper.in(BuyOrder::getOrderStatus,integers);
|
||||
wrapper.eq(BuyOrder::getOrderType,"order");
|
||||
List<BuyOrder> list = buyOrderService.list(wrapper);
|
||||
@@ -390,7 +391,7 @@ public class BuyOrderController {
|
||||
|
||||
@RequestMapping("/llll1")
|
||||
public R ls1(){
|
||||
Integer[] is = {133,134,135};
|
||||
Integer[] is = {39,62,123,127};
|
||||
List<Integer> collect = buyOrderProductService.getBaseMapper().selectList(new LambdaQueryWrapper<BuyOrderProduct>().in(BuyOrderProduct::getProductId, is)).stream().map(BuyOrderProduct::getOrderId).collect(Collectors.toList());
|
||||
|
||||
LambdaQueryWrapper<BuyOrder> wrapper = new LambdaQueryWrapper<>();
|
||||
@@ -401,7 +402,7 @@ public class BuyOrderController {
|
||||
List<BuyOrder> list = buyOrderService.list(wrapper);
|
||||
for (BuyOrder b : list){
|
||||
MyUserEntity byId = myUserService.getById(b.getUserId());
|
||||
byId.setTgdzPower(1);
|
||||
byId.setWylqPower(1);
|
||||
myUserService.updateById(byId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user