no message
parent
aef1578bf1
commit
66aab179db
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ spring:
|
|||
freemarker:
|
||||
check-template-location: false
|
||||
profiles:
|
||||
active: prod
|
||||
active: dev
|
||||
jackson:
|
||||
time-zone: GMT+8
|
||||
data:
|
||||
|
|
|
|||
Loading…
Reference in New Issue