From 44c120df70db14346a72fc77790bc0e3ecc11898 Mon Sep 17 00:00:00 2001 From: wangfei <3597712270@qq.com> Date: 星期一, 29 七月 2024 14:23:40 +0800 Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/HangZhouMes --- hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/bigstorage/controller/BigStorageCageDetailsController.java | 35 ++++++++++++++++++++++++++++++++--- 1 files changed, 32 insertions(+), 3 deletions(-) diff --git a/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/bigstorage/controller/BigStorageCageDetailsController.java b/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/bigstorage/controller/BigStorageCageDetailsController.java index deed23a..77c81be 100644 --- a/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/bigstorage/controller/BigStorageCageDetailsController.java +++ b/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/bigstorage/controller/BigStorageCageDetailsController.java @@ -1,4 +1,5 @@ package com.mes.bigstorage.controller; + import com.mes.bigstorage.entity.BigStorageCageDetails; import com.mes.bigstorage.service.BigStorageCageDetailsService; import com.mes.bigstorage.service.BigStorageCageService; @@ -6,7 +7,10 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; import java.util.List; import java.util.Map; @@ -34,7 +38,11 @@ @PostMapping("/selectBigStorageCageDetails") public Result selectBigStorageCageDetails(@RequestBody Map map) { List<BigStorageCageDetails> bigStorageCageDetails=bigStorageCageDetailsService.selectBigStorageCageDetails(map.get("glassId").toString()); - return Result.build(200,"鏌ヨ鎴愬姛",bigStorageCageDetails); + if (bigStorageCageDetails.size()>0){ + return Result.build(200,"鏌ヨ鎴愬姛",bigStorageCageDetails); + }else{ + return Result.build(200,"鏌ヨ澶辫触锛屾棤姝ょ幓鐠僫d",bigStorageCageDetails); + } } @ApiOperation("鐞嗙墖绗艰鎯呮坊鍔�") @@ -68,10 +76,31 @@ @ApiOperation("鐞嗙墖绗间换鍔″嚭鐗�") @PostMapping("/outBigStorageCageDetails") public Result outBigStorageCageDetails(@RequestBody BigStorageCageDetails bigStorageCageDetails) { - bigStorageCageDetailsService.outBigStorageCageDetails(bigStorageCageDetails); return Result.build(200,"鍑虹墖娣诲姞鎴愬姛",1); } + @ApiOperation("鎸囧畾閽㈠寲") + @PostMapping("/TemperingGlass") + public Result temperingGlass(@RequestBody BigStorageCageDetails bigStorageCageDetails) { + boolean result = bigStorageCageDetailsService.temperingGlass(bigStorageCageDetails.getTemperingLayoutId().toString(), bigStorageCageDetails.getEngineerId()); + if (result == true) { + return Result.build(200, "鎸囧畾閽㈠寲鎴愬姛", 1); + } else { + return Result.build(200, "宸插瓨鍦ㄩ挗鍖栦换鍔★紝璇风瓑寰呴挗鍖栧畬鎴愬啀鎸囧畾閽㈠寲", 1); + } + } + + @ApiOperation("閽㈠寲鏌ヨ") + @PostMapping("/selectTemperingGlass") + public Result selectTemperingGlass() { + return Result.build(200, "鏌ヨ鎴愬姛", bigStorageCageDetailsService.selectTemperingGlass()); + } + + @ApiOperation("鏄惁閽㈠寲寮�鍏�") + @PostMapping("/temperingSwitch") + public Result temperingSwitch(Boolean flag) { + return Result.build(200, "鏌ヨ鎴愬姛", bigStorageCageDetailsService.temperingSwitch(flag)); + } } -- Gitblit v1.8.0