Skip to content

Commit

Permalink
PR #85 Add ZTE 2G-2G Relations to network entity relation reports
Browse files Browse the repository at this point in the history
Add ZTE 2G-2G Relations in NETWORK_2G2G_RELATIONS
  • Loading branch information
erssebaggala authored Aug 17, 2019
2 parents 2760acd + ce42a39 commit db5ee2f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,15 @@ t3.data->>'CI' as "NBR CELL ID"
FROM huawei_cm."G2GNCELL" t1
INNER JOIN huawei_cm."GCELL" t2 on t1.data->>'SRC2GNCELLID'=t2.data->>'CELLID'
INNER JOIN huawei_cm."GEXT2GCELL" t3 on t1.data->>'NBR2GNCELLID'=t3.data->>'EXT2GCELLID'
--ZTE 2G-2G RELATIONS
SELECT
'ZTE' as "SRV VENDOR",
REGEXP_REPLACE(t2.data->>'refGLocationArea','\d+,\d+,(\d+),\d+','\1') AS "SRV LAC",
t2.data->>'cellIdentity' as "SRV CELL ID",
REGEXP_REPLACE(t1.data->>'RELATIONCGI','\d+,\d+,(\d+),\d+','\1') AS "NBR LAC",
REGEXP_REPLACE(t1.data->>'RELATIONCGI','\d+,\d+,\d+,(\d+)','\1') AS "NBR CI"
FROM zte_cm."GsmRelation" t1
INNER JOIN ZTE_cm."GsmCell" t2 on t1.data->>'MEID'=t2.data->>'MEID' and t1.data->>'GGsmCellId'=t2.data->>'GGsmCellId' and t1.data->>'GBtsSiteManagerId'=t2.data->>'GBtsSiteManagerId' and t1.data->>'DataType'= t2.data->>'DataType'
';

exports.up = (pgm) => {
Expand Down

0 comments on commit db5ee2f

Please sign in to comment.