| | |
| | | </where> |
| | | </sql> |
| | | |
| | | <select id="selectUnfinishedJamByAvo" 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 jam_seg.state in ('INIT', 'WAITING') |
| | | AND avo_seg.state not in ('INIT', 'WAITING') |
| | | AND mj.avo_agv = #{avoAgv} |
| | | <if test="currSeg != null"> |
| | | AND mj.avo_seg = #{currSeg} |
| | | </if> |
| | | <if test="currCode != null"> |
| | | AND mj.avo_code = #{currCode} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |