Commit 0512b370 authored by chenzhao's avatar chenzhao

电站整体发电历史及功率曲线增加每日

parent c6da4be4
......@@ -56,6 +56,9 @@ public class HouseholdPvApiServiceImpl extends BaseService<HouseholdPvApiDto, Ho
}
BeanUtils.copyProperties(tdHYGFStationMonthGenerate,tdHYGFStationDayGenerate);
tdHYGFStationDayGenerate.setHour(currentTime);
if (tdHYGFStationDayGenerate.getStationState().equals("离线")){
tdHYGFStationDayGenerate.setGenerate(null);
}
tdHYGFStationDayGenerate.setCreatedTime(System.currentTimeMillis());
TdHYGFStationDayGenerateMapper.insert(tdHYGFStationDayGenerate);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment