From 4644a64be87033d1569e43cc672ed9c777eae43b Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期二, 18 二月 2025 14:49:17 +0800
Subject: [PATCH] 添加架子复位接口与定时任务
---
hangzhoumesParent/moduleService/GlassStorageModule/src/main/java/com/mes/rawglassstation/controller/RawGlassStorageStationController.java | 27 ++++++++++++++++++++-------
1 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/hangzhoumesParent/moduleService/GlassStorageModule/src/main/java/com/mes/rawglassstation/controller/RawGlassStorageStationController.java b/hangzhoumesParent/moduleService/GlassStorageModule/src/main/java/com/mes/rawglassstation/controller/RawGlassStorageStationController.java
index 1b6dc42..b94c59a 100644
--- a/hangzhoumesParent/moduleService/GlassStorageModule/src/main/java/com/mes/rawglassstation/controller/RawGlassStorageStationController.java
+++ b/hangzhoumesParent/moduleService/GlassStorageModule/src/main/java/com/mes/rawglassstation/controller/RawGlassStorageStationController.java
@@ -1,21 +1,34 @@
package com.mes.rawglassstation.controller;
+import com.mes.rawglassstation.service.RawGlassStorageStationService;
+import com.mes.utils.Result;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.*;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-import org.springframework.web.bind.annotation.RestController;
+import javax.annotation.Resource;
/**
- * <p>
- * 鍓嶇鎺у埗鍣�
- * </p>
+ * 鍓嶇鎺у埗鍣�
*
* @author wf
* @since 2024-09-10
*/
@RestController
-@RequestMapping("/raw-glass-storage-station")
+@RequestMapping("/rawGlassStorageStation")
public class RawGlassStorageStationController {
+ @Resource RawGlassStorageStationService rawGlassStorageStationService;
+
+ @ApiOperation("宸ヤ綅鐘舵��")
+ @PostMapping("/updateSlotState")
+ @ResponseBody
+ public Result<Boolean> updateSlotState(@RequestParam(value = "state")int enableState, @RequestParam(value = "slot")int slot) {
+ boolean result = rawGlassStorageStationService.updateSlotState(slot, enableState);
+ if (enableState == 1) {
+ return Result.build(200, "鍚敤", result);
+ } else {
+ return Result.build(200, "绂佺敤", result);
+ }
+ }
}
--
Gitblit v1.8.0