#
zwl
2025-07-19 6193eddf242c4b879402367704b8b5b2e8df84a4
src/main/java/com/zy/asrs/task/SameLayerTransferScheduler.java
@@ -13,6 +13,7 @@
import com.zy.system.entity.Config;
import com.zy.system.service.ConfigService;
import lombok.extern.slf4j.Slf4j;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@@ -45,9 +46,13 @@
        if (config.getValue().equals("true")) {
            List<TaskWrk> taskWrks = taskWrkService.selectList(new EntityWrapper<TaskWrk>());
            if (Cools.isEmpty(taskWrks)) {
            if (taskWrks.size() < 3) {
                List<LocMast> locMasts = locMastService.selectList(new EntityWrapper<LocMast>().eq("loc_sts", "F"));
                for (LocMast locMast : locMasts) {
                    TaskWrk taskWrk1 = taskWrkService.selectOne(new EntityWrapper<TaskWrk>().eq("start_point",locMast.getLocNo()));
                    if(!Cools.isEmpty(taskWrk1)){
                        continue;
                    }
                    List<LocMast> list = locMastService.selectList(new EntityWrapper<LocMast>().eq("loc_sts", "O").eq("lev1", locMast.getLev1()));
                    String[] locMs = new String[list.size()];