|  |  | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 检测当前库位内侧其他库位是否为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")) { | 
 |  |  |                     //D、F、X(不能选定这个外侧库位) | 
 |  |  |                     return true; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         return false; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 检测当前库位内侧其他库位是否为D、F、X、S | 
 |  |  |      * 返回true表示内侧库位不是DFX,返回false表示内侧库位是DFX | 
 |  |  |      */ | 
 |  |  |     public static boolean checkInsideLocIsDFXS(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("S")) { | 
 |  |  |                     //D、F、X、S(不能选定这个外侧库位) | 
 |  |  |                     return true; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         return false; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public static void main(String[] args) { | 
 |  |  |         List<String> groupLoc = Utils.getGroupLoc("1300801"); | 
 |  |  |         System.out.println(groupLoc); |