From 9dd76aba722a095d350eda2060fe40740e6ce661 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期一, 01 十二月 2025 16:28:12 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10105/r/ERP_override
---
north-glass-erp/src/main/java/com/example/erp/controller/AppController.java | 62 +++++++++++++++++++++++++++++--
1 files changed, 58 insertions(+), 4 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 f23e5b7..b40de5a 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,20 +1,25 @@
package com.example.erp.controller;
+import cn.dev33.satoken.annotation.SaCheckPermission;
import com.example.erp.common.Result;
+import com.example.erp.dto.pp.WorkInProgressDTO;
+import com.example.erp.entity.pp.FlowCard;
import com.example.erp.entity.sd.Order;
+import com.example.erp.entity.sd.OrderDetail;
+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.pp.ReportingWorkService;
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.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
import java.time.LocalDate;
import java.util.List;
+import java.util.Map;
@RestController
@RequestMapping("/app")
@@ -24,6 +29,9 @@
private final OrderService orderService;
private final DeliveryService deliveryService;
private final MaterialInventoryService materialInventoryService;
+ private final FinishedGoodsInventoryService finishedGoodsInventoryService;
+ private final ReportService reportService;
+ private final ReportingWorkService reportingWorkService;
@ApiOperation("璁㈠崟鎶ヨ〃")
@PostMapping("/getOrderList")
@@ -42,4 +50,50 @@
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 getworkInProgress(@PathVariable String selectProcesses,WorkInProgressDTO workInProgressDTO) {
+ return Result.success(reportService.workInProgressSv(1, 999999999, "", "", selectProcesses,"","", workInProgressDTO));
+
+ }
+
+ @ApiOperation("鍙叆搴撶殑鎴愬搧鏌ヨ鎺ュ彛")
+ @PostMapping("/getSelectWarehousingList")
+ public Result getSelectWarehousingList(@RequestBody String processId){
+ return Result.success(finishedGoodsInventoryService.getSelectWarehousingApp(processId));
+ }
+
+ @ApiOperation("鎴愬搧鍏ュ簱鎺ュ彛")
+ @PostMapping("/addSelectWarehousing")
+ public Result addSelectWarehousing( @RequestBody Map<String,Object> object){
+ return Result.success(finishedGoodsInventoryService.addSelectWarehousing(object));
+
+ }
+
+ @ApiOperation("鍙彂璐х殑鎴愬搧鏌ヨ鎺ュ彛")
+ @PostMapping("/getSelectDeliveryDetailList")
+ public Result getSelectDeliveryDetailList(){
+ return Result.success(finishedGoodsInventoryService.getSelectDeliveryDetailApp());
+ }
+
+ @ApiOperation("鎴愬搧鍑哄簱鎺ュ彛")
+ @PostMapping("/addDeliveryDetail")
+ public Result addDeliveryDetail( @RequestBody Map<String,Object> object){
+ return Result.success(finishedGoodsInventoryService.addDeliveryDetail(object));
+ }
+
+ @ApiOperation("app澶氫釜娴佺▼鍗℃姤宸�")
+ @PostMapping("/addWorkInProgress")
+ @SaCheckPermission("addReportingWork.add")
+ public Result addWorkInProgress(@RequestBody Map<String,Object> object){
+ return reportingWorkService.addWorkInProgress(object);
+ }
}
--
Gitblit v1.8.0