| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | @Slf4j |
| | | //@Component |
| | | @Component |
| | | public class AutoRunScheduler { |
| | | |
| | | private static final AgvModelType DEFAULT_AGV_MODEL = AgvModelType.CTU_BOX_TRANSPORT_AGV; |
| | |
| | | List<Area> list = areaService.list(new LambdaQueryWrapper<Area>().eq(Area::getName, areaCode)); |
| | | Optional<Integer> max = list.stream().map(Area::getPriority).filter(Objects::nonNull).max(Integer::compareTo); |
| | | Integer priority = max.isPresent() ? max.get() : null; |
| | | if (!Cools.isEmpty(priority)) { |
| | | if (Cools.isEmpty(priority)) { |
| | | // 入库 |
| | | this.runStaToLoc(agvModel, testAreaCodes, memo); |
| | | // 出库 |