| | |
| | | import com.iailab.module.model.mcs.sche.service.StScheduleSuggestService; |
| | | import com.iailab.module.model.mcs.sche.vo.StScheduleSuggestSaveReqVO; |
| | | import com.iailab.module.model.mdk.vo.ItemVO; |
| | | import com.iailab.module.model.mpk.service.ChartParamService; |
| | | import com.iailab.module.model.mpk.service.ChartService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | |
| | | |
| | | @Autowired |
| | | private StScheduleSchemeService stScheduleSchemeService; |
| | | |
| | | @Autowired |
| | | private ChartParamService chartParamService; |
| | | |
| | | private int HOUR_MINS = 60; |
| | | |
| | |
| | | return stScheduleSchemeService.list(params); |
| | | } |
| | | |
| | | @Override |
| | | public List<ChartParamDTO> getChartParamList(String chartCode) { |
| | | if (StringUtils.isBlank(chartCode)) { |
| | | return null; |
| | | } |
| | | return chartParamService.list(chartCode); |
| | | } |
| | | |
| | | private Date[] calResultTime(ItemVO predictItem, Date startTimeReq, Date endTimeReq, int lengthLeft, int lengthRight) { |
| | | Date[] result = new Date[3]; |
| | | Date predictTime = predictItem.getLastTime(); |