From 924ce82faeec6d896fcdc360b279215e84b69fb9 Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期四, 11 九月 2025 11:44:44 +0800
Subject: [PATCH] 1、代码补充提交
---
hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/resources/mapper/BigStorageCageDetailsMapper.xml | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/resources/mapper/BigStorageCageDetailsMapper.xml b/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/resources/mapper/BigStorageCageDetailsMapper.xml
index 153e6fd..a88a244 100644
--- a/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/resources/mapper/BigStorageCageDetailsMapper.xml
+++ b/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/resources/mapper/BigStorageCageDetailsMapper.xml
@@ -102,7 +102,7 @@
count2,
count1,
count2 - count1 as count3,
- count(c.glass_id) as count4,
+ count4,
slots
from (select engineer_id,
tempering_layout_id,
@@ -113,13 +113,10 @@
and tempering_layout_id!=0
group by engineer_id, tempering_layout_id) as a
left join
- (select engineer_id, tempering_layout_id, count(*) as count2
- from glass_info
+ (select gi.engineer_id, gi.tempering_layout_id, count(gi.glass_id) as count2,count(d.glass_id) as count4
+ from glass_info gi left join damage d on gi.glass_id=d.glass_id and (d.type=8 or d.type=9)
group by engineer_id, tempering_layout_id) as b
on a.engineer_id = b.engineer_id and a.tempering_layout_id = b.tempering_layout_id
- left join damage as c
- on a.engineer_id = c.engineer_id and a.tempering_layout_id = c.tempering_layout_id and
- (type = 8 or type = 9)
group by a.engineer_id, a.tempering_layout_id
order by a.engineer_id, a.tempering_layout_id
</select>
--
Gitblit v1.8.0