From a72412ea76015aa84883da72e643c63096c71a24 Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期三, 24 四月 2024 09:00:44 +0800
Subject: [PATCH] 认证权限
---
hangzhoumesParent/moduleService/TemperingGlassModule/src/main/java/com/mes/temperingglass/controller/TemperingGlassInfoController.java | 19 +++++++++----------
1 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/hangzhoumesParent/moduleService/TemperingGlassModule/src/main/java/com/mes/temperingglass/controller/TemperingGlassInfoController.java b/hangzhoumesParent/moduleService/TemperingGlassModule/src/main/java/com/mes/temperingglass/controller/TemperingGlassInfoController.java
index 5306703..c78f5bf 100644
--- a/hangzhoumesParent/moduleService/TemperingGlassModule/src/main/java/com/mes/temperingglass/controller/TemperingGlassInfoController.java
+++ b/hangzhoumesParent/moduleService/TemperingGlassModule/src/main/java/com/mes/temperingglass/controller/TemperingGlassInfoController.java
@@ -1,12 +1,13 @@
package com.mes.temperingglass.controller;
-import java.util.List;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
import com.mes.temperingglass.entity.TemperingGlassInfo;
import com.mes.temperingglass.service.TemperingOverService;
import com.mes.temperingglass.service.TemperingService;
import com.mes.utils.Result;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
@RestController
@@ -16,17 +17,17 @@
public class TemperingGlassInfoController {
@Autowired
- TemperingService temperingService;
+ TemperingService temperingService;
@Autowired
private TemperingOverService temperingOverService;
- @GetMapping("/SelectWaitingGlass") // 鏌ヨ閽㈠寲绛夌墖涓殑鐗堝浘淇℃伅,鐘舵�佷负1鐨勪负宸插埌,鐘舵�佷负0鐨勪负绛夊緟涓�
+ @PostMapping("/SelectWaitingGlass") // 鏌ヨ閽㈠寲绛夌墖涓殑鐗堝浘淇℃伅,鐘舵�佷负1鐨勪负宸插埌,鐘舵�佷负0鐨勪负绛夊緟涓�
@ResponseBody
public Result SelectWaitingGlass(@RequestParam(name = "ProcessId", required = false) String ProcessId) {
List<TemperingGlassInfo> glass = temperingService.SelectWaitingGlass();
System.out.println(glass);
- return Result.build(200,"", glass);
+ return Result.build(200, "", glass);
}
@GetMapping("/SelectIntoGlass") // 鏌ヨ杩涚倝涓殑閽㈠寲绛夌墖涓殑鐗堝浘淇℃伅,鐘舵�佸叏涓�1鐨勪负宸插埌銆�
@@ -34,7 +35,7 @@
public Result SelectIntoGlass(String ProcessId) {
List<TemperingGlassInfo> glass = temperingService.SelectIntoGlass();
System.out.println(glass);
- return Result.build(200,"", glass);
+ return Result.build(200, "", glass);
}
@GetMapping("/SelectOutGlass") //閽㈠寲鍚庢樉绀哄嚭鐐夌殑鐗堝浘淇℃伅
@@ -42,10 +43,8 @@
public Result SelectOutGlass(String ProcessId) {
List<TemperingGlassInfo> glass = temperingOverService.SelectOutGlass();
System.out.println(glass);
- return Result.build(200,"", glass);
+ return Result.build(200, "", glass);
}
-
-
}
--
Gitblit v1.8.0