From be032257d1562085b507496140dd3551570962e0 Mon Sep 17 00:00:00 2001 From: zhoushihao <zsh19950802@163.com> Date: 星期二, 23 七月 2024 20:31:15 +0800 Subject: [PATCH] 0723联调解决bug --- hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/bigstorage/controller/BigStorageCageController.java | 23 ++++++++--------------- 1 files changed, 8 insertions(+), 15 deletions(-) diff --git a/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/bigstorage/controller/BigStorageCageController.java b/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/bigstorage/controller/BigStorageCageController.java index 9595d77..6980cfb 100644 --- a/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/bigstorage/controller/BigStorageCageController.java +++ b/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/bigstorage/controller/BigStorageCageController.java @@ -1,8 +1,7 @@ package com.mes.bigstorage.controller; - -import com.mes.bigstorage.entity.BigStorageCage; import com.mes.bigstorage.service.BigStorageCageService; -import io.swagger.annotations.ApiModel; +import com.mes.utils.Result; +import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; @@ -19,7 +18,7 @@ * @author zhoush * @since 2024-03-27 */ -@ApiModel("鐞嗙墖绗间俊鎭�") +@Api(description = "鐞嗙墖绗间俊鎭�") @RestController @RequestMapping("/bigStorageCage") public class BigStorageCageController { @@ -27,17 +26,11 @@ @Autowired private BigStorageCageService bigStorageCageService; - //todo: 瀹炰緥浠g爜 寰呭垹闄� - @ApiOperation("娴嬭瘯") - @GetMapping("/index") - public String index() { - return "hello world"; - } - - @ApiOperation("鐞嗙墖绗间俊鎭�") - @GetMapping("/bigStorageCage") - public List<BigStorageCage> querybigStorageCageDetail() { - return bigStorageCageService.querybigStorageCageDetail(); + @ApiOperation("鐞嗙墖绗煎惎鐢ㄧ鐢�") + @GetMapping("/updateStorageCageDisabled") + public Result updateStorageCageDisabled(int slot,int enableState) { + bigStorageCageService.updateStorageCageDisabled(slot,enableState); + return Result.build(200,"鍚敤/绂佺敤鎴愬姛",1); } } -- Gitblit v1.8.0