| | |
| | | import com.ruoyi.system.model.*; |
| | | import com.ruoyi.system.service.*; |
| | | import javafx.concurrent.Task; |
| | | 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; |
| | |
| | | * @author xiaochen |
| | | * @date 2025/6/11 18:39 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class TaskUtil { |
| | | |
| | |
| | | |
| | | // 抽取保洁员 |
| | | List<TCleaner> tCleaners = randomSelection(cleaners, dayCleanerCount); |
| | | if(CollectionUtils.isEmpty(tCleaners)){ |
| | | log.error("没有可抽取的保洁员"); |
| | | continue; |
| | | } |
| | | if(tCleaners.size() < dayCleanerCount){ |
| | | List<String> cleanIds = tCleaners.stream().map(TCleaner::getId).collect(Collectors.toList()); |
| | | List<TCleaner> cleaners1 = cleanerService.list(Wrappers.lambdaQuery(TCleaner.class) |