From ea3e40330575519d9a4c7dbe4f6d63e4a22ea861 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期二, 02 四月 2024 09:41:52 +0800
Subject: [PATCH] Revert "Revert "新考核""

---
 ycl-server/src/main/java/com/ycl/platform/controller/CheckScoreController.java |   98 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 98 insertions(+), 0 deletions(-)

diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/CheckScoreController.java b/ycl-server/src/main/java/com/ycl/platform/controller/CheckScoreController.java
new file mode 100644
index 0000000..a9d5283
--- /dev/null
+++ b/ycl-server/src/main/java/com/ycl/platform/controller/CheckScoreController.java
@@ -0,0 +1,98 @@
+package com.ycl.platform.controller;
+
+import annotation.Log;
+import com.ycl.platform.domain.entity.CheckScore;
+import com.ycl.platform.service.ICheckScoreService;
+import com.ycl.system.AjaxResult;
+import com.ycl.system.controller.BaseController;
+import com.ycl.system.page.TableDataInfo;
+import com.ycl.utils.poi.ExcelUtil;
+import enumeration.BusinessType;
+import jakarta.servlet.http.HttpServletResponse;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+/**
+ * 鑰冩牳绉垎鏄庣粏Controller
+ *
+ * @author ruoyi
+ * @date 2024-04-01
+ */
+@RestController
+@RequestMapping("/check/score")
+public class CheckScoreController extends BaseController
+{
+    @Autowired
+    private ICheckScoreService checkScoreService;
+
+    /**
+     * 鏌ヨ鑰冩牳绉垎鏄庣粏鍒楄〃
+     */
+    @PreAuthorize("@ss.hasPermi('system:score:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(CheckScore checkScore)
+    {
+        startPage();
+        List<CheckScore> list = checkScoreService.selectCheckScoreList(checkScore);
+        return getDataTable(list);
+    }
+
+    /**
+     * 瀵煎嚭鑰冩牳绉垎鏄庣粏鍒楄〃
+     */
+    @PreAuthorize("@ss.hasPermi('system:score:export')")
+    @Log(title = "鑰冩牳绉垎鏄庣粏", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, CheckScore checkScore)
+    {
+        List<CheckScore> list = checkScoreService.selectCheckScoreList(checkScore);
+        ExcelUtil<CheckScore> util = new ExcelUtil<CheckScore>(CheckScore.class);
+        util.exportExcel(response, list, "鑰冩牳绉垎鏄庣粏鏁版嵁");
+    }
+
+    /**
+     * 鑾峰彇鑰冩牳绉垎鏄庣粏璇︾粏淇℃伅
+     */
+    @PreAuthorize("@ss.hasPermi('system:score:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(checkScoreService.selectCheckScoreById(id));
+    }
+
+    /**
+     * 鏂板鑰冩牳绉垎鏄庣粏
+     */
+    @PreAuthorize("@ss.hasPermi('system:score:add')")
+    @Log(title = "鑰冩牳绉垎鏄庣粏", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody CheckScore checkScore)
+    {
+        return toAjax(checkScoreService.insertCheckScore(checkScore));
+    }
+
+    /**
+     * 淇敼鑰冩牳绉垎鏄庣粏
+     */
+    @PreAuthorize("@ss.hasPermi('system:score:edit')")
+    @Log(title = "鑰冩牳绉垎鏄庣粏", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody CheckScore checkScore)
+    {
+        return toAjax(checkScoreService.updateCheckScore(checkScore));
+    }
+
+    /**
+     * 鍒犻櫎鑰冩牳绉垎鏄庣粏
+     */
+    @PreAuthorize("@ss.hasPermi('system:score:remove')")
+    @Log(title = "鑰冩牳绉垎鏄庣粏", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(checkScoreService.deleteCheckScoreByIds(ids));
+    }
+}

--
Gitblit v1.8.0