From 8c8ff31cdca25f579d3c1f688f46c877bf28aaa1 Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期二, 26 五月 2026 16:21:46 +0800
Subject: [PATCH] feat(approve): 重构审批流程配置功能

---
 src/main/java/com/ruoyi/production/controller/ProductionProductMainController.java |   59 +++++++++++++++++++++++++++++++++++------------------------
 1 files changed, 35 insertions(+), 24 deletions(-)

diff --git a/src/main/java/com/ruoyi/production/controller/ProductionProductMainController.java b/src/main/java/com/ruoyi/production/controller/ProductionProductMainController.java
index e4ef6a4..dcbda66 100644
--- a/src/main/java/com/ruoyi/production/controller/ProductionProductMainController.java
+++ b/src/main/java/com/ruoyi/production/controller/ProductionProductMainController.java
@@ -3,7 +3,9 @@
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.ruoyi.common.utils.poi.ExcelUtil;
 import com.ruoyi.framework.web.domain.R;
+import com.ruoyi.production.dto.ProductionProductMainDetailExportDto;
 import com.ruoyi.production.dto.ProductionProductMainDto;
+import com.ruoyi.production.dto.ProductionProductMainSummaryExportDto;
 import com.ruoyi.production.dto.ProductionReportDailySummaryDto;
 import com.ruoyi.production.dto.ProductionReportStateDto;
 import com.ruoyi.production.pojo.ProductionProductMain;
@@ -29,11 +31,12 @@
 
     /**
      * 鎶ュ伐鏌ヨ
+     *
      * @param page
      * @param productionProductMainDto
      * @return
      */
-    @ApiOperation("鎶ュ伐鍙拌处姹囨�诲垎椤�(褰撳墠鐧诲綍浜�)")
+    @ApiOperation("鎶ュ伐鍙拌处姹囨�诲垎椤�")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "current", value = "椤电爜", dataType = "long", paramType = "query"),
             @ApiImplicitParam(name = "size", value = "姣忛〉鏁伴噺", dataType = "long", paramType = "query"),
@@ -48,11 +51,11 @@
     /**
      * 鎶ュ伐鏄庣粏鏌ヨ(姣忔潯鎶ュ伐璁板綍)
      */
-    @ApiOperation("鎶ュ伐鏄庣粏鍒嗛〉(姣忔潯鎶ュ伐璁板綍, 褰撳墠鐧诲綍浜�)")
+    @ApiOperation("鎶ュ伐鏄庣粏鍒嗛〉(姣忔潯鎶ュ伐璁板綍)")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "current", value = "椤电爜", dataType = "long", paramType = "query"),
             @ApiImplicitParam(name = "size", value = "姣忛〉鏁伴噺", dataType = "long", paramType = "query"),
-            @ApiImplicitParam(name = "workOrderId", value = "宸ュ崟ID(寤鸿蹇呬紶)", dataType = "long", paramType = "query"),
+            @ApiImplicitParam(name = "workOrderId", value = "宸ュ崟ID", dataType = "long", paramType = "query"),
             @ApiImplicitParam(name = "startDate", value = "寮�濮嬫棩鏈�(鎸夌粨鏉熸椂闂磋繃婊�, yyyy-MM-dd)", dataType = "string", paramType = "query"),
             @ApiImplicitParam(name = "endDate", value = "缁撴潫鏃ユ湡(鎸夌粨鏉熸椂闂磋繃婊�, yyyy-MM-dd)", dataType = "string", paramType = "query")
     })
@@ -61,24 +64,10 @@
         return R.ok(productionProductMainService.listPageProductionProductMainDetailDto(page, productionProductMainDto));
     }
 
-    /**
-     * 鎶ュ伐鏄庣粏姹囨��(姣忎釜浜哄憳姣忓ぉ)
-     */
-    @ApiOperation("鎶ュ伐姣忔棩姹囨�诲垎椤�(姣忎汉姣忓ぉ, 褰撳墠鐧诲綍浜�)")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "current", value = "椤电爜", dataType = "long", paramType = "query"),
-            @ApiImplicitParam(name = "size", value = "姣忛〉鏁伴噺", dataType = "long", paramType = "query"),
-            @ApiImplicitParam(name = "workOrderId", value = "宸ュ崟ID(寤鸿蹇呬紶)", dataType = "long", paramType = "query"),
-            @ApiImplicitParam(name = "startDate", value = "寮�濮嬫棩鏈�(report_date, yyyy-MM-dd)", dataType = "string", paramType = "query"),
-            @ApiImplicitParam(name = "endDate", value = "缁撴潫鏃ユ湡(report_date, yyyy-MM-dd)", dataType = "string", paramType = "query")
-    })
-    @GetMapping("listPageDaily")
-    public R<?> pageDaily(Page<ProductionProductMainDto> page, ProductionProductMainDto productionProductMainDto) {
-        return R.ok(productionProductMainService.listPageProductionProductMainDailyDto(page, productionProductMainDto));
-    }
 
     /**
      * 鎶ュ伐鏂板鏇存柊
+     *
      * @param productionProductMainDto
      * @return
      */
