代码修改

liweidong
绫Umbrella 1 month ago
parent 9effb92a10
commit 06d2df67a1
  1. 3
      blade-service/blade-desk/src/main/java/org/springblade/desk/logistics/service/impl/IOrderBoxServiceImpl.java

@ -704,7 +704,8 @@ public class IOrderBoxServiceImpl implements IOrderBoxService {
new LambdaQueryWrapper<Location>()
.ne(Location::getStatus, ORIGINAL_RACK)
.eq(Location::getLocationStatus, STATUS_FREE)
);
.orderByDesc((sql -> "RIGHT(LOCATION_CODE, 1) = '2'")
));
if (!CollectionUtils.isEmpty(freeLocationList)) {
Location location = freeLocationList.get(0);
task.setLocationId(location.getId());

Loading…
Cancel
Save