| | |
| | | import com.zy.asrs.mapper.LocMastMapper; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.service.RowLastnoService; |
| | | import com.zy.asrs.utils.Utils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public LocMast findNearloc(String locNo) { |
| | | LocMast locMast = null; |
| | | List<String> groupOuterLoc = Utils.getGroupLocNo(locNo, true); |
| | | if (!Cools.isEmpty(groupOuterLoc)) { |
| | | for (String loc : groupOuterLoc) { |
| | | LocMast tmp = this.selectById(loc); |
| | | if (tmp == null) { |
| | | continue; |
| | | } |
| | | |
| | | if (tmp.getLocSts().equals("O")) { |
| | | locMast = tmp; |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | return locMast; |
| | | } |
| | | |
| | | @Override |
| | | public List<LocMast> selectLocMastShuttleMoveUnilateral(Integer bay,Integer lev,Integer crnNo) { |
| | | if (crnNo==1){ |
| | | return this.baseMapper.selectLocShuttleMoveUnilateralY(bay,lev); |