no message
							parent
							
								
									aef1578bf1
								
							
						
					
					
						commit
						66aab179db
					
				| 
						 | 
					@ -441,12 +441,13 @@ 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) {
 | 
				
			||||||
 | 
					                    throw new RuntimeException("无空闲缓存位!");
 | 
				
			||||||
                    /* 出库接驳口无空闲库位,更新状态重新分配*/
 | 
					                    /* 出库接驳口无空闲库位,更新状态重新分配*/
 | 
				
			||||||
                    pointList = pointRepository.findByAreaAndStatus("出库接驳口", BaseStatus.USED);
 | 
					                    /*pointList = pointRepository.findByAreaAndStatus("出库接驳口", BaseStatus.USED);
 | 
				
			||||||
                    for (Point p : pointList) {
 | 
					                    for (Point p : pointList) {
 | 
				
			||||||
                        p.setStatus(BaseStatus.FREE);
 | 
					                        p.setStatus(BaseStatus.FREE);
 | 
				
			||||||
                        pointRepository.save(p);
 | 
					                        pointRepository.save(p);
 | 
				
			||||||
                    }
 | 
					                    }*/
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                endPoint = pointList.get(0);
 | 
					                endPoint = pointList.get(0);
 | 
				
			||||||
                endPoint.setStatus(BaseStatus.USED);
 | 
					                endPoint.setStatus(BaseStatus.USED);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -6,7 +6,7 @@ spring:
 | 
				
			||||||
  freemarker:
 | 
					  freemarker:
 | 
				
			||||||
    check-template-location: false
 | 
					    check-template-location: false
 | 
				
			||||||
  profiles:
 | 
					  profiles:
 | 
				
			||||||
    active: prod
 | 
					    active: dev
 | 
				
			||||||
  jackson:
 | 
					  jackson:
 | 
				
			||||||
    time-zone: GMT+8
 | 
					    time-zone: GMT+8
 | 
				
			||||||
  data:
 | 
					  data:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue