From 4688ec39bdff70a1754597cbd86e96e261311fb8 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期四, 18 四月 2024 09:51:39 +0800
Subject: [PATCH] 提交打印

---
 north-glass-erp/src/main/java/com/example/erp/controller/mm/MaterialInventoryController.java |  149 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 149 insertions(+), 0 deletions(-)

diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/mm/MaterialInventoryController.java b/north-glass-erp/src/main/java/com/example/erp/controller/mm/MaterialInventoryController.java
new file mode 100644
index 0000000..bc35d70
--- /dev/null
+++ b/north-glass-erp/src/main/java/com/example/erp/controller/mm/MaterialInventoryController.java
@@ -0,0 +1,149 @@
+package com.example.erp.controller.mm;
+
+
+import com.example.erp.common.Constants;
+import com.example.erp.common.Result;
+import com.example.erp.entity.mm.*;
+import com.example.erp.entity.pp.OptimizeUse;
+import com.example.erp.exception.ServiceException;
+import com.example.erp.service.mm.MaterialInventoryService;
+import com.example.erp.service.mm.MaterialStoreService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+import java.util.Map;
+
+@RestController
+@RequestMapping("/MaterialInventory")
+@Api(value="鐗╂枡搴撳瓨controller",tags={"鐗╂枡搴撳瓨鎿嶄綔鎺ュ彛"})
+public class MaterialInventoryController {
+    @Autowired
+    MaterialInventoryService materialInventoryService;
+
+    @ApiOperation("鐗╂枡鍑哄簱鏂板鎺ュ彛")
+    @PostMapping("/saveMaterialOutbound")
+    public Result saveMaterialOutbound( @RequestBody Map<String,Object>  object){
+        if(materialInventoryService.saveMaterialOutbound(object)){
+            return Result.seccess();
+        }else {
+            throw new ServiceException(Constants.Code_500,"淇濆瓨澶辫触");
+
+        }
+    }
+
+    @ApiOperation("鐗╂枡鏂板鎺ュ彛")
+    @PostMapping("/saveMaterialInventory")
+    public Result saveMaterialInventory( @RequestBody Map<String,Object>  object){
+        if(materialInventoryService.saveMaterialInventory(object)){
+            return Result.seccess();
+        }else {
+            throw new ServiceException(Constants.Code_500,"淇濆瓨澶辫触");
+
+        }
+    }
+
+    @ApiOperation("鐗╂枡搴撳瓨鍔犳椂闂存煡璇㈡帴鍙�")
+    @PostMapping("/getSelectMaterialInventoryDate/{pageNum}/{pageSize}/{selectDate}")
+    public Result getSelectMaterialInventoryDate(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @PathVariable List<String> selectDate, @RequestBody MaterialInventory materialInventory){
+        return Result.seccess(materialInventoryService.getSelectMaterialInventoryDate(pageNum,pageSize,selectDate,materialInventory));
+    }
+
+    @ApiOperation("鐗╂枡搴撳瓨宸ョ▼鍔犳椂闂存煡璇㈡帴鍙�")
+    @PostMapping("/getSelectMaterialInventoryEngineeringDate/{pageNum}/{pageSize}/{selectDate}")
+    public Result getSelectMaterialInventoryEngineeringDate(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @PathVariable List<String> selectDate, @RequestBody MaterialInventory materialInventory){
+        return Result.seccess(materialInventoryService.getSelectMaterialInventoryEngineeringDate(pageNum,pageSize,selectDate,materialInventory));
+    }
+
+    @ApiOperation("鐗╂枡搴撳瓨鏌ヨ鎺ュ彛")
+    @PostMapping("/getSelectMaterialInventory/{pageNum}/{pageSize}")
+    public Result getSelectMaterialInventory(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody MaterialInventory materialInventory){
+        return Result.seccess(materialInventoryService.getSelectMaterialInventory(pageNum,pageSize,materialInventory));
+    }
+
+    @ApiOperation("鐗╂枡搴撳瓨宸ョ▼鏌ヨ鎺ュ彛")
+    @PostMapping("/getSelectMaterialInventoryEngineering/{pageNum}/{pageSize}")
+    public Result getSelectMaterialInventoryEngineering(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody OptimizeUse optimizeUse){
+        return Result.seccess(materialInventoryService.getSelectMaterialInventoryEngineering(pageNum,pageSize,optimizeUse));
+    }
+
+    @ApiOperation("鏉愭枡鍑哄簱鏌ヨ鎺ュ彛")
+    @PostMapping("/getSelectMaterialOutboundDate/{pageNum}/{pageSize}/{selectDate}")
+    public Result getSelectMaterialOutboundDate(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @PathVariable List<String> selectDate, @RequestBody MaterialOutbound materialOutbound){
+        return Result.seccess(materialInventoryService.getSelectMaterialOutboundDate(pageNum,pageSize,selectDate, materialOutbound));
+    }
+
+    @ApiOperation("鏉愭枡鍑哄簱鏌ヨ鎺ュ彛")
+    @PostMapping("/getSelectMaterialOutbound/{pageNum}/{pageSize}")
+    public Result getSelectMaterialOutbound(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody MaterialOutboundDetail materialOutboundDetail){
+        return Result.seccess(materialInventoryService.getSelectMaterialOutbound(pageNum,pageSize,materialOutboundDetail));
+    }
+
+
+    @ApiOperation("鏉愭枡鍑哄簱瀹℃牳鎺ュ彛")
+    @PostMapping("/updateMaterialOutboundToExamine")
+    public Result updateMaterialOutboundToExamine( @RequestBody Map<String,Object> object){
+        if(materialInventoryService.updateMaterialOutboundToExamine(object)){
+            return Result.seccess();
+
+        }else {
+            throw new ServiceException(Constants.Code_500,"瀹℃牳澶辫触");
+
+        }
+    }
+
+    @ApiOperation("鐗╂枡鍒犻櫎鎺ュ彛")
+    @PostMapping("/deleteMaterialOutbound")
+    public Result deleteMaterialOutbound( @RequestBody Map<String,Object>  object){
+        if(materialInventoryService.deleteMaterialOutbound(object)){
+
+            return Result.seccess();
+
+        }else {
+            throw new ServiceException(Constants.Code_500,"鍒犻櫎澶辫触");
+
+        }
+    }
+
+    @ApiOperation("鐗╂枡杩斿簱鏂板鎺ュ彛")
+    @PostMapping("/saveReturningWarehouse")
+    public Result saveReturningWarehouse( @RequestBody Map<String,Object>  object){
+        if(materialInventoryService.saveReturningWarehouse(object)){
+            return Result.seccess();
+        }else {
+            throw new ServiceException(Constants.Code_500,"淇濆瓨澶辫触");
+
+        }
+    }
+
+    @ApiOperation("鐗╂枡杩斿簱鏂板鏌ヨ鎺ュ彛")
+    @PostMapping("/getSelectReturningWarehouse/{pageNum}/{pageSize}")
+    public Result getSelectReturningWarehouse(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody ReturningWarehouseDetail returningWarehouseDetail){
+        return Result.seccess(materialInventoryService.getSelectReturningWarehouse(pageNum,pageSize,returningWarehouseDetail));
+    }
+
+    @ApiOperation("鐗╂枡杩斿簱瀹℃牳鎺ュ彛")
+    @PostMapping("/updateReturningWarehouseToExamine")
+    public Result updateReturningWarehouseToExamine( @RequestBody Map<String,Object> object){
+        if(materialInventoryService.updateReturningWarehouseToExamine(object)){
+            return Result.seccess();
+
+        }else {
+            throw new ServiceException(Constants.Code_500,"瀹℃牳澶辫触");
+
+        }
+    }
+
+
+    @ApiOperation("鐗╂枡杩斿簱鏌ヨ鎺ュ彛")
+    @PostMapping("/getSelectReturningWarehouseDate/{pageNum}/{pageSize}/{selectDate}")
+    public Result getSelectReturningWarehouseDate(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @PathVariable List<String> selectDate, @RequestBody ReturningWarehouse returningWarehouse){
+        return Result.seccess(materialInventoryService.getSelectReturningWarehouseDate(pageNum,pageSize,selectDate, returningWarehouse));
+    }
+
+
+
+
+}

--
Gitblit v1.8.0