| | |
| | | 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; |
| | |
| | | |
| | | 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()]; |