|
@@ -0,0 +1,92 @@
|
|
|
+package com.zhongzheng.controller.order;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+import java.util.Arrays;
|
|
|
+
|
|
|
+import com.zhongzheng.modules.top.goods.bo.TopOldOrderCheckLogAddBo;
|
|
|
+import com.zhongzheng.modules.top.goods.bo.TopOldOrderCheckLogEditBo;
|
|
|
+import com.zhongzheng.modules.top.goods.bo.TopOldOrderCheckLogQueryBo;
|
|
|
+import com.zhongzheng.modules.top.goods.service.ITopOldOrderCheckLogService;
|
|
|
+import com.zhongzheng.modules.top.goods.vo.TopOldOrderCheckLogVo;
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.PutMapping;
|
|
|
+import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+import com.zhongzheng.common.annotation.Log;
|
|
|
+import com.zhongzheng.common.core.controller.BaseController;
|
|
|
+import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
+import com.zhongzheng.common.enums.BusinessType;
|
|
|
+import com.zhongzheng.common.utils.poi.ExcelUtil;
|
|
|
+import com.zhongzheng.common.core.page.TableDataInfo;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 订单退款审核记录Controller
|
|
|
+ *
|
|
|
+ * @author ruoyi
|
|
|
+ * @date 2023-04-26
|
|
|
+ */
|
|
|
+@Api(value = "订单退款审核记录控制器", tags = {"订单退款审核记录管理"})
|
|
|
+@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
|
+@RestController
|
|
|
+@RequestMapping("/check/order/log")
|
|
|
+public class TopOldOrderCheckLogController extends BaseController {
|
|
|
+
|
|
|
+ private final ITopOldOrderCheckLogService iTopOldOrderCheckLogService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询订单退款审核记录列表
|
|
|
+ */
|
|
|
+ @ApiOperation("查询订单退款审核记录列表")
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:log:list')")
|
|
|
+ @GetMapping("/list")
|
|
|
+ public TableDataInfo<TopOldOrderCheckLogVo> list(TopOldOrderCheckLogQueryBo bo) {
|
|
|
+ startPage();
|
|
|
+ List<TopOldOrderCheckLogVo> list = iTopOldOrderCheckLogService.queryList(bo);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取订单退款审核记录详细信息
|
|
|
+ */
|
|
|
+ @ApiOperation("获取订单退款审核记录详细信息")
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:log:query')")
|
|
|
+ @GetMapping("/{id}")
|
|
|
+ public AjaxResult<TopOldOrderCheckLogVo> getInfo(@PathVariable("id" ) Long id) {
|
|
|
+ return AjaxResult.success(iTopOldOrderCheckLogService.queryById(id));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 新增订单退款审核记录
|
|
|
+ */
|
|
|
+ @ApiOperation("新增订单退款审核记录")
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:log:add')")
|
|
|
+ @Log(title = "订单退款审核记录", businessType = BusinessType.INSERT)
|
|
|
+ @PostMapping()
|
|
|
+ public AjaxResult<Void> add(@RequestBody TopOldOrderCheckLogAddBo bo) {
|
|
|
+ return toAjax(iTopOldOrderCheckLogService.insertByAddBo(bo) ? 1 : 0);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 修改订单退款审核记录
|
|
|
+ */
|
|
|
+ @ApiOperation("修改订单退款审核记录")
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:log:edit')")
|
|
|
+ @Log(title = "订单退款审核记录", businessType = BusinessType.UPDATE)
|
|
|
+ @PostMapping("/edit")
|
|
|
+ public AjaxResult<Void> edit(@RequestBody TopOldOrderCheckLogEditBo bo) {
|
|
|
+ return toAjax(iTopOldOrderCheckLogService.updateByEditBo(bo) ? 1 : 0);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|