| | |
| | | LEFT JOIN man_segment jam_seg ON mj.jam_seg = jam_seg.id |
| | | LEFT JOIN man_segment avo_seg ON mj.avo_seg = avo_seg.id |
| | | WHERE 1=1 |
| | | AND mj.state != 'DEPRECATED' |
| | | AND jam_seg.state in ('INIT', 'WAITING') |
| | | AND avo_seg.state not in ('INIT', 'WAITING') |
| | | AND mj.avo_agv = #{avoAgv} |
| | |
| | | LEFT JOIN man_segment jam_seg ON mj.jam_seg = jam_seg.id |
| | | LEFT JOIN man_segment avo_seg ON mj.avo_seg = avo_seg.id |
| | | WHERE 1=1 |
| | | AND mj.state != 'DEPRECATED' |
| | | AND avo_seg.state NOT IN ('INIT', 'WAITING') |
| | | AND mj.jam_seg = #{jamSeg} |
| | | AND mj.avo_agv = #{avoAgv} |
| | |
| | | LEFT JOIN man_segment jam_seg ON mj.jam_seg = jam_seg.id |
| | | LEFT JOIN man_segment avo_seg ON mj.avo_seg = avo_seg.id |
| | | WHERE 1=1 |
| | | AND mj.state != 'DEPRECATED' |
| | | AND avo_seg.state IN ('INIT', 'WAITING') |
| | | AND mj.avo_agv = #{avoAgv} |
| | | <if test="currSeg != null"> |