Commit 6c06d528 by huangjy

feat,查询时间范围内上报的日志

parent 4b83c884
......@@ -177,7 +177,7 @@ public class IotProductDeviceService extends IotCommonService {
Term term1 = Term.builder()
.column("timestamp")
.termType("gte")
.type(Term.Type.or)
.type(Term.Type.and)
.value(startTime)
.terms(Lists.newArrayList())
.options(Lists.newArrayList())
......@@ -190,6 +190,15 @@ public class IotProductDeviceService extends IotCommonService {
.terms(Lists.newArrayList())
.options(Lists.newArrayList())
.build();
Term term3 = Term.builder()
.column("type")
.termType("eq")
.type(Term.Type.or)
.value("event")
.terms(Lists.newArrayList())
.options(Lists.newArrayList())
.build();
terms.add(term3);
terms.add(term1);
terms.add(term2);
iotQueryParam.setTerms(terms);
......@@ -225,7 +234,7 @@ public class IotProductDeviceService extends IotCommonService {
List<Term> terms = Lists.newArrayList();
Term term = Term.builder()
.column("type")
.termType("btw")
.termType("eq")
.type(Term.Type.or)
.value(typeValue)
.terms(Lists.newArrayList())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment