phpcjl
2024-12-10 d0e3ffb8fd33304271797538c33c9bb9be914cd6
ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/RefundPassController.java
@@ -94,12 +94,13 @@
   
   
   @ResponseBody
   @PutMapping("/deliverGoodsRefundPass/{id}")
   @PutMapping("/deliverGoodsRefundPass/{id}/{code}")
   @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){
   public R deliverGoodsRefundPass(@PathVariable("id") Long id, @PathVariable("code") String code){
      RefundPass refundPass = refundPassService.getById(id);
      if(null == refundPass){
         return R.fail();
@@ -113,6 +114,7 @@
         return R.fail("操作失败");
      }
      refundPass.setStatus(5);
      refundPass.setCode(code);
      refundPassService.updateById(refundPass);
      return R.ok();
   }