| | |
| | | import com.zy.asrs.task.handler.MesPakoutHandler; |
| | | 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.io.IOException; |
| | | |
| | | /** |
| | | * 轮询MES接口,生成出库单据 |
| | |
| | | private void execute() { |
| | | |
| | | ReturnT<String> result = null; |
| | | try { |
| | | result = handler.start(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | result = handler.start(); |
| | | if (!result.isSuccess()) { |
| | | log.error(""); |
| | | } |