| | |
| | | import com.iailab.module.model.mcs.sche.vo.StScheduleSuggestSaveReqVO; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.UUID; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * @author PanZhibao |
| | |
| | | .le(null != vo.getEndTime(),"schedule_time",vo.getEndTime()); |
| | | return ConvertUtils.sourceToTarget(baseDao.selectList(queryWrapper),ScheduleSuggestRespDTO.class); |
| | | } |
| | | |
| | | @Override |
| | | public List<StScheduleSuggestEntity> getList(List<String> scheduleObjList, Date predictTime) { |
| | | if (CollectionUtils.isEmpty(scheduleObjList)) { |
| | | return new ArrayList<>(); |
| | | } |
| | | QueryWrapper<StScheduleSuggestEntity> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.in("schedule_obj", scheduleObjList); |
| | | queryWrapper.eq("schedule_time", predictTime); |
| | | return baseDao.selectList(queryWrapper); |
| | | } |
| | | } |