|
|
@@ -211,7 +211,13 @@ public class DataWeatherLocalServiceImpl implements IDataWeatherLocalService
|
|
|
@Override
|
|
|
public List<DataWeatherLocal> selectIrradianceByTimeRange(Long stationId, Long startTime, Long endTime)
|
|
|
{
|
|
|
- return dataWeatherLocalMapper.selectDataWeatherLocalListByTimeRange(stationId, startTime, endTime);
|
|
|
+ Instant startInstant = Instant.ofEpochSecond(startTime);
|
|
|
+ String startIFormatted = startInstant.atZone(ZoneId.of("Asia/Shanghai"))
|
|
|
+ .format(DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ssXXX"));
|
|
|
+ Instant endInstant = Instant.ofEpochSecond(endTime);
|
|
|
+ String endIFormatted = endInstant.atZone(ZoneId.of("Asia/Shanghai"))
|
|
|
+ .format(DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ssXXX"));
|
|
|
+ return dataWeatherLocalMapper.selectDataWeatherLocalListByTimeRange(stationId, startIFormatted, endIFormatted);
|
|
|
}
|
|
|
|
|
|
/**
|