Commit 33c3a4c8ba92fab4dd3c3780f2e75fc8ee98a9a2

Authored by pengyongcheng
1 parent dd62ef55

fix: 库位分配规则调整:优先低列低层

src/main/java/com/huaheng/api/wcs/service/warecellAllocation/LocationAllocationServiceImpl.java
... ... @@ -186,7 +186,6 @@ public class LocationAllocationServiceImpl implements LocationAllocationService
186 186 .eq(StringUtils.isNotEmpty(materialAreaCode), Location::getMaterialAreaCode, materialAreaCode)
187 187 .in(Location::getLocationType, locationTypeCodeList)
188 188 .eq(Location::getContainerCode, "")
189   - .orderByAsc(Location::getIRow)
190 189 .orderByAsc(Location::getIColumn)
191 190 .orderByAsc(Location::getILayer);
192 191 List<Location> locationList = locationService.list(locationLambda);
... ... @@ -194,7 +193,7 @@ public class LocationAllocationServiceImpl implements LocationAllocationService
194 193 return null;
195 194 }
196 195 Location location = locationList.stream().findFirst().orElse(null);
197   - return location == null ? null : location.getCode();
  196 + return location.getCode();
198 197 }
199 198  
200 199 }
... ...