| | |
| | | return AjaxResult.success(goodsExchangeOrder); |
| | | } |
| | | |
| | | |
| | | @PutMapping("/confirmReceipt/{id}") |
| | | @ApiOperation(value = "确认收货操作", tags = {"小程序-兑换记录"}) |
| | | public AjaxResult confirmReceipt(@PathVariable String id){ |
| | | TExchangeOrder tExchangeOrder = exchangeOrderService.getById(id); |
| | | if(tExchangeOrder.getStatus() == 3){ |
| | | return AjaxResult.error("不能重复确认收货"); |
| | | } |
| | | if(tExchangeOrder.getStatus() == 1){ |
| | | return AjaxResult.error("订单还未发货呢"); |
| | | } |
| | | if(tExchangeOrder.getStatus() == 4){ |
| | | return AjaxResult.error("订单已取消,不允许操作。"); |
| | | } |
| | | tExchangeOrder.setStatus(3); |
| | | exchangeOrderService.updateById(tExchangeOrder); |
| | | return AjaxResult.success(); |
| | | } |
| | | } |
| | | |