Fixing the issue in single condition

4.x.x EMM-2.1.0-M2
geethkokila 9 years ago
parent 9661502524
commit d6923a1343

@ -50,8 +50,8 @@ public class QueryBuilderImpl implements QueryBuilder {
if (conditions.get(0).getKey().equalsIgnoreCase(Constants.LOCATION)) { if (conditions.get(0).getKey().equalsIgnoreCase(Constants.LOCATION)) {
locConditon = conditions.get(0); locConditon = conditions.get(0);
} else if (Utils.getDeviceDetailsColumnNames().containsKey(conditions.get(0)) || } else if (Utils.getDeviceDetailsColumnNames().containsKey(conditions.get(0).getKey()) ||
Utils.getDeviceLocationColumnNames().containsKey(conditions.get(0))) { Utils.getDeviceLocationColumnNames().containsKey(conditions.get(0).getKey())) {
andColumns.add(conditions.get(0)); andColumns.add(conditions.get(0));
} else { } else {
otherANDColumns.add(conditions.get(0)); otherANDColumns.add(conditions.get(0));

Loading…
Cancel
Save