| | |
| | | <result column="command_step" property="commandStep" /> |
| | | <result column="transfer_mark" property="transferMark" /> |
| | | <result column="mark_start" property="markStart"/> |
| | | <result column="origin_start_point" property="originStartPoint"/> |
| | | <result column="origin_target_point" property="originTargetPoint"/> |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | <select id="selectPakIn" resultMap="BaseResultMap"> |
| | | select top 1 * from dbo.wcs_task_wrk |
| | | where status=2 |
| | | and crn_no=#{crnNo} |
| | | and wrk_no=#{workNo} |
| | | and start_point=#{startPoint} |
| | | and io_type=1 |
| | | and wrk_sts= 2 |
| | | order by io_pri desc,create_time,wrk_no ASC |
| | | </select> |
| | | |
| | |
| | | |
| | | <select id="selectPakOut" resultMap="BaseResultMap"> |
| | | select * from dbo.wcs_task_wrk |
| | | where crn_no=#{crnNo} |
| | | <if test="targetPoint!=null and targetPoint!='' "> |
| | | and target_point=#{targetPoint} |
| | | </if> |
| | | where |
| | | target_point=#{targetPoint} |
| | | and wrk_sts=11 |
| | | and io_type = 2 |
| | | order by io_pri desc,create_time,wrk_no ASC |
| | |
| | | <select id="selectToBeHistoryData" resultMap="BaseResultMap"> |
| | | select * from dbo.wcs_task_wrk |
| | | where 1=1 |
| | | and (wrk_sts=16 or wrk_sts=7 or wrk_sts=30) |
| | | and (wrk_sts=6 or wrk_sts=16 or status=4 or status=5) |
| | | order by io_pri desc,create_time,wrk_no ASC |
| | | </select> |
| | | |