| | |
| | | import com.xzx.gc.model.user.*; |
| | | import com.xzx.gc.order.dto.*; |
| | | import com.xzx.gc.order.mapper.*; |
| | | import com.xzx.gc.order.vo.InviteUserOrderVo; |
| | | import com.xzx.gc.service.AccountContext; |
| | | import com.xzx.gc.util.DoubleUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | @Autowired |
| | | private DistribService distribService; |
| | | |
| | | @Autowired |
| | | private JhyOrderMapper jhyOrderMapper; |
| | | |
| | | |
| | | public OrderReserveResDto getReserveTimeNew(OrderReserveResDto orderReserveResDto, String partnerId) { |
| | |
| | | } |
| | | orderDetailService.updateAllById(orderDetailInfo); |
| | | } |
| | | |
| | | public PageInfo<InviteUserOrderVo> inviteUserOrderDetail(InviteUserOrderDetailsDto detailsDto) { |
| | | UserInfo userInfo = userMapper.selectByPrimaryKey(detailsDto.getUserId()); |
| | | if (userInfo == null) { |
| | | throw new RestException("用户不存在"); |
| | | } |
| | | |
| | | detailsDto.setPhone(userInfo.getMobilePhone()); |
| | | List<InviteUserOrderVo> orderVos = new ArrayList<>(); |
| | | PageHelper.startPage(detailsDto.getPage(), detailsDto.getLimit()); |
| | | if (detailsDto.getType() == 1) { |
| | | orderVos = orderMapper.selectInviteUserOrderList(detailsDto); |
| | | } else { |
| | | orderVos = jhyOrderMapper.selectInviteUserOrderList(detailsDto); |
| | | } |
| | | return new PageInfo<>(orderVos); |
| | | } |
| | | } |