From e547993a3c78d0bd75f3fdef4a9878e180d73d36 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期一, 29 四月 2024 17:52:26 +0800
Subject: [PATCH] 合同考核结果定时任务、详情、查询、导出

---
 ycl-server/src/main/java/com/ycl/platform/controller/CheckResultController.java |   39 +++++++++++++++++++++++++++++++--------
 1 files changed, 31 insertions(+), 8 deletions(-)

diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/CheckResultController.java b/ycl-server/src/main/java/com/ycl/platform/controller/CheckResultController.java
index 78bbeec..d9f5f58 100644
--- a/ycl-server/src/main/java/com/ycl/platform/controller/CheckResultController.java
+++ b/ycl-server/src/main/java/com/ycl/platform/controller/CheckResultController.java
@@ -2,6 +2,8 @@
 
 import annotation.Log;
 import com.ycl.platform.domain.entity.CheckResult;
+import com.ycl.platform.domain.entity.ContractResultRecord;
+import com.ycl.platform.domain.vo.CheckResultVO;
 import com.ycl.platform.service.ICheckResultService;
 import com.ycl.system.AjaxResult;
 import com.ycl.system.controller.BaseController;
@@ -31,12 +33,23 @@
     /**
      * 鏌ヨ鑰冩牳缁撴灉鍒楄〃
      */
-    @PreAuthorize("@ss.hasPermi('system:result:list')")
-    @GetMapping("/list")
-    public TableDataInfo list(CheckResult checkResult)
+   @PreAuthorize("@ss.hasPermi('system:result:list')")
+    @PostMapping("/list")
+    public TableDataInfo list(@RequestBody CheckResultVO checkResult)
     {
         startPage();
-        List<CheckResult> list = checkResultService.selectCheckResultList(checkResult);
+        List<CheckResultVO> list = checkResultService.selectCheckResultList(checkResult);
+        return getDataTable(list);
+    }
+
+    /**
+     * 鏌ヨ鑰冩牳缁撴灉鍒楄〃
+     */
+   @PreAuthorize("@ss.hasPermi('system:result:query')")
+    @GetMapping("/record/list")
+    public TableDataInfo recordList(Long resultId)
+    {
+        List<ContractResultRecord> list = checkResultService.selectCheckResultRecordList(resultId);
         return getDataTable(list);
     }
 
@@ -46,17 +59,17 @@
     @PreAuthorize("@ss.hasPermi('system:result:export')")
     @Log(title = "鑰冩牳缁撴灉", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
-    public void export(HttpServletResponse response, CheckResult checkResult)
+    public void export(HttpServletResponse response, CheckResultVO checkResult)
     {
-        List<CheckResult> list = checkResultService.selectCheckResultList(checkResult);
-        ExcelUtil<CheckResult> util = new ExcelUtil<CheckResult>(CheckResult.class);
+        List<CheckResultVO> list = checkResultService.selectCheckResultList(checkResult);
+        ExcelUtil<CheckResultVO> util = new ExcelUtil<>(CheckResultVO.class);
         util.exportExcel(response, list, "鑰冩牳缁撴灉鏁版嵁");
     }
 
     /**
      * 鑾峰彇鑰冩牳缁撴灉璇︾粏淇℃伅
      */
-    @PreAuthorize("@ss.hasPermi('system:result:query')")
+   @PreAuthorize("@ss.hasPermi('system:result:query')")
     @GetMapping(value = "/{id}")
     public AjaxResult getInfo(@PathVariable("id") Long id)
     {
@@ -86,6 +99,16 @@
     }
 
     /**
+     * 鍙戝竷鑰冩牳缁撴灉
+     */
+    @PreAuthorize("@ss.hasPermi('system:result:publish')")
+    @PutMapping("/publish/{id}")
+    public AjaxResult publish(@PathVariable("id") Long id)
+    {
+        return toAjax(checkResultService.publish(id));
+    }
+
+    /**
      * 鍒犻櫎鑰冩牳缁撴灉
      */
     @PreAuthorize("@ss.hasPermi('system:result:remove')")

--
Gitblit v1.8.0