zy-acs-manager/src/main/resources/mapper/manager/JamMapper.xml
@@ -53,4 +53,18 @@ AND mj.avo_agv = #{avoAgv} </select> <select id="selectUnfinishedAvoSegByAvo" resultType="com.zy.acs.manager.manager.entity.Jam"> SELECT mj.* FROM man_jam mj 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 avo_seg.state IN ('INIT', 'WAITING') AND mj.avo_agv = #{avoAgv} <if test="currSeg != null"> AND mj.avo_seg = #{currSeg} </if> </select> </mapper>