From 71a4444510d9067654705f0c5803d5f12a21a092 Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期二, 11 十一月 2025 09:17:34 +0800
Subject: [PATCH] 添加流程卡进度接口信息

---
 north-glass-erp/src/main/java/com/example/erp/controller/AppController.java |   55 ++++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 50 insertions(+), 5 deletions(-)

diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/AppController.java b/north-glass-erp/src/main/java/com/example/erp/controller/AppController.java
index e95a98b..11c2a7d 100644
--- a/north-glass-erp/src/main/java/com/example/erp/controller/AppController.java
+++ b/north-glass-erp/src/main/java/com/example/erp/controller/AppController.java
@@ -1,16 +1,61 @@
 package com.example.erp.controller;
 
 import com.example.erp.common.Result;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import com.example.erp.dto.pp.WorkInProgressDTO;
+import com.example.erp.entity.sd.Order;
+import com.example.erp.service.mm.FinishedGoodsInventoryService;
+import com.example.erp.service.mm.MaterialInventoryService;
+import com.example.erp.service.pp.ReportService;
+import com.example.erp.service.sd.DeliveryService;
+import com.example.erp.service.sd.OrderService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.RequiredArgsConstructor;
+import org.springframework.web.bind.annotation.*;
+
+import java.time.LocalDate;
+import java.util.List;
 
 @RestController
 @RequestMapping("/app")
+@RequiredArgsConstructor
+@Api(value="App涓撳睘鎺ュ彛",tags={"App涓撳睘鎺ュ彛"})
 public class AppController {
+    private final OrderService orderService;
+    private final DeliveryService deliveryService;
+    private final MaterialInventoryService materialInventoryService;
+    private final FinishedGoodsInventoryService finishedGoodsInventoryService;
+    private final ReportService reportService;
 
+    @ApiOperation("璁㈠崟鎶ヨ〃")
     @PostMapping("/getOrderList")
-    public Result getOrderList() {
-        return null;
+    public Result getOrderList(@RequestBody List<String> dates) {
+        return Result.success(orderService.appGetOrderList(dates));
+    }
+
+    @ApiOperation("鍙戣揣鎶ヨ〃")
+    @PostMapping("/getDeliveryList")
+    public Result getDeliveryList(@RequestBody List<String> dates) {
+        return Result.success(deliveryService.appGetDeliveryList(dates));
+    }
+
+    @ApiOperation("鍘熺墖搴撳瓨鎶ヨ〃")
+    @PostMapping("/getOriginalGlassList")
+    public Result getOriginalGlassList() {
+        return Result.success(materialInventoryService.appGetStockList());
+    }
+
+
+    @ApiOperation("鎴愬搧搴撳瓨鎶ヨ〃")
+    @PostMapping("/getFinishedGoodsInventoryList")
+    public Result getFinishedGoodsInventoryList() {
+        return Result.success(finishedGoodsInventoryService.appFinishedGoodsInventoryList());
+    }
+
+    @ApiOperation("鍗婃垚鍝佸簱瀛樻姤琛�")
+    @PostMapping("/getWorkInProgress/{selectProcesses}")
+    public Result workInProgress(@PathVariable String selectProcesses,WorkInProgressDTO workInProgressDTO) {
+        return Result.success(reportService.workInProgressSv(1, 999999999, "", "", selectProcesses,"","", workInProgressDTO));
+
     }
 }

--
Gitblit v1.8.0