| | |
| | | |
| | | import com.core.common.Arith; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.core.properties.SlaveProperties; |
| | | |
| | | import java.text.DecimalFormat; |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 检测当前库位内侧其他库位是否为D、F、X |
| | | * 返回true表示内侧库位不是DFX,返回false表示内侧库位是DFX |
| | | */ |
| | | public static boolean checkInsideLocIsDFX(String locNo) { |
| | | LocMastService locMastService = SpringUtils.getBean(LocMastService.class); |
| | | List<String> insideLoc = Utils.getGroupInsideLoc(locNo); |
| | | if (insideLoc.size() > 0) { |
| | | List<LocMast> insideLocMast = locMastService.selectByLocNos(insideLoc); |
| | | for (LocMast mast : insideLocMast) { |
| | | if (!mast.getLocSts().equals("D") |
| | | && !mast.getLocSts().equals("F") |
| | | && !mast.getLocSts().equals("X") |
| | | && !mast.getLocSts().equals("O")) { |
| | | //D、F、X(不能选定这个外侧库位) |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | } |