| | |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Created by Monkey D. Luffy on 2023.10.25 |
| | | * 广德宜科..............以下.............广德宜科.............自动补空板再优化 |
| | |
| | | private SlaveWmsParameterProperties slaveWmsParameterProperties; |
| | | |
| | | /* |
| | | * 自动调空板出库 |
| | | * */ |
| | | * 自动调空板出库 |
| | | * */ |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | private void execute(){ |
| | | if (slaveWmsParameterProperties.isAutomaticFillingBoardStaNosBoolean()){ |
| | | private void execute() { |
| | | if (slaveWmsParameterProperties.isAutomaticFillingBoardStaNosBoolean()) { |
| | | Config config = configService.selectConfigByCode("AutomaticFillingBoard"); |
| | | if (!Cools.isEmpty(config) && !Cools.isEmpty(config.getValue()) && config.getValue().equals("true")){ |
| | | for (Integer staNo : slaveWmsParameterProperties.getAutomaticFillingBoardStaNos()){ |
| | | bareBoardHandler.start(110,staNo,"D"); |
| | | if (!Cools.isEmpty(config) && !Cools.isEmpty(config.getValue()) && config.getValue().equals("true")) { |
| | | for (Integer staNo : slaveWmsParameterProperties.getAutomaticFillingBoardStaNos()) { |
| | | bareBoardHandler.start(110, staNo, "D"); |
| | | } |
| | | } |
| | | } |