From 586070afc1c44d646d42971b6eab4bce46f900f2 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期四, 09 五月 2024 16:32:48 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override
---
north-glass-erp/src/main/java/com/example/erp/controller/pp/ReplenishController.java | 67 +++++++++++++++++++++++++++++++++
1 files changed, 67 insertions(+), 0 deletions(-)
diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/pp/ReplenishController.java b/north-glass-erp/src/main/java/com/example/erp/controller/pp/ReplenishController.java
new file mode 100644
index 0000000..28af49d
--- /dev/null
+++ b/north-glass-erp/src/main/java/com/example/erp/controller/pp/ReplenishController.java
@@ -0,0 +1,67 @@
+package com.example.erp.controller.pp;
+
+import com.example.erp.common.Constants;
+import com.example.erp.common.Result;
+import com.example.erp.entity.pp.PatchLog;
+import com.example.erp.entity.pp.Rework;
+import com.example.erp.exception.ServiceException;
+import com.example.erp.service.pp.ReplenishService;
+import com.example.erp.service.pp.ReworkService;
+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
+@Api(value="琛ョ墖controller",tags={"琛ョ墖鎿嶄綔鎺ュ彛"})
+@RequestMapping("/Replenish")
+public class ReplenishController {
+
+ @Autowired
+ ReplenishService replenishService;
+
+
+
+ /*鍙戣揣璁㈠崟鏌ヨ*/
+ @ApiOperation("琛ョ墖鏂板鏌ヨ鎺ュ彛")
+ @PostMapping("/getSelectReplenish/{pageNum}/{pageSize}")
+ public Result getSelectReplenish(@PathVariable Integer pageNum, @PathVariable Integer pageSize){
+ return Result.seccess(replenishService.getSelectReplenish(pageNum,pageSize));
+ }
+
+ @ApiOperation("琛ョ墖鏌ヨ鎺ュ彛")
+ @PostMapping("/SelectReplenish/{pageNum}/{pageSize}/{selectDate}")
+ public Result SelectReplenish(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate,@RequestBody PatchLog patchLog){
+ return Result.seccess(replenishService.SelectReplenish(pageNum,pageSize,selectDate,patchLog));
+ }
+
+
+ @ApiOperation("琛ョ墖鏂板鎺ュ彛")
+ @PostMapping("/saveReplenish")
+ public Result updateFinishedGoodsInventoryAllocate( @RequestBody Map<String,Object> object){
+ if(replenishService.saveReplenish(object)){
+
+ return Result.seccess();
+
+ }else {
+ throw new ServiceException(Constants.Code_500,"琛ョ墖澶辫触");
+
+ }
+ }
+
+ @ApiOperation("琛ョ墖瀹℃牳鎺ュ彛")
+ @PostMapping("/updateReplenish")
+ public Result updateReplenish( @RequestBody Map<String,Object> object){
+ if(replenishService.updateReplenish(object)){
+
+ return Result.seccess();
+
+ }else {
+ throw new ServiceException(Constants.Code_500,"瀹℃牳澶辫触");
+
+ }
+ }
+}
--
Gitblit v1.8.0