| | |
| | | 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 OrderHomeApplianceService orderHomeApplianceService; |
| | | @Autowired |
| | | private DistribService distribService; |
| | | |
| | | @Autowired |
| | | private JhyOrderMapper jhyOrderMapper; |
| | | |
| | | |
| | | public OrderReserveResDto getReserveTimeNew(OrderReserveResDto orderReserveResDto, String partnerId) { |
| | |
| | | traceIds = getTrace(orderInfoReq); |
| | | } |
| | | |
| | | distribService.inviteAddOrderScore(orderInfoReq.getCreateUserId(), orderId); |
| | | } |
| | | } |
| | | } catch (RestException e) { |
| | |
| | | |
| | | //更新账户余额 |
| | | accountService.updateMoneyByUserId(receiver, Convert.toBigDecimal(payMoney.toString())); |
| | | |
| | | distribService.inviteAddOrderScore(createUserId, orderId); |
| | | return Result.success(byUserId.getAccountName()); |
| | | } catch (Exception e) { |
| | | ExceptionUtils.err("支付失败", e); |
| | |
| | | } |
| | | 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); |
| | | } |
| | | } |