| | |
| | | </if> |
| | | </select> |
| | | <select id="queryHollowbigStorageCageDetail" resultType="com.mes.base.entity.vo.BigStorageVO"> |
| | | select hbsc.device_id, hbsc.slot, count(hbscd.glass_id) as count |
| | | select hbsc.device_id, |
| | | hbsc.slot, |
| | | hbscd.glass_id, |
| | | if(hbscd.width > hbscd.height, hbscd.width, hbscd.height) as length |
| | | from hollow_big_storage_cage hbsc |
| | | left join hollow_big_storage_cage_details hbscd |
| | | on hbsc.slot = hbscd.slot and hbscd.state in (100, 102, 103, 104) |
| | | group by hbsc.device_id, hbsc.slot |
| | | group by hbsc.device_id, hbsc.slot, hbscd.glass_id |
| | | order by hbsc.device_id, hbsc.slot |
| | | </select> |
| | | <select id="querySlotMaxSequence" resultType="com.mes.hollow.entity.HollowBigStorageCageDetails"> |