From 781b0f10e16c9664c8c99656aa58cb8027196d3d Mon Sep 17 00:00:00 2001
From: bluejay <253316343@qq.com>
Date: 星期六, 12 四月 2025 22:07:32 +0800
Subject: [PATCH] 零件统计表导出功能
---
aps-modules/aps-core/src/main/java/com/aps/core/controller/ApsPartRouteStatController.java | 28 ++++++++++++++++++++++++++--
1 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/controller/ApsPartRouteStatController.java b/aps-modules/aps-core/src/main/java/com/aps/core/controller/ApsPartRouteStatController.java
index 2540418..550ed09 100644
--- a/aps-modules/aps-core/src/main/java/com/aps/core/controller/ApsPartRouteStatController.java
+++ b/aps-modules/aps-core/src/main/java/com/aps/core/controller/ApsPartRouteStatController.java
@@ -80,7 +80,6 @@
{
return toAjax(apsPartRouteStatService.insertApsPartRouteStat(apsPartRouteStat));
}
-
/**
* 淇敼闆朵欢缁熻琛�
*/
@@ -91,7 +90,6 @@
{
return toAjax(apsPartRouteStatService.updateApsPartRouteStat(apsPartRouteStat));
}
-
/**
* 鍒犻櫎闆朵欢缁熻琛�
*/
@@ -102,4 +100,30 @@
{
return toAjax(apsPartRouteStatService.deleteApsPartRouteStatByIds(ids));
}
+
+ /**
+ * 1.鏍规嵁鐜版湁闆朵欢璁″垝 鍜屽伐鑹鸿矾绾裤�佽祫婧愭睜淇℃伅 鏇存柊缁熻琛�
+ * */
+ @PostMapping("/updateStat")
+ public AjaxResult updateStat()
+ {
+ apsPartRouteStatService.updatePartRoutPlanDate();
+ return success();
+ }
+
+ /***
+ * 2. 鏍规嵁鏃ユ湡銆佸伐鑹鸿矾绾裤�佽祫婧愭睜淇℃伅 鏌ヨ缁熻琛�
+ * */
+ @GetMapping("/query")
+ public AjaxResult query()
+ {
+ return apsPartRouteStatService.selectResourceDateStat();
+ }
+
+ @GetMapping("/exportExcel")
+ public void exportExcel(HttpServletResponse response)
+ {
+ apsPartRouteStatService.exportExcel(response);
+ }
+
}
--
Gitblit v1.9.3