| | |
| | | // @Select("select top 1 * from dbo.asr_wrk_mast where wrk_sts=11 and (io_type=11 or io_type=110) and crn_no=#{crnNo} order by io_time,wrk_no") |
| | | WrkMast selectLocMove(@Param("crnNo")Integer crnNo); |
| | | |
| | | //收集所有移库任务 |
| | | List<WrkMast> selectLocMoves(@Param("crnNo")Integer crnNo); |
| | | |
| | | WrkMast selectLocMoving(@Param("crnNo")Integer crnNo); |
| | | |
| | | WrkMast selectWorking(@Param("crnNo")Integer crnNo); |
| | |
| | | * 库位移转 |
| | | */ |
| | | public void locToLoc(CrnSlave slave, CrnProtocol crnProtocol){ |
| | | //获取所有移库任务 |
| | | List<WrkMast> wrkMasts=wrkMastMapper.selectLocMoves(slave.getId()); |
| | | // 获取工作档信息 |
| | | WrkMast wrkMast = wrkMastMapper.selectLocMove(slave.getId()); |
| | | if(Cools.isEmpty(wrkMasts)){ |
| | | return; |
| | | } |
| | | if (null == wrkMast) { |
| | | return; |
| | | } |
| | | for (WrkMast wm: wrkMasts) { |
| | | if(wm.getMk().equals('Y')){ |
| | | wrkMast=wm; |
| | | break; |
| | | } |
| | | } |
| | | // 获取源库位信息 |
| | | LocMast sourceSta = locMastService.selectById(wrkMast.getSourceLocNo()); |
| | | if (null == sourceSta) { |
| | |
| | | </select> |
| | | |
| | | <select id="selectLocMove" resultMap="BaseResultMap"> |
| | | select top 1 * from dbo.asr_wrk_mast where wrk_sts=11 and io_type=11 and crn_no=#{crnNo} and mk = 'Y' order by io_pri desc,io_time ASC,wrk_no ASC |
| | | select top 1 * from dbo.asr_wrk_mast where wrk_sts=11 and io_type=11 and crn_no=#{crnNo} order by io_pri desc,io_time ASC,wrk_no ASC |
| | | </select> |
| | | |
| | | <select id="selectLocMoves" resultMap="BaseResultMap"> |
| | | select from dbo.asr_wrk_mast where wrk_sts=11 and io_type=11 and crn_no=#{crnNo} order by io_pri desc,io_time ASC,wrk_no ASC |
| | | </select> |
| | | |
| | | <select id="selectLocMoving" resultMap="BaseResultMap"> |