@@ -107,7 +96,7 @@
     }
 
     /**
-     * 鏌ヨ鎶ュ伐鐘舵��: 1-寮�濮嬫姤宸� 2-缁撴潫鎶ュ伐
+     * 鏌ヨ鎶ュ伐鐘舵��: 1-寮�濮嬫姤宸� 2-缁撴潫鎶ュ伐 3-鎶ュ伐瀹屾垚
      */
     @ApiOperation("鏌ヨ鎶ュ伐鐘舵��(褰撳墠鐧诲綍浜�)")
     @GetMapping("reportState")
@@ -123,13 +112,35 @@
 
 
     /**
-     * 瀵煎嚭
+     * 鎶ュ伐鍙拌处姹囨�诲鍑�
      */
+    @ApiOperation("鎶ュ伐鍙拌处姹囨�诲鍑�")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "workOrderIds", value = "宸ュ崟ID鍒楄〃, 鍙紶澶氫釜", allowMultiple = true, dataType = "long", paramType = "query"),
+            @ApiImplicitParam(name = "workOrderNo", value = "宸ュ崟缂栧彿(妯$硦)", dataType = "string", paramType = "query"),
+            @ApiImplicitParam(name = "workOrderStatus", value = "宸ュ崟鐘舵��", dataType = "string", paramType = "query")
+    })
     @PostMapping("/export")
     public void export(HttpServletResponse response, ProductionProductMainDto productionProductMainDto) {
-        List<ProductionProductMainDto> list;
-        list = productionProductMainService.listPageProductionProductMainDto(new Page<>(1, -1), productionProductMainDto).getRecords();
-        ExcelUtil<ProductionProductMainDto> util = new ExcelUtil<ProductionProductMainDto>(ProductionProductMainDto.class);
-        util.exportExcel(response, list, "鐢熶骇鎶ュ伐鏁版嵁");
+        List<ProductionProductMainSummaryExportDto> list = productionProductMainService.listSummaryExportData(productionProductMainDto);
+        ExcelUtil<ProductionProductMainSummaryExportDto> util = new ExcelUtil<>(ProductionProductMainSummaryExportDto.class);
+        util.exportExcel(response, list, "鐢熶骇鎶ュ伐姹囨�绘暟鎹�");
+    }
+
+    /**
+     * 鎶ュ伐鏄庣粏瀵煎嚭
+     */
+    @ApiOperation("鎶ュ伐鏄庣粏瀵煎嚭")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "workOrderIds", value = "宸ュ崟ID鍒楄〃, 鍙紶澶氫釜", allowMultiple = true, dataType = "long", paramType = "query"),
+            @ApiImplicitParam(name = "workOrderId", value = "宸ュ崟ID", dataType = "long", paramType = "query"),
+            @ApiImplicitParam(name = "startDate", value = "寮�濮嬫棩鏈�(鎸夌粨鏉熸椂闂磋繃婊�, yyyy-MM-dd)", dataType = "string", paramType = "query"),
+            @ApiImplicitParam(name = "endDate", value = "缁撴潫鏃ユ湡(鎸夌粨鏉熸椂闂磋繃婊�, yyyy-MM-dd)", dataType = "string", paramType = "query")
+    })
+    @PostMapping("/exportDetail")
+    public void exportDetail(HttpServletResponse response, ProductionProductMainDto productionProductMainDto) {
+        List<ProductionProductMainDetailExportDto> list = productionProductMainService.listDetailExportData(productionProductMainDto);
+        ExcelUtil<ProductionProductMainDetailExportDto> util = new ExcelUtil<>(ProductionProductMainDetailExportDto.class);
+        util.exportExcel(response, list, "鐢熶骇鎶ュ伐鏄庣粏鏁版嵁");
     }
 }

--
Gitblit v1.9.3