| | |
| | | CREATE INDEX idx_agv_action ON man_action(agv_id, action_sts); |
| | | CREATE INDEX idx_group_io_time ON man_action(group_id, io_time); |
| | | CREATE INDEX idx_priority ON man_action(priority); |
| | | |
| | | CREATE INDEX idx_action_sts ON man_action(action_sts); |
| | | CREATE INDEX idx_action_sts_uuid ON man_action_sts(uuid); |
| | | CREATE INDEX idx_action_type_uuid ON man_action_type(uuid); |
| | | CREATE INDEX idx_agv_model_type ON man_agv_model(type); |
| | |
| | | </select> |
| | | |
| | | <select id="selectPrepareGroup" resultType="java.lang.String"> |
| | | SELECT |
| | | group_id |
| | | FROM man_action |
| | | WHERE 1=1 |
| | | AND action_sts = (SELECT id FROM man_action_sts WHERE UUID = 'PREPARE') |
| | | AND group_id IS NOT NULL |
| | | GROUP BY group_id |
| | | SELECT ma.group_id |
| | | FROM man_action ma |
| | | JOIN man_action_sts mas ON ma.action_sts = mas.id |
| | | WHERE mas.UUID = 'PREPARE' |
| | | AND ma.group_id IS NOT NULL |
| | | GROUP BY ma.group_id |
| | | </select> |
| | | |
| | | <select id="selectTaskIdsByGroupId" resultType="java.lang.Long"> |