| | |
| | | import com.ruoyi.order.model.RefundPass; |
| | | import com.ruoyi.order.service.OrderService; |
| | | import com.ruoyi.order.service.RefundPassService; |
| | | import com.ruoyi.order.vo.ApplyRefundPass; |
| | | import com.ruoyi.order.vo.OrderRefundPassList; |
| | | import com.ruoyi.order.vo.OrderRefundPassListVo; |
| | | import com.ruoyi.order.vo.RefundPassInfo; |
| | | import com.ruoyi.order.vo.*; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PutMapping("/deliverGoodsRefundPass/{id}/{code}") |
| | | @PostMapping("/deliverGoodsRefundPass") |
| | | @ApiOperation(value = "售后已发货操作", tags = {"我的订单-个人中心-小程序"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "售后数据id", required = true, dataType = "long"), |
| | | @ApiImplicitParam(name = "code", value = "快递单号", required = true, dataType = "string"), |
| | | }) |
| | | public R deliverGoodsRefundPass(@PathVariable("id") Long id, @PathVariable("code") String code){ |
| | | RefundPass refundPass = refundPassService.getById(id); |
| | | public R deliverGoodsRefundPass(@RequestBody DeliverGoodsRefundPass pass){ |
| | | RefundPass refundPass = refundPassService.getById(pass.getId()); |
| | | if(null == refundPass){ |
| | | return R.fail(); |
| | | } |
| | |
| | | return R.fail("操作失败"); |
| | | } |
| | | refundPass.setStatus(5); |
| | | refundPass.setCode(code); |
| | | refundPass.setCode(pass.getCode()); |
| | | refundPassService.updateById(refundPass); |
| | | return R.ok(); |
| | | } |
| | |
| | | public R<PageInfo<OrderRefundPassList>> getOrderRefundPassList(OrderRefundPassListVo refundPassListVo){ |
| | | return R.ok(refundPassService.getOrderRefundPassList(refundPassListVo)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/authPassStatus/{id}/{status}") |
| | | @PostMapping("/authPassStatus") |
| | | @ApiOperation(value = "审核售后", tags = {"管理后台-售后管理", "门店后台-售后管理"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "售后数据id", required = true, dataType = "long"), |
| | | @ApiImplicitParam(name = "status", value = "审核状态(2=同意,3=拒绝)", required = true, dataType = "int"), |
| | | @ApiImplicitParam(name = "passRemark", value = "审核备注", required = false, dataType = "string"), |
| | | }) |
| | | public R authPassStatus(@PathVariable("id") Long id, @PathVariable("status") Integer status, @RequestParam("passRemark") String passRemark){ |
| | | return refundPassService.authPassStatus(id, status, passRemark); |
| | | public R authPassStatus(@RequestBody AuthPassStatus authPassStatus){ |
| | | return refundPassService.authPassStatus(authPassStatus.getId(), authPassStatus.getStatus(), authPassStatus.getPassRemark()); |
| | | } |
| | | |
| | | |