no message
parent
80b45283b4
commit
2862fdef4f
|
|
@ -427,7 +427,7 @@ public class MlsServiceImpl implements MlsService {
|
||||||
if (inventoryListFuture.join().isEmpty()) {
|
if (inventoryListFuture.join().isEmpty()) {
|
||||||
throw new RuntimeException("无库存信息!");
|
throw new RuntimeException("无库存信息!");
|
||||||
}
|
}
|
||||||
List<String> errorMsgList = new ArrayList<>();
|
try {
|
||||||
inventoryListFuture.thenAccept((result) -> {
|
inventoryListFuture.thenAccept((result) -> {
|
||||||
//目标点
|
//目标点
|
||||||
/*Point endPoint = redisObjectUtils.getObjectFromCache("ckjbk", () -> pointService.findByCode(null, BaseStatus.FREE, null, "出库接驳口", null),
|
/*Point endPoint = redisObjectUtils.getObjectFromCache("ckjbk", () -> pointService.findByCode(null, BaseStatus.FREE, null, "出库接驳口", null),
|
||||||
|
|
@ -442,8 +442,7 @@ public class MlsServiceImpl implements MlsService {
|
||||||
Point endPoint;
|
Point endPoint;
|
||||||
List<Point> pointList = pointRepository.findByAreaAndStatus("出库接驳口", BaseStatus.FREE);
|
List<Point> pointList = pointRepository.findByAreaAndStatus("出库接驳口", BaseStatus.FREE);
|
||||||
if (pointList.size() < 1) {
|
if (pointList.size() < 1) {
|
||||||
errorMsgList.add(inv.getItemKey().getPropC1() + "标签分配无空闲缓存位!");
|
throw new RuntimeException("无空闲出库接驳口!");
|
||||||
continue;
|
|
||||||
/* 出库接驳口无空闲库位,更新状态重新分配*/
|
/* 出库接驳口无空闲库位,更新状态重新分配*/
|
||||||
/*pointList = pointRepository.findByAreaAndStatus("出库接驳口", BaseStatus.USED);
|
/*pointList = pointRepository.findByAreaAndStatus("出库接驳口", BaseStatus.USED);
|
||||||
for (Point p : pointList) {
|
for (Point p : pointList) {
|
||||||
|
|
@ -516,13 +515,10 @@ public class MlsServiceImpl implements MlsService {
|
||||||
taskFuture.join();
|
taskFuture.join();
|
||||||
|
|
||||||
executor.shutdown();
|
executor.shutdown();
|
||||||
});
|
}).join();
|
||||||
|
} catch (Exception e) {
|
||||||
if (!errorMsgList.isEmpty()) {
|
throw new RuntimeException(e.getMessage());
|
||||||
throw new RuntimeException(errorMsgList.toString());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void processInventory(Inventory inv, Point endPoint) {
|
private void processInventory(Inventory inv, Point endPoint) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue