no message

main
HUOJIN\92525 2024-07-15 17:03:01 +08:00
parent 80b45283b4
commit 2862fdef4f
1 changed files with 67 additions and 71 deletions

View File

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