Commit a9321853 by 吕明尚

修改房间订单结束时间显示

parent 3a7d7979
package share.system.service.impl; package share.system.service.impl;
import cn.hutool.core.date.DateUnit;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
...@@ -23,7 +21,6 @@ import share.system.mapper.SStoreConsumerMapper; ...@@ -23,7 +21,6 @@ import share.system.mapper.SStoreConsumerMapper;
import share.system.service.*; import share.system.service.*;
import java.util.*; import java.util.*;
import java.util.function.Function;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
...@@ -135,6 +132,7 @@ public class SRoomServiceImpl extends ServiceImpl<SRoomMapper, SRoom> implements ...@@ -135,6 +132,7 @@ public class SRoomServiceImpl extends ServiceImpl<SRoomMapper, SRoom> implements
wrapper.eq(SOrder::getStoreId, store.getId()); wrapper.eq(SOrder::getStoreId, store.getId());
wrapper.in(SOrder::getRoomId, roomIds); wrapper.in(SOrder::getRoomId, roomIds);
wrapper.eq(SOrder::getStatus, OrderStatusEnum.INUSE.getCode()); wrapper.eq(SOrder::getStatus, OrderStatusEnum.INUSE.getCode());
wrapper.orderByAsc(SOrder::getEndDate);
List<SOrder> list = orderService.list(wrapper); List<SOrder> list = orderService.list(wrapper);
// 查询每一个房间最后一条预定订单下单时间 // 查询每一个房间最后一条预定订单下单时间
// Date now = DateUtil.date(); // Date now = DateUtil.date();
......
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