From 15f335a0553bbc56c23a1eea9548e53b8fdbcb87 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期一, 11 三月 2024 11:29:04 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override
---
north-glass-erp/src/main/java/com/example/erp/controller/pp/ProductionSchedulingController.java | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/pp/ProductionSchedulingController.java b/north-glass-erp/src/main/java/com/example/erp/controller/pp/ProductionSchedulingController.java
index 787be26..2e8bd1d 100644
--- a/north-glass-erp/src/main/java/com/example/erp/controller/pp/ProductionSchedulingController.java
+++ b/north-glass-erp/src/main/java/com/example/erp/controller/pp/ProductionSchedulingController.java
@@ -5,6 +5,8 @@
import com.example.erp.entity.pp.ProductionScheduling;
import com.example.erp.exception.ServiceException;
import com.example.erp.service.pp.ProductionSchedulingService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -12,12 +14,14 @@
import java.util.Map;
@RestController
+@Api(value="鎺掍骇controller",tags={"鎺掍骇鐩稿叧鎿嶄綔鎺ュ彛"})
@RequestMapping("/productionScheduling")
public class ProductionSchedulingController {
@Autowired
ProductionSchedulingService productionSchedulingService;
//鏌ヨ绗竴娆℃帓鐗堟暟鎹�
+ @ApiOperation("鍔犺浇鏃舵煡璇㈡帓鐗堟暟鎹帴鍙�")
@PostMapping ("/selectLastScheduling/{selectTime1}/{selectTime2}")
public Result selectLastScheduling(
@PathVariable String selectTime1,
@@ -27,19 +31,21 @@
}
//鐐瑰嚮鏌ヨ鎺掔増鏁版嵁
+ @ApiOperation("鐐瑰嚮鏌ヨ鎺掔増鏁版嵁鎺ュ彛")
@PostMapping ("/selectScheduling/{selectTime1}/{selectTime2}/{orderId}/{processes}/{state}")
- public Result SelectScheduling(
+ public Result selectScheduling(
@PathVariable String selectTime1,
@PathVariable String selectTime2,
@PathVariable String orderId,
@PathVariable String processes,
@PathVariable Integer state,
@RequestBody ProductionScheduling productionScheduling){
- return Result.seccess(productionSchedulingService.SelectSchedulingSv(selectTime1,selectTime2,orderId,processes,state,productionScheduling));
+ return Result.seccess(productionSchedulingService.selectSchedulingSv(selectTime1,selectTime2,orderId,processes,state,productionScheduling));
}
//鐐瑰嚮鏌ヨ鎺掔増鏁版嵁锛堝甫璁㈠崟鍙锋煡璇級
+ @ApiOperation("鏍规嵁鏉′欢鏌ヨ鎺掔増鏁版嵁鎺ュ彛")
@PostMapping ("/selectSchedulingNot/{selectTime1}/{selectTime2}/{orderId}/{processes}/{state}")
public Result selectSchedulingNot(
@PathVariable String selectTime1,
@@ -53,10 +59,11 @@
}
//娣诲姞鎺掍骇鏁版嵁
+ @ApiOperation("娣诲姞鎺掍骇鏁版嵁鎺ュ彛")
@PostMapping("/addScheduling")
- public Result AddScheduling( @RequestBody Map<String,Object> object){
+ public Result addScheduling( @RequestBody Map<String,Object> object){
- if(productionSchedulingService.AddSchedulingSv(object)){
+ if(productionSchedulingService.addSchedulingSv(object)){
return Result.seccess();
}else {
throw new ServiceException(Constants.Code_500,"淇濆瓨澶辫触");
@@ -65,6 +72,7 @@
}
//鍒犻櫎鎺掍骇鏁版嵁
+ @ApiOperation("鍒犻櫎鎺掍骇鏁版嵁鎺ュ彛")
@PostMapping("/deleteScheduling")
public Result deleteScheduling( @RequestBody Map<String,Object> object) throws Exception{
@@ -76,10 +84,11 @@
}
}
+ @ApiOperation("鎺掔増瀹℃牳鎺ュ彛")
@PostMapping("/examineScheduling")
- public Result ExamineScheduling( @RequestBody Map<String,Object> object){
+ public Result examineScheduling( @RequestBody Map<String,Object> object){
- if(productionSchedulingService.ExamineSchedulingSv(object)){
+ if(productionSchedulingService.examineSchedulingSv(object)){
return Result.seccess();
}else {
throw new ServiceException(Constants.Code_500,"瀹℃牳澶辫触");
--
Gitblit v1.8.0