| | |
| | | </where> |
| | | </update> |
| | | <update id="updateDeviceIdBySlot"> |
| | | update big_storage_cage_details t innser join big_storage_cage t1 on t.slot = t1.slot |
| | | update big_storage_cage_details t inner join big_storage_cage t1 on t.slot = t1.slot |
| | | set t.device_id = t1.device_id |
| | | where t.slot in ( |
| | | <foreach collection="list" item="item" separator=","> |
| | |
| | | SELECT * |
| | | FROM result |
| | | </select> |
| | | <select id="querybigStorageCageDetail" resultType="com.mes.base.entity.vo.BigStorageVO"> |
| | | SELECT SLOT, COUNT(1) AS COUNT |
| | | FROM BIG_STORAGE_CAGE_DETAILS |
| | | where state in (100, 102, 103, 104) |
| | | group by SLOT |
| | | ORDER BY SLOT |
| | | </select> |
| | | </mapper> |