Commit e8d34915 by huluobin

update

parent 4b6e2409
......@@ -796,6 +796,22 @@ public class OrderManageServiceImpl extends ServiceImpl<OrderManageMapper, Order
OrderManage orderManage = this.getById(id);
ScheduleManage scheduleManage = scheduleManageMapper.selectById(orderManage.getScheduledId());
List<ScheduleServe> scheduleServeList = scheduleServeMapper.selectList(new LambdaQueryWrapper<ScheduleServe>().eq(ScheduleServe::getSchId, scheduleManage.getId()));
List<OrderServe> orderServeList = orderServeMapper.selectList(new LambdaQueryWrapper<OrderServe>().eq(OrderServe::getOrderId, orderManage.getId()));
orderServeList = orderServeList.stream()
.filter(orderServe -> scheduleServeList.stream()
.filter(scheduleServe -> scheduleServe.getMainServeId() == null)
.map(ScheduleServe::getServeId)
.collect(Collectors.toList())
.contains(orderServe.getServeId()))
.collect(Collectors.toList());
orderServeList.forEach(orderServe -> {
OrderComment orderComment = orderCommentMapper.selectOne(new LambdaQueryWrapper<OrderComment>().eq(OrderComment::getOrderId, id)
.eq(OrderComment::getOrderServeId, orderServe.getId()));
});
orderManage.setListOrderServer(orderServeList);
return orderManage;
}
......
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