no message

main
暴炳林 2024-07-11 22:20:23 +08:00
parent aef1578bf1
commit 66aab179db
2 changed files with 4 additions and 3 deletions

View File

@ -441,12 +441,13 @@ public class MlsServiceImpl implements MlsService {
Point endPoint;
List<Point> pointList = pointRepository.findByAreaAndStatus("出库接驳口", BaseStatus.FREE);
if (pointList.size() < 1) {
throw new RuntimeException("无空闲缓存位!");
/* 出库接驳口无空闲库位,更新状态重新分配*/
pointList = pointRepository.findByAreaAndStatus("出库接驳口", BaseStatus.USED);
/*pointList = pointRepository.findByAreaAndStatus("出库接驳口", BaseStatus.USED);
for (Point p : pointList) {
p.setStatus(BaseStatus.FREE);
pointRepository.save(p);
}
}*/
}
endPoint = pointList.get(0);
endPoint.setStatus(BaseStatus.USED);

View File

@ -6,7 +6,7 @@ spring:
freemarker:
check-template-location: false
profiles:
active: prod
active: dev
jackson:
time-zone: GMT+8
data: