1.谐波溯源算法

2.北京暂降平台
This commit is contained in:
2025-10-11 11:06:40 +08:00
parent 90b2589641
commit f587c11b98
10 changed files with 89 additions and 74 deletions

View File

@@ -34,7 +34,7 @@ public class UpHarmonicDetail implements Serializable {
/**
* 事件id
*/
@TableField(value = "id")
@TableId(value = "id")
private String id;
/**

View File

@@ -80,8 +80,14 @@ public class RespDataResultServiceImpl extends ServiceImpl<RespDataResultMapper,
String respStr = IoUtil.readUtf8(respStream);
List<CustomerResponsibility> respData = JSONArray.parseArray(respStr, CustomerResponsibility.class);
if(Objects.nonNull(respDataQuery.getType()) && respDataQuery.getType().equals(CalculationType.SYSTEM_TYPE.getCode())){
customerData.forEach(item->item.setCustomerName(item.getCustomerName().substring(0,item.getCustomerName().indexOf("("))));
respData.forEach(item->item.setCustomerName(item.getCustomerName().substring(0,item.getCustomerName().indexOf("("))));
customerData.forEach(item->{if(item.getCustomerName().contains("(")) {
item.setCustomerName(item.getCustomerName().substring(0,item.getCustomerName().indexOf("(")));
}
});
respData.forEach(item->{if(item.getCustomerName().contains("(")) {
item.setCustomerName(item.getCustomerName().substring(0,item.getCustomerName().indexOf("(")));
}
});
}
responsibilityResult.setResponsibilities(respData);
responsibilityResult.setDatas(customerData);

View File

@@ -622,10 +622,6 @@ public class RespDataServiceImpl extends ServiceImpl<RespDataMapper, RespData> i
}
}
if(Objects.nonNull(responsibilityCalculateParam.getSystemType()) && responsibilityCalculateParam.getSystemType()==CalculationType.SYSTEM_TYPE.getCode()){
customerData.forEach(item->item.setCustomerName(item.getCustomerName().substring(0,item.getCustomerName().indexOf("("))));
customerResponsibilities.forEach(item->item.setCustomerName(item.getCustomerName().substring(0,item.getCustomerName().indexOf("("))));
}
result.setDatas(customerData);
result.setTimeDatas(timeDatas);
@@ -719,6 +715,12 @@ public class RespDataServiceImpl extends ServiceImpl<RespDataMapper, RespData> i
String customerResPath = fileStorageUtil.uploadStream(customerResStream, OssPath.RESPONSIBILITY_USER_RESULT_DATA, FileUtil.generateFileName("json"));
respDataResult.setUserResponsibility(customerResPath);
respDataResultService.save(respDataResult);
}
if (Objects.nonNull(responsibilityCalculateParam.getSystemType()) && responsibilityCalculateParam.getSystemType() == CalculationType.SYSTEM_TYPE.getCode()) {
customerData.forEach(item -> item.setCustomerName(item.getCustomerName().substring(0, item.getCustomerName().indexOf("("))));
customerResponsibilities.forEach(item -> item.setCustomerName(item.getCustomerName().substring(0, item.getCustomerName().indexOf("("))));
}
//防止过程中创建了大量的对象主动调用下GC处理
System.gc();