@enervance/insight-cim-model 0.0.312 → 0.0.313
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/converter/integral7/converter.integral7.js +5 -0
- package/dist/converter/integral7/converter.integral7.js.map +1 -1
- package/dist/model/topology/TopologicalNode.js +1 -2
- package/dist/model/topology/TopologicalNode.js.map +1 -1
- package/dist/model/wires/TransformerEnd.js +1 -2
- package/dist/model/wires/TransformerEnd.js.map +1 -1
- package/dist/utils2/parser.utils.d.ts +1 -1
- package/dist/utils2/parser.utils.js +13 -7
- package/dist/utils2/parser.utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -697,6 +697,9 @@ class ConverterIntegral7 {
|
|
|
697
697
|
return;
|
|
698
698
|
if (!this.isTableAvailable(integral_sql_1.Integral7TableNames.ERG_LFL_ANSCHLUSS))
|
|
699
699
|
return;
|
|
700
|
+
const keys = Array.from(svProfileData.keys());
|
|
701
|
+
if (!keys.length)
|
|
702
|
+
return;
|
|
700
703
|
const result = yield this.mysqlController.execQuery((0, integral_sql_1.getPfResultQuery)(integral_sql_1.I7Objects.ERG_LFL_ANSCHLUSS, powerFlowResultID, [...svProfileData.keys()]));
|
|
701
704
|
for (const i7Data of result) {
|
|
702
705
|
const terminalMapping = svProfileData.get(i7Data.id);
|
|
@@ -806,6 +809,8 @@ class ConverterIntegral7 {
|
|
|
806
809
|
const powerTransformersI7IDs = Array.from(cimModel.powerTransformer.values()).map(it => this.UUID2Integral7ID.get(it.getUUID())).flat();
|
|
807
810
|
if (!this.isTableAvailable(integral_sql_1.Integral7TableNames[trafoType]))
|
|
808
811
|
return;
|
|
812
|
+
if (!powerTransformersI7IDs.length)
|
|
813
|
+
return;
|
|
809
814
|
const result = yield this.mysqlController.execQuery((0, integral_sql_1.getPfResultQuery)(trafoType, powerFlowResultID, powerTransformersI7IDs));
|
|
810
815
|
for (const i7Data of result) {
|
|
811
816
|
const trafoUUID = this.integralID2UUID.get(i7Data.id);
|