From 5e7af1c3ce9e48f81ac96b8e009af47def0d17e6 Mon Sep 17 00:00:00 2001
From: zhangyong <517047165@qq.com>
Date: 星期三, 27 十一月 2024 09:20:06 +0800
Subject: [PATCH] 义乌项目:补充响应PLC钢化进炉请求逻辑,以及向钢化炉下发参数逻辑

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

diff --git a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageCageDetailsMapper.xml b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageCageDetailsMapper.xml
index 3ef3805..aae437f 100644
--- a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageCageDetailsMapper.xml
+++ b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageCageDetailsMapper.xml
@@ -29,6 +29,7 @@
         select slot, min(id) as id, count(*) as glass_count
         from edg_storage_cage_details
         where state = 100
+        and device_id = #{deviceId}
         group by slot
         ),
         size_max_temp as (
@@ -50,7 +51,7 @@
                 and t.height = #{height}
             </if>
         </where>
-        order by total_count desc, glass_count, abs(t.slot - 10)
+        order by total_count desc, glass_count, abs(t.slot - #{currentSlot})
         )
         select *
         from slot_temp limit 1

--
Gitblit v1.8.0