|
@@ -102,7 +102,7 @@ public class IvPvCurveFittingService {
|
|
|
String columnName = getFixedVos().stream().map(FixedVo::getDes).collect(Collectors.joining(","));
|
|
|
//遍历逆变器
|
|
|
for (List<PhotovoltaicInfo> data : datas) {
|
|
|
- PhotovoltaicInfo info = data.get(data.size()-1);
|
|
|
+ PhotovoltaicInfo info = data.get(0);
|
|
|
String station = info.getStation();
|
|
|
String fileName = config.getGfDataPath() + station + "-" + info.getInverter() + "-" + DateUtils.date2StringS(new Date(info.getTime())) + ".csv";
|
|
|
File file = new File(fileName);
|
|
@@ -198,7 +198,7 @@ public class IvPvCurveFittingService {
|
|
|
*/
|
|
|
public Map<String, List<PhotovoltaicInfo>> calculatAnalysis(List<String> fileList) {
|
|
|
|
|
|
- String bzcldPath = config.getFilePathPrepare() + "bzd/标准点.csv";
|
|
|
+ String bzcldPath = config.getFilePathPrepare() + "bzd" + File.separator + "标准点.csv";
|
|
|
List<PhotovoltaicInfo> bzclds = file2Info(bzcldPath, true);
|
|
|
Map<String, PhotovoltaicInfo> bzcldMap = bzclds.stream().collect(Collectors.toMap(PhotovoltaicInfo::getInverter, Function.identity()));
|
|
|
|
|
@@ -511,9 +511,9 @@ public class IvPvCurveFittingService {
|
|
|
ProBasicPowerstationPoint zjwdPoint = InitialRunner.newzjwdMap.get(station);
|
|
|
|
|
|
//总辐射
|
|
|
- List<TsDoubleData> zfsDatas = remoteService.adapterfd().getHistorySnap(zfsPoint.getNemCode(), start, end, interval);
|
|
|
+ List<TsDoubleData> zfsDatas = remoteService.adaptergf().getHistorySnap(zfsPoint.getNemCode(), start, end, interval);
|
|
|
//组件温度
|
|
|
- List<TsDoubleData> zjwdDatas = remoteService.adapterfd().getHistorySnap(zjwdPoint.getNemCode(), start, end, interval);
|
|
|
+ List<TsDoubleData> zjwdDatas = remoteService.adaptergf().getHistorySnap(zjwdPoint.getNemCode(), start, end, interval);
|
|
|
List<List<PhotovoltaicInfo>> infosLit = new ArrayList<>();
|
|
|
//按逆变器
|
|
|
for (String wtid : zglpoints.keySet()) {
|