From b504b19b0881a7c1bd9e280ba41e993956b7f94e Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期五, 30 一月 2026 16:41:56 +0800
Subject: [PATCH] feat: 进销存生产分析大屏
---
src/main/java/com/ruoyi/home/controller/HomeController.java | 70 +++++++++++++++++++++++++++++++++++
1 files changed, 70 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/ruoyi/home/controller/HomeController.java b/src/main/java/com/ruoyi/home/controller/HomeController.java
index 82dc3b3..e4d29f7 100644
--- a/src/main/java/com/ruoyi/home/controller/HomeController.java
+++ b/src/main/java/com/ruoyi/home/controller/HomeController.java
@@ -132,6 +132,76 @@
return AjaxResult.success(list);
}
+ @GetMapping("/incomeExpenseAnalysis")
+ @ApiOperation("鏀敹瀵规瘮鍒嗘瀽")
+ public AjaxResult incomeExpenseAnalysis(@RequestParam(value = "type", defaultValue = "1") Integer type) {
+ List<Map<String, Object>> result = homeService.incomeExpenseAnalysis(type);
+ return AjaxResult.success(result);
+ }
+
+ @GetMapping("/profitTrendAnalysis")
+ @ApiOperation("鍒╂鼎瓒嬪娍鍒嗘瀽")
+ public AjaxResult profitTrendAnalysis(){
+ List<MapDto> list = homeService.profitTrendAnalysis();
+ return AjaxResult.success(list);
+ }
+
+ @GetMapping("/expenseCompositionAnalysis")
+ @ApiOperation("鏋勬垚鍒嗘瀽")
+ public AjaxResult expenseCompositionAnalysis(@RequestParam(value = "type", defaultValue = "1") Integer type) {
+ List<MapDto> list = homeService.expenseCompositionAnalysis(type);
+ return AjaxResult.success(list);
+ }
+
+ @GetMapping("/monthlyIncome")
+ @ApiOperation("鏈堝害鏀跺叆")
+ public AjaxResult monthlyIncome(){
+ MonthlyIncomeDto dto = homeService.monthlyIncome();
+ return AjaxResult.success(dto);
+ }
+
+ @GetMapping("/monthlyExpenditure")
+ @ApiOperation("鏈堝害鏀嚭")
+ public AjaxResult monthlyExpenditure(){
+ MonthlyExpenditureDto dto = homeService.monthlyExpenditure();
+ return AjaxResult.success(dto);
+ }
+
+
+ @GetMapping("/inputOutputAnalysis")
+ @ApiOperation("鎶曞叆浜у嚭鍒嗘瀽")
+ public AjaxResult inputOutputAnalysis(@RequestParam(value = "type", defaultValue = "1") Integer type){
+ List<InputOutputAnalysisDto> list = homeService.inputOutputAnalysis(type);
+ return AjaxResult.success(list);
+ }
+
+ @GetMapping("/processOutputAnalysis")
+ @ApiOperation("宸ュ簭浜у嚭鍒嗘瀽")
+ public AjaxResult processOutputAnalysis(@RequestParam(value = "type", defaultValue = "1") Integer type){
+ List<MapDto> list = homeService.processOutputAnalysis(type);
+ return AjaxResult.success(list);
+ }
+
+ @GetMapping("/workOrderEfficiencyAnalysis")
+ @ApiOperation("宸ュ崟鎵ц鏁堢巼鍒嗘瀽")
+ public AjaxResult workOrderEfficiencyAnalysis(@RequestParam(value = "type", defaultValue = "1") Integer type){
+ List<WorkOrderEfficiencyDto> list = homeService.workOrderEfficiencyAnalysis(type);
+ return AjaxResult.success(list);
+ }
+
+ @GetMapping("/productionAccountingAnalysis")
+ @ApiOperation("鐢熶骇鏍哥畻鍒嗘瀽")
+ public AjaxResult productionAccountingAnalysis(@RequestParam(value = "type", defaultValue = "1") Integer type){
+ List<MapDto> list = homeService.productionAccountingAnalysis(type);
+ return AjaxResult.success(list);
+ }
+
+ @GetMapping("/orderCount")
+ @ApiOperation("璁㈠崟鏁�")
+ public AjaxResult orderCount(){
+ return AjaxResult.success(homeService.orderCount());
+ }
+
/********************************************************钀ラ攢閲囪喘绫�**************************************************/
@GetMapping("/business")
@Log(title = "閿�鍞�-閲囪喘-搴撳瓨鏁版嵁", businessType = BusinessType.OTHER)
--
Gitblit v1.9.3