|
@@ -74,7 +74,8 @@ public class ParsingRpInfoServiceImpl extends ServiceImpl<ParsingRpInfoMapper, P
|
|
|
BigDecimal bigDecimal;
|
|
|
if (parsingRpInfo.getAbleValue() != null) ;
|
|
|
bigDecimal = parsingValue(parsingRpInfo.getRealValue(), fileContent);
|
|
|
-
|
|
|
+ BigDecimal ky = parsingValue("5<=>3", fileContent);
|
|
|
+ BigDecimal ll = parsingValue("5<=>4", fileContent);
|
|
|
|
|
|
Long time = parsingForecastTime(parsingRpInfo.getTime(), fileContent);
|
|
|
|
|
@@ -83,9 +84,10 @@ public class ParsingRpInfoServiceImpl extends ServiceImpl<ParsingRpInfoMapper, P
|
|
|
powerStationStatusData.setStationCode(parsingUrl.getStationCode());
|
|
|
// powerStationStatusData.setAbleValue(bigDecimals.get(0));
|
|
|
powerStationStatusData.setRealValue(bigDecimal);
|
|
|
+ powerStationStatusData.setAbleValue(ky);
|
|
|
+ powerStationStatusData.setTheoryValue(ll);
|
|
|
LocalDateTime localDateTime = LocalDateTime.ofInstant(Instant.ofEpochMilli(time), ZoneId.systemDefault());
|
|
|
powerStationStatusData.setTime(localDateTime);
|
|
|
-
|
|
|
powerStationStatusDataService.save(powerStationStatusData);
|
|
|
|
|
|
log.info("解析RP文件:{} 成功! O(∩_∩)O", file.getName());
|