From dcc799551b532fa29d64f5f2cb614f5b80b233f6 Mon Sep 17 00:00:00 2001
From: zhangyong <517047165@qq.com>
Date: 星期二, 26 十一月 2024 13:23:55 +0800
Subject: [PATCH] 义乌项目:增加响应PLC钢化进炉请求逻辑,以及向钢化炉下发参数逻辑

---
 hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageCageMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageCageMapper.xml b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageCageMapper.xml
index f2cbc0a..4b0946d 100644
--- a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageCageMapper.xml
+++ b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageCageMapper.xml
@@ -16,7 +16,7 @@
                  left join edg_storage_cage_details t1 on t.slot = t1.slot
         where t.device_id = #{deviceId}
           and t1.state = 100
-          and t.remain_width >= #{width}
+          and t.remain_width >= GREATEST(#{width}, #{height})
           and t1.width = #{width}
           and t1.height = #{height}
           and t.enable_state = 1

--
Gitblit v1.8.0