| | |
| | | * 2022-06-09 TQS修改,查询工作档LIST,遍历下发,防止第一个任务堵塞出库 |
| | | */ |
| | | public void locToCrnStn(CrnSlave slave, CrnProtocol crnProtocol){ |
| | | List<TaskWrk> taskWrksInitial = taskWrkMapper.selectPakOut(slave.getId(), null); |
| | | if (taskWrksInitial.size()==0){ |
| | | return; |
| | | } |
| | | for (CrnSlave.CrnStn crnStn : slave.getCrnOutStn()) { |
| | | List<StaDesc> staDescs = staDescMapper.selectList(new EntityWrapper<StaDesc>().eq("crn_no", slave.getId()).eq("crn_stn", crnStn.getStaNo())); |
| | | for (StaDesc staDesc : staDescs){ |
| | |
| | | <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> |
| | | and wrk_sts=11 |
| | | and io_type = 2 |
| | | order by io_pri desc,create_time,wrk_no ASC |