From a1c49eabb69bae2aa33647b0327d867ea4a40b2b Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期一, 21 八月 2023 08:31:40 +0800
Subject: [PATCH] 1.0.2 上线包
---
server/src/main/java/doumeemes/api/ext/StatisticsController.java | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 51 insertions(+), 8 deletions(-)
diff --git a/server/src/main/java/doumeemes/api/ext/StatisticsController.java b/server/src/main/java/doumeemes/api/ext/StatisticsController.java
index b12b15a..4a9c7a8 100644
--- a/server/src/main/java/doumeemes/api/ext/StatisticsController.java
+++ b/server/src/main/java/doumeemes/api/ext/StatisticsController.java
@@ -2,14 +2,18 @@
import doumeemes.api.BaseController;
import doumeemes.core.model.ApiResponse;
-import doumeemes.dao.business.dto.statistics.StatisticsPlanDataModel;
-import doumeemes.dao.business.dto.statistics.Unqualified7DayModel;
-import doumeemes.dao.business.dto.statistics.UserProduceTopModel;
+import doumeemes.core.model.PageData;
+import doumeemes.core.model.PageWrap;
+import doumeemes.dao.business.dto.statistics.*;
+import doumeemes.dao.ext.dto.*;
+import doumeemes.dao.ext.vo.DeviceCheckExtListVO;
+import doumeemes.dao.ext.vo.PlansExtListVO;
import doumeemes.service.ext.StatisticsService;
import doumeemes.service.ext.WorkorderExtService;
import doumeemes.service.ext.WorkorderRecordExtService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -28,21 +32,60 @@
@Autowired
private StatisticsService statisticsService;
- @ApiOperation("鏁版嵁缁熻锛屾墽琛屼腑銆佸欢鏈熻鍒掓暟銆佷粖鏃ョ敓浜т汉鏁般�佷粖鏃ョ敓浜ц澶囨暟銆佷粖鏃ヤ笉鑹搧")
+ @ApiOperation("鏁版嵁缁熻-鎴愬搧璁″垝锛屾墽琛屼腑銆佸欢鏈熻鍒掓暟銆佷粖鏃ョ敓浜т汉鏁般�佷粖鏃ョ敓浜ц澶囨暟銆佷粖鏃ヤ笉鑹搧")
@GetMapping("/getPlanData/{companyId}/{departId}")
public ApiResponse<StatisticsPlanDataModel> getPlansData(@PathVariable Integer companyId, @PathVariable Integer departId) {
return ApiResponse.success(statisticsService.getPlansData(companyId,departId));
}
+ @ApiOperation("鏁版嵁缁熻-宸ュ簭璁″垝锛屾墽琛屼腑銆佸欢鏈熻鍒掓暟銆佷粖鏃ョ敓浜т汉鏁般�佷粖鏃ョ敓浜ц澶囨暟銆佷粖鏃ヤ笉鑹搧")
+ @GetMapping("/getProcedurePlanData/{companyId}/{departId}")
+ public ApiResponse<StatisticsPlanDataModel> getProcedurePlanData(@PathVariable Integer companyId, @PathVariable Integer departId,@RequestParam Integer procedureId) {
+ return ApiResponse.success(statisticsService.getProcedurePlanData(companyId,departId,procedureId));
+ }
@ApiOperation("鍛樺伐浜у搧缁熻TOP10")
@GetMapping("/userProduceTop/{companyId}/{departId}")
- public ApiResponse<List<UserProduceTopModel>> getUserProducceTop(@PathVariable Integer companyId, @PathVariable Integer departId) {
- return ApiResponse.success(statisticsService.getUserProduceTopData(companyId,departId));
+ public ApiResponse<List<UserProduceTopModel>> getUserProducceTop(@PathVariable Integer companyId, @PathVariable Integer departId,@RequestParam Integer procedureId) {
+ return ApiResponse.success(statisticsService.getUserProduceTopData(companyId,departId,procedureId));
}
@ApiOperation("杩�7澶╀笉鑹搧鍒嗗竷-涓嶈壇鍝佹暟閲忕粺璁�")
@GetMapping("/getUnqualified7DayData/{companyId}/{departId}")
- public ApiResponse<List<Unqualified7DayModel>> getUnqualified7DayData(@PathVariable Integer companyId, @PathVariable Integer departId) {
- return ApiResponse.success(statisticsService.getUnqualified7DayData(companyId,departId));
+ public ApiResponse<List<Unqualified7DayModel>> getUnqualified7DayData(@PathVariable Integer companyId, @PathVariable Integer departId,@RequestParam Integer procedureId) {
+ return ApiResponse.success(statisticsService.getUnqualified7DayData(companyId,departId,procedureId));
+ }
+ @ApiOperation("杩�7澶╀笉鑹搧鍒嗗竷-涓嶈壇鍝佹暟閲�-鎸変笉鑹」缁熻")
+ @GetMapping("/getUnqualifiedCateData/{companyId}/{departId}")
+ public ApiResponse<List<UnqualifiedCateModel>> getUnqualifiedCateData(@PathVariable Integer companyId, @PathVariable Integer departId,@RequestParam Integer procedureId) {
+ return ApiResponse.success(statisticsService.getUnqualifiedCateData(companyId,departId,procedureId));
+ }
+ @ApiOperation("鎶ュ伐鏃ュ織鍒嗛〉鏌ヨ")
+ @PostMapping("/getRecordLogPage/{companyId}/{departId}")
+ public ApiResponse<PageData<RecordLogModel>> getRecordLogPage(@PathVariable Integer companyId, @PathVariable Integer departId
+ , @RequestBody PageWrap<QueryWorkorderRecordExtDTO> pageWrap) {
+ return ApiResponse.success(statisticsService.getRecordLogPage(companyId,departId,pageWrap));
+ }
+
+ @ApiOperation("宸℃璁板綍鍒嗛〉鏌ヨ")
+ @PostMapping("/getDeviceCheckPage/{companyId}/{departId}")
+ public ApiResponse<PageData<DeviceCheckExtListVO>> getDeviceCheckPage (@PathVariable Integer companyId, @PathVariable Integer departId
+ ,@RequestBody PageWrap<QueryDeviceCheckExtDTO> pageWrap) {
+ return ApiResponse.success(statisticsService.getDeviceCheckPage(companyId,departId,pageWrap));
+ }
+
+ @ApiOperation("宸ュ簭璁″垝杩涘害鏌ヨ")
+ @GetMapping("/getProcedurePlansList/{companyId}/{departId}")
+ public ApiResponse<List<ProcedurePlansPageModel>> getProcedurePlansList (@PathVariable Integer companyId, @PathVariable Integer departId,@RequestParam Integer procedureId) {
+ return ApiResponse.success(statisticsService.getProcedurePlansPage(companyId,departId,procedureId));
+ }
+ @ApiOperation("鎴愬搧璁″垝杩涘害鏌ヨ")
+ @GetMapping("/getWorkPlansList/{companyId}/{departId}")
+ public ApiResponse<List<WorkPlansPageModel>> getWorkPlansList (@PathVariable Integer companyId, @PathVariable Integer departId ) {
+ return ApiResponse.success(statisticsService.getWorkPlansList(companyId,departId));
+ }
+ @ApiOperation("鎴愬搧璁″垝-宸ュ簭杩涘害鏌ヨ")
+ @GetMapping("/getProcedureProcessList/{companyId}/{departId}")
+ public ApiResponse<List<ProcedureProcessModel>> getProcedureProcessList (@PathVariable Integer companyId, @PathVariable Integer departId ) {
+ return ApiResponse.success(statisticsService.getProcedureProcessList(companyId,departId));
}
--
Gitblit v1.9.3