|
@@ -2,7 +2,9 @@ package com.leromro.core.controller;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
+import com.leromro.core.domain.MainOrders;
|
|
|
import com.leromro.core.domain.vo.OrderRefundVO;
|
|
|
+import com.leromro.core.domain.vo.WebOrderRefundVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import com.leromro.common.core.domain.R;
|
|
@@ -30,7 +32,7 @@ import com.leromro.common.core.page.TableDataInfo;
|
|
|
* @date 2025-04-21
|
|
|
*/
|
|
|
@RestController
|
|
|
-@Api(tags = "订单取消/退款")
|
|
|
+@Api(tags = "订单取消,退款")
|
|
|
@RequestMapping("/core/users/refund")
|
|
|
public class OrderRefundController extends BaseController
|
|
|
{
|
|
@@ -40,7 +42,7 @@ public class OrderRefundController extends BaseController
|
|
|
/**
|
|
|
* 查询订单取消/退款列表
|
|
|
*/
|
|
|
- @ApiOperation("查询 订单取消/退款列表")
|
|
|
+ @ApiOperation(value ="查询 ", notes = "订单取消/退款列表")
|
|
|
/*@PreAuthorize("@ss.hasPermi('core:refund:list')")*/
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo<OrderRefund> list(OrderRefund orderRefund)
|
|
@@ -49,6 +51,13 @@ public class OrderRefundController extends BaseController
|
|
|
List<OrderRefund> list = lOrderRefundService.selectLOrderRefundList(orderRefund);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
+ @ApiOperation(value ="web端 退款列表", notes = "传入分页参数")
|
|
|
+ @GetMapping("web/list")
|
|
|
+ public TableDataInfo<WebOrderRefundVO> refundList(MainOrders mainOrders){
|
|
|
+ startPage();;
|
|
|
+ List<WebOrderRefundVO> list = lOrderRefundService.selectWebOrderRefundList(mainOrders);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -68,7 +77,7 @@ public class OrderRefundController extends BaseController
|
|
|
/**
|
|
|
* 获取订单取消/退款详细信息
|
|
|
*/
|
|
|
- @ApiOperation("获取 订单取消/退款详细信息")
|
|
|
+ @ApiOperation(value =" web 获取 订单取消/退款详细信息", notes = "传入路径参数,退款单号id")
|
|
|
/*@PreAuthorize("@ss.hasPermi('core:refund:query')")*/
|
|
|
@GetMapping(value = "/refundInfo/{orderRefundId}")
|
|
|
public R<OrderRefund> getInfo(@PathVariable("orderRefundId") Long orderRefundId)
|
|
@@ -79,7 +88,7 @@ public class OrderRefundController extends BaseController
|
|
|
/**
|
|
|
* 获取订单取消/退款详细信息
|
|
|
*/
|
|
|
- @ApiOperation("订单取消/退款信息 回显 ")
|
|
|
+ @ApiOperation(value =" 小程序端 订单取消/退款信息 回显 ", notes = "传入主订单id")
|
|
|
/*@PreAuthorize("@ss.hasPermi('core:refund:query')")*/
|
|
|
@GetMapping(value = "/orderInfo/{mainOrderId}")
|
|
|
public R<OrderRefundVO> getRefundIdInfo(@PathVariable("mainOrderId") Long mainOrderId)
|
|
@@ -90,9 +99,9 @@ public class OrderRefundController extends BaseController
|
|
|
/**
|
|
|
* 新增订单取消/退款
|
|
|
*/
|
|
|
- @ApiOperation("新增订单取消/退款")
|
|
|
+ @ApiOperation(value ="小程序端 新增订单取消/退款 传入主订单id,退款图片以及原因")
|
|
|
/* @PreAuthorize("@ss.hasPermi('core:refund:add')")*/
|
|
|
- @Log(title = "订单取消/退款", businessType = BusinessType.INSERT)
|
|
|
+ /* @Log(title = "新增订单取消/退款 ", businessType = BusinessType.INSERT)*/
|
|
|
@PostMapping("/newOrderRefund")
|
|
|
public AjaxResult add(@RequestBody OrderRefund orderRefund)
|
|
|
{
|
|
@@ -102,9 +111,9 @@ public class OrderRefundController extends BaseController
|
|
|
/**
|
|
|
* 修改订单取消/退款
|
|
|
*/
|
|
|
- @ApiOperation("修改订单取消/退款")
|
|
|
+ @ApiOperation(value ="修改订单取消/退款", notes = "传入分页参数")
|
|
|
/* @PreAuthorize("@ss.hasPermi('core:refund:edit')")*/
|
|
|
- @Log(title = "订单取消/退款", businessType = BusinessType.UPDATE)
|
|
|
+ /*@Log(title = "修改订单取消/退款", businessType = BusinessType.UPDATE)*/
|
|
|
@PutMapping("/updateRefund")
|
|
|
public AjaxResult edit(@RequestBody OrderRefund orderRefund)
|
|
|
{
|
|
@@ -114,9 +123,9 @@ public class OrderRefundController extends BaseController
|
|
|
/**
|
|
|
* 删除订单取消/退款
|
|
|
*/
|
|
|
- @ApiOperation("删除订单取消/退款")
|
|
|
+ @ApiOperation( value ="删除订单取消/退款", notes = "传入id数组,批量删除")
|
|
|
/* @PreAuthorize("@ss.hasPermi('core:refund:remove')")*/
|
|
|
- @Log(title = "订单取消/退款", businessType = BusinessType.DELETE)
|
|
|
+ /* @Log(title = "删除订单取消/退款", businessType = BusinessType.DELETE)*/
|
|
|
@DeleteMapping("/{orderRefundIds}")
|
|
|
public R<Integer> remove(@PathVariable Long[] orderRefundIds)
|
|
|
{
|
|
@@ -125,9 +134,9 @@ public class OrderRefundController extends BaseController
|
|
|
/**
|
|
|
* 审批通过订单退款 以及后续流程。
|
|
|
*/
|
|
|
- @ApiOperation(value = "web端 订单退款审批接口", notes = "传入mainOrderId,orderRefundId 状态")
|
|
|
+ @ApiOperation(value = "web端 订单退款审批接口传入mainOrderId orderRefundId refundAmount 状态", notes = "传入mainOrderId orderRefundId refundAmount 还有状态")
|
|
|
/* @PreAuthorize("@ss.hasPermi('core:refund:remove')")*/
|
|
|
- @Log(title = "订单退款 审批", businessType = BusinessType.UPDATE)
|
|
|
+ /* @Log(title = "订单退款 审批", businessType = BusinessType.UPDATE)*/
|
|
|
@PostMapping("/checkOrderRefund")
|
|
|
public AjaxResult checkOrderRefund(@RequestBody OrderRefund orderRefund)
|
|
|
{
|