| | |
| | | **/ |
| | | public static boolean locMoveCheckLocTypeComplete(LocMast loc, LocTypeDto dto) { |
| | | // 如果源库位是高库位,目标库位是低库位 |
| | | return dto.getLocType1().equals(loc.getLocType1()); |
| | | if (dto == null || loc == null) { |
| | | return false; |
| | | } |
| | | if (dto.getLocType1() != null && dto.getLocType1() > 0 && !dto.getLocType1().equals(loc.getLocType1())) { |
| | | return false; |
| | | } |
| | | if (dto.getLocType2() != null && dto.getLocType2() > 0 && !dto.getLocType2().equals(loc.getLocType2())) { |
| | | return false; |
| | | } |
| | | if (dto.getLocType3() != null && dto.getLocType3() > 0 && !dto.getLocType3().equals(loc.getLocType3())) { |
| | | return false; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | } |