From f20b176a682080c7358578d11d1176aa88bb4efc Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期二, 30 一月 2024 10:51:02 +0800
Subject: [PATCH] 修改实体

---
 north-glass-erp/src/main/java/com/example/erp/controller/mm/FinishedGoodsInventoryController.java |   37 ++++++++++++++++++++++++++++++-------
 1 files changed, 30 insertions(+), 7 deletions(-)

diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/mm/FinishedGoodsInventoryController.java b/north-glass-erp/src/main/java/com/example/erp/controller/mm/FinishedGoodsInventoryController.java
index a5ad67d..6f36346 100644
--- a/north-glass-erp/src/main/java/com/example/erp/controller/mm/FinishedGoodsInventoryController.java
+++ b/north-glass-erp/src/main/java/com/example/erp/controller/mm/FinishedGoodsInventoryController.java
@@ -1,12 +1,18 @@
 package com.example.erp.controller.mm;
 
+
+
+import com.example.erp.common.Constants;
 import com.example.erp.common.Result;
+import com.example.erp.entity.pp.FlowCard;
+import com.example.erp.exception.ServiceException;
 import com.example.erp.service.mm.FinishedGoodsInventoryService;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
+import com.example.erp.entity.mm.FinishedGoodsInventory;
+
+
+import java.util.Map;
 
 @RestController
 @RequestMapping("/FinishedGoodsInventory")
@@ -14,8 +20,25 @@
     @Autowired
     FinishedGoodsInventoryService finishedGoodsInventoryService;
 
-    @GetMapping("/getselet/{pageNum}/{pageSize}")
-    public Result defaultDateFinishedGoodsInventory(@PathVariable Integer pageNum, @PathVariable Integer pageSize){
-        return Result.seccess(finishedGoodsInventoryService.defaultDateFinishedGoodsInventory(pageNum,pageSize));
+    @PostMapping("/getselet/{pageNum}/{pageSize}")
+    public Result defaultDateFinishedGoodsInventory(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody FinishedGoodsInventory finishedGoodsInventory){
+        System.out.println(finishedGoodsInventory);
+        return Result.seccess(finishedGoodsInventoryService.defaultDateFinishedGoodsInventory(pageNum,pageSize,finishedGoodsInventory));
+    }
+
+    @PostMapping("/getseletwarehousing/{pageNum}/{pageSize}")
+    public Result getseletwarehousing(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody FlowCard flowCard){
+        System.out.println(flowCard);
+        return Result.seccess(finishedGoodsInventoryService.getseletwarehousing(pageNum,pageSize,flowCard));
+    }
+
+    @PostMapping("/addseletwarehousing")
+    public Result addseletwarehousing( @RequestBody Map<String,Map<String,Object>> object){
+        if(finishedGoodsInventoryService.addseletwarehousing(object)){
+            return Result.seccess();
+        }else {
+           throw new ServiceException(Constants.Code_500,"鍏ュ簱澶辫触");
+
+        }
     }
 }

--
Gitblit v1.8.0