| | |
| | | import com.iailab.module.model.mdk.sample.dto.ColumnItemPort; |
| | | import com.iailab.module.model.mdk.sample.dto.SampleInfo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.sql.Timestamp; |
| | | import java.util.Calendar; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | calendar.setTime(originalTime); |
| | | switch (columnItem.getParamType()) { |
| | | case "DATAPOINT": |
| | | ApiPointDTO dataPoint = dataPointApi.getPointById(columnItem.getParamId()); |
| | | ApiPointDTO dataPoint = dataPointApi.getInfoById(columnItem.getParamId()); |
| | | if (dataPoint == null) { |
| | | return null; |
| | | } |
| | |
| | | calendar.setTime(originalTime); |
| | | switch (columnItem.getParamType()) { |
| | | case "DATAPOINT": |
| | | ApiPointDTO dataPoint = dataPointApi.getPointById(columnItem.getParamId()); |
| | | ApiPointDTO dataPoint = dataPointApi.getInfoById(columnItem.getParamId()); |
| | | if (dataPoint == null) { |
| | | return null; |
| | | } |
| | |
| | | Integer granularity = 60; |
| | | switch (columnItem.getParamType()) { |
| | | case "DATAPOINT": |
| | | ApiPointDTO dataPoint = dataPointApi.getPointById(columnItem.getParamId()); |
| | | ApiPointDTO dataPoint = dataPointApi.getInfoById(columnItem.getParamId()); |
| | | granularity = DataPointFreq.getEumByCode(dataPoint.getMinfreqid()).getValue(); |
| | | break; |
| | | case "PREDICTITEM": |