自动化立体仓库 - WMS系统
野心家
2024-11-11 d7b8a1165db6ba6beafde9cb98b7a08afa57ed70
src/main/java/com/zy/asrs/task/EmptyOutWing.java
@@ -12,6 +12,8 @@
import com.zy.asrs.service.WrkMastService;
import com.zy.common.model.enums.WorkNoType;
import com.zy.common.service.CommonService;
import com.zy.system.entity.Config;
import com.zy.system.service.ConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@@ -30,10 +32,16 @@
    private StaDescService staDescService;
    @Autowired
    private CommonService commonService;
    @Autowired
    ConfigService configService;
    @Scheduled(cron = "0/3 * * * * ? ")
    private void execute() {
        Config config = configService.selectConfigByCode("AutoEmpty");
        if(config.getStatus()==0){
            return;
        }
        int count = wrkMastService.selectCount(new EntityWrapper<WrkMast>().eq("io_type", 110));
        if (count > 0) {
            WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("io_type", 110).eq("wrk_sts", 7));