@@ -131,22 +131,19 @@ private DynGraphqlQuery ExtractIpFilter(DynGraphqlQuery query, string location,
131131 string ipFilterString =
132132 $@ " obj_ip_end: {{ _gte: ${ QueryVarNameFirst1 } }}
133133 obj_ip: {{ _lte: ${ QueryVarNameLast2 } }}" ;
134- string ipFilterStringNegated =
135- $@ " obj_ip_end: {{ _lt: ${ QueryVarNameFirst1 } }}
136- obj_ip: {{ _gt: ${ QueryVarNameLast2 } }}" ;
137134 query . RuleWhereStatement +=
138135 $@ " _or: [
139136 {{
140137 rule_{ location } _neg: {{_eq: false}},
141138 { locationTable } : {{
142139 _or: [{{_and: [{{negated: {{_eq: false}}}}, {{object: {{objgrp_flats: {{objectByObjgrpFlatMemberId: {{ { ipFilterString } }}}}}}}}]}},
143- {{_and: [{{negated: {{_eq: true}}}}, {{object: {{objgrp_flats: {{objectByObjgrpFlatMemberId: {{ { ipFilterStringNegated } }}}}}}}}]}}
140+ {{_and: [{{negated: {{_eq: true}}}}, {{object: {{_not: {{ objgrp_flats: {{objectByObjgrpFlatMemberId: {{ { ipFilterString } }} }}}}}}}}]}}
144141 ]}}
145142 }},
146143 {{
147144 rule_{ location } _neg: {{_eq: true}},
148145 { locationTable } : {{
149- _or: [{{_and: [{{negated: {{_eq: false}}}}, {{object: {{objgrp_flats: {{objectByObjgrpFlatMemberId: {{ { ipFilterStringNegated } }}}}}}}}]}},
146+ _or: [{{_and: [{{negated: {{_eq: false}}}}, {{object: {{_not: {{ objgrp_flats: {{objectByObjgrpFlatMemberId: {{ { ipFilterString } }} }}}}}}}}]}},
150147 {{_and: [{{negated: {{_eq: true}}}}, {{object: {{objgrp_flats: {{objectByObjgrpFlatMemberId: {{ { ipFilterString } }}}}}}}}]}}
151148 ]}}
152149 }},
@@ -155,7 +152,7 @@ private DynGraphqlQuery ExtractIpFilter(DynGraphqlQuery query, string location,
155152 query . NwObjWhereStatement +=
156153 $@ " { locationTable } : {{
157154 _or: [{{_and: [{{negated: {{_eq: false}}}}, {{object: {{objgrp_flats: {{objectByObjgrpFlatMemberId: {{ { ipFilterString } }}}}}}}}]}},
158- {{_and: [{{negated: {{_eq: true}}}}, {{object: {{objgrp_flats: {{objectByObjgrpFlatMemberId: {{ { ipFilterStringNegated } }}}}}}}}]}}
155+ {{_and: [{{negated: {{_eq: true}}}}, {{object: {{_not: {{ objgrp_flats: {{objectByObjgrpFlatMemberId: {{ { ipFilterString } }} }}}}}}}}]}}
159156 ]
160157 }}" ;
161158 ipFilterString = $@ " ip_end: {{ _gte: ${ QueryVarNameFirst1 } }} ip: {{ _lte: ${ QueryVarNameLast2 } }}";
0 commit comments