| | |
| | | return R.tokenError("登录失效"); |
| | | } |
| | | TOrder byId = orderService.getById(id); |
| | | byId.setUserId(null); |
| | | byId.setState(3); |
| | | byId.setCompleteTime(new Date()); |
| | | return R.ok(orderService.updateById(byId)); |
| | |
| | | return R.tokenError("登录失效"); |
| | | } |
| | | TOrder byId = orderService.getById(id); |
| | | byId.setUserId(null); |
| | | byId.setState(3); |
| | | byId.setCompleteTime(new Date()); |
| | | return R.ok(orderService.updateById(byId)); |
| | |
| | | if (!Constants.ONE.equals(order.getState())) { |
| | | throw new GlobalException("订单已发货,无法修改收货地址!"); |
| | | } |
| | | order.setUserId(null); |
| | | order.setConsigneeName(recipient.getRecipient()); |
| | | order.setConsigneePhone(recipient.getRecipientPhone()); |
| | | order.setConsigneeAddress(recipient.getProvince()+recipient.getCity()+recipient.getAddress()); |
| | |
| | | if (!Constants.ONE.equals(order.getState())) { |
| | | throw new GlobalException("订单已发货,无法修改收货地址!"); |
| | | } |
| | | order.setUserId(null); |
| | | order.setConsigneeName(recipient.getRecipient()); |
| | | order.setConsigneePhone(recipient.getRecipientPhone()); |
| | | order.setConsigneeAddress(recipient.getProvince()+recipient.getCity()+recipient.getAddress()); |
| | |
| | | @ApiOperationSupport(order = 12) |
| | | public R getGoodsInfo1(@RequestBody OrderDTO dto) { |
| | | TOrder byId = orderService.getById(dto.getId()); |
| | | byId.setUserId(null); |
| | | byId.setState(2); |
| | | byId.setExpress(dto.getExpress()); |
| | | byId.setExpressNumber(dto.getExpressNumber()); |