From 5da02311d99ca78c0fc18647c3a8348f56fe9330 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 05 九月 2024 21:55:13 +0800
Subject: [PATCH] 考核结果导出优化
---
ycl-server/src/main/java/com/ycl/platform/service/ICheckScoreService.java | 97 +++++++++++++++++++++++++++++++++---------------
1 files changed, 66 insertions(+), 31 deletions(-)
diff --git a/ycl-server/src/main/java/com/ycl/platform/service/ICheckScoreService.java b/ycl-server/src/main/java/com/ycl/platform/service/ICheckScoreService.java
index 3d48876..6754ff1 100644
--- a/ycl-server/src/main/java/com/ycl/platform/service/ICheckScoreService.java
+++ b/ycl-server/src/main/java/com/ycl/platform/service/ICheckScoreService.java
@@ -1,62 +1,97 @@
package com.ycl.platform.service;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.ycl.platform.domain.dto.CheckResultExportDTO;
+import com.ycl.platform.domain.dto.CheckScoreDTO;
+import com.ycl.platform.domain.dto.CheckScoreIndexDTO;
import com.ycl.platform.domain.entity.CheckScore;
+import com.ycl.platform.domain.vo.CheckScoreDetailVO;
+import jakarta.servlet.http.HttpServletResponse;
+import java.io.IOException;
import java.util.List;
+import java.util.Map;
/**
* 鑰冩牳绉垎鏄庣粏Service鎺ュ彛
- *
+ *
* @author ruoyi
- * @date 2024-04-01
+ * @date 2024-04-22
*/
-public interface ICheckScoreService
+public interface ICheckScoreService extends IService<CheckScore>
{
/**
* 鏌ヨ鑰冩牳绉垎鏄庣粏
- *
- * @param id 鑰冩牳绉垎鏄庣粏涓婚敭
+ *
+ * @param
* @return 鑰冩牳绉垎鏄庣粏
*/
- public CheckScore selectCheckScoreById(Long id);
+ public CheckScoreDetailVO selectCheckScoreById(CheckScoreIndexDTO checkScoreIndexDTO);
/**
* 鏌ヨ鑰冩牳绉垎鏄庣粏鍒楄〃
- *
+ *
* @param checkScore 鑰冩牳绉垎鏄庣粏
* @return 鑰冩牳绉垎鏄庣粏闆嗗悎
*/
- public List<CheckScore> selectCheckScoreList(CheckScore checkScore);
+ public Map<Long, List<CheckScore>> selectCheckScoreList(CheckScore checkScore);
/**
- * 鏂板鑰冩牳绉垎鏄庣粏
- *
- * @param checkScore 鑰冩牳绉垎鏄庣粏
- * @return 缁撴灉
+ * 鏌ヨ鑰冩牳绉垎鎶樼嚎鍥炬暟鎹�
+ *
+ * @param checkScore 鑰冩牳绉垎鍙傛暟
+ * @return 鑰冩牳绉垎鎶樼嚎鍥�
*/
- public int insertCheckScore(CheckScore checkScore);
+ Map<Long, List<CheckScore>> selectCheckScoreChart(CheckScore checkScore);
+
+
+ int publishCheckScore(CheckScoreDTO checkScoreDTO);
+
+ List<CheckScore> page(CheckScore checkScore);
+
+ void exportIndex(HttpServletResponse response, CheckResultExportDTO exportDTO) throws IOException;
/**
- * 淇敼鑰冩牳绉垎鏄庣粏
- *
- * @param checkScore 鑰冩牳绉垎鏄庣粏
- * @return 缁撴灉
+ * 棣栭〉鑰冩牳棰勮
+ * @return 鏁版嵁
*/
- public int updateCheckScore(CheckScore checkScore);
+ List<Map<String, Object>> home();
+
/**
- * 鎵归噺鍒犻櫎鑰冩牳绉垎鏄庣粏
- *
- * @param ids 闇�瑕佸垹闄ょ殑鑰冩牳绉垎鏄庣粏涓婚敭闆嗗悎
- * @return 缁撴灉
+ * 棣栭〉鏍哥畻
+ * @return 鏍哥畻
*/
- public int deleteCheckScoreByIds(Long[] ids);
-
- /**
- * 鍒犻櫎鑰冩牳绉垎鏄庣粏淇℃伅
- *
- * @param id 鑰冩牳绉垎鏄庣粏涓婚敭
- * @return 缁撴灉
- */
- public int deleteCheckScoreById(Long id);
+ List<Map<String, Object>> calculate(String category);
+// /**
+// * 鏂板鑰冩牳绉垎鏄庣粏
+// *
+// * @param checkScore 鑰冩牳绉垎鏄庣粏
+// * @return 缁撴灉
+// */
+// public int insertCheckScore(CheckScore checkScore);
+//
+// /**
+// * 淇敼鑰冩牳绉垎鏄庣粏
+// *
+// * @param checkScore 鑰冩牳绉垎鏄庣粏
+// * @return 缁撴灉
+// */
+// public int updateCheckScore(CheckScore checkScore);
+//
+// /**
+// * 鎵归噺鍒犻櫎鑰冩牳绉垎鏄庣粏
+// *
+// * @param ids 闇�瑕佸垹闄ょ殑鑰冩牳绉垎鏄庣粏涓婚敭闆嗗悎
+// * @return 缁撴灉
+// */
+// public int deleteCheckScoreByIds(Long[] ids);
+//
+// /**
+// * 鍒犻櫎鑰冩牳绉垎鏄庣粏淇℃伅
+// *
+// * @param id 鑰冩牳绉垎鏄庣粏涓婚敭
+// * @return 缁撴灉
+// */
+// public int deleteCheckScoreById(Long id);
}
--
Gitblit v1.8.0