自动化立体仓库 - WMS系统
ZY
2025-05-13 1f27b82b5de1bfb7767c2fc0b8bbc37eb3acfa77
src/main/java/com/zy/nc/task/PlanOrderTask.java
@@ -14,12 +14,39 @@
    @Autowired
    private PlanOrderHandler planOrderHandler;
    /**
     * 发货
     *
     * @return
     */
    @Scheduled(cron = "0/3 * * * * ? ")
    public void execute() {
        ReturnT<String> returnT = planOrderHandler.start();
    public void execute1() {
        ReturnT<String> returnT = planOrderHandler.start1();
        if (!returnT.isSuccess()) {
            log.error(returnT.getMsg());
        }
    }
    /**
     * 转库
     *
     * @return
     */
    @Scheduled(cron = "0/3 * * * * ? ")
    public void execute2() {
        ReturnT<String> returnT = planOrderHandler.start2();
        if (!returnT.isSuccess()) {
            log.error(returnT.getMsg());
        }
    }
    @Scheduled(cron = "0/3 * * * * ? ")
    public void execute3() {
//        ReturnT<String> returnT = planOrderHandler.start2();
//        if (!returnT.isSuccess()) {
//            log.error(returnT.getMsg());
//        }
    }
}