Commit aeae67dd by 吕明尚

查询当前用户可用订单,增加已使用的订单结束时间15分钟内

parent 45a78147
...@@ -1327,10 +1327,8 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme ...@@ -1327,10 +1327,8 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
LambdaQueryWrapper<SOrder> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<SOrder> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(SOrder::getConsumerId, user.getId()); queryWrapper.eq(SOrder::getConsumerId, user.getId());
queryWrapper.eq(SOrder::getPayStatus, YesNoEnum.yes.getIndex()); queryWrapper.eq(SOrder::getPayStatus, YesNoEnum.yes.getIndex());
queryWrapper.in(SOrder::getStatus, new ArrayList<Integer>() {{ queryWrapper.in(SOrder::getStatus, OrderStatusEnum.getValidOrderStatus());
add(OrderStatusEnum.UNUSED.getCode()); queryWrapper.ge(SOrder::getEndDate, DateUtils.addMinutes(new Date(), -15));
add(OrderStatusEnum.INUSE.getCode());
}});
List<SOrder> orderList = list(queryWrapper); List<SOrder> orderList = list(queryWrapper);
return convertDosToVos(orderList); return convertDosToVos(orderList);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment