From 91b2da2c3a42656e842f7c9e0c4af6aa02dbaa3a Mon Sep 17 00:00:00 2001
From: XiaoRuby <3114200645@qq.com>
Date: 星期一, 04 九月 2023 09:23:29 +0800
Subject: [PATCH] MOM系统-9-04 生产报工
---
production-server/src/main/java/com/yuanchu/mom/controller/ProductionPlanController.java | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/production-server/src/main/java/com/yuanchu/mom/controller/ProductionPlanController.java b/production-server/src/main/java/com/yuanchu/mom/controller/ProductionPlanController.java
index 00b2450..2b77136 100644
--- a/production-server/src/main/java/com/yuanchu/mom/controller/ProductionPlanController.java
+++ b/production-server/src/main/java/com/yuanchu/mom/controller/ProductionPlanController.java
@@ -46,7 +46,6 @@
return Result.success(manufactureOrderService.sePros(schedulingId));
}
-
@ApiOperation(value = "鏍规嵁鐢熶骇璁㈠崟鏌ョ湅鐢熶骇璁″垝")
@ApiImplicitParams(value = {
@ApiImplicitParam(name = "manOrdId", value = "鐢熶骇璁㈠崟id", dataTypeClass = Integer.class, required = true),
@@ -59,19 +58,16 @@
return Result.success(manufactureSchedulingService.selectProduceTable(manOrdId, productName, startTime, endTime));
}
-
- @ApiOperation(value = "鏌ョ湅鎺掍骇璇︽儏-->澶辩劍淇敼鏃堕棿")
+ @ApiOperation(value = "鏌ョ湅鎺掍骇璇︽儏-->鍒囨崲淇敼鏃堕棿涓庡懆鏈�")
@ApiImplicitParams(value = {
@ApiImplicitParam(name = "technologyId", value = "宸ュ簭Id", dataTypeClass = Integer.class, required = true),
@ApiImplicitParam(name = "schedulingId", value = "鎺掍骇Id", dataTypeClass = Integer.class, required = true),
- @ApiImplicitParam(name = "startTime", value = "寮�濮嬫椂闂�", dataTypeClass = String.class, required = true, dataType = "date")
+ @ApiImplicitParam(name = "startTime", value = "寮�濮嬫椂闂�", dataTypeClass = String.class, required = true, dataType = "date"),
+ @ApiImplicitParam(name = "period", value = "鍛ㄦ湡", dataTypeClass = Integer.class, required = true)
})
@GetMapping("/update_time")
- public Result<?> updateTime(Integer technologyId, Integer schedulingId, String startTime) {
- Integer isUpdateSuccess = manufactureOrderProcessService.updateTime(technologyId, schedulingId, startTime);
- if (isUpdateSuccess >= 1) {
- return Result.success("鏇存柊鎴愬姛锛�");
- }
- return Result.fail("鏇存柊澶辫触锛�");
+ public Result<?> updateTime(Integer technologyId, Integer schedulingId, String startTime, Integer period) {
+ manufactureOrderProcessService.updateTime(technologyId, schedulingId, startTime, period);
+ return Result.success("鏇存柊鎴愬姛锛�");
}
}
--
Gitblit v1.9.3