自动化立体仓库 - WMS系统
pang.jiabao
3 天以前 4725ab4c1f4d0560097ae3469a42de23eb459056
src/main/java/com/zy/asrs/task/AutoReportingScheduler.java
@@ -5,6 +5,8 @@
import com.zy.asrs.entity.OrderDetl;
import com.zy.asrs.service.OrderDetlService;
import com.zy.asrs.task.handler.AutoReportingHandler;
import com.zy.system.entity.Config;
import com.zy.system.service.ConfigService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@@ -27,9 +29,14 @@
    @Resource
    private AutoReportingHandler autoReportingHandler;
    @Resource
    private ConfigService configService;
//    @Scheduled(cron = "0 0/10 * * * ? ")
    @Scheduled(cron = "0/3 * * * * ? ")
    @Scheduled(cron = "0/10 * * * * ? ")
    void execute() {
        Config config = configService.selectConfigByCode("AutoReportU8");
        if (config != null && config.getStatus() == 1) {
        List<OrderDetl> orderDetls = orderDetlService.selectList(new EntityWrapper<OrderDetl>().eq("inspect", 2));
        if (Cools.isEmpty(orderDetls)) {
            return;
@@ -44,3 +51,4 @@
        }
    }
}
}