Commit 7ea9db98 by 宋毅

tj

parent 8b6af49d
...@@ -36,12 +36,21 @@ class CPatentAggregationsApi extends ApiBase { ...@@ -36,12 +36,21 @@ class CPatentAggregationsApi extends ApiBase {
} }
} }
}; };
if (obj && obj.length > 0) {
for (var x in obj) { for (var x in obj) {
if (obj[x]) { if (obj[x] && obj[x] != "undefined" && obj[x] != "null") {
params.query.bool.must.push(obj[x]); params.query.bool.must.push(obj[x]);
}
} }
} }
else {
return rtn = {
status: -100,
msg: "参数错误",
data: null,
buckets: null
};
}
var rc = System.getObject("util.execClient"); var rc = System.getObject("util.execClient");
var rtn = null; var rtn = null;
...@@ -614,7 +623,7 @@ class CPatentAggregationsApi extends ApiBase { ...@@ -614,7 +623,7 @@ class CPatentAggregationsApi extends ApiBase {
} }
}; };
obj.push({ "exists": { "field": "gr_no" } }); obj.push({ "exists": { "field": "gr_no" } });
for (var x in obj) { for (var x in obj) {
if (obj[x]) { if (obj[x]) {
params.query.bool.must.push(obj[x]); params.query.bool.must.push(obj[x]);
...@@ -666,12 +675,21 @@ class CPatentAggregationsApi extends ApiBase { ...@@ -666,12 +675,21 @@ class CPatentAggregationsApi extends ApiBase {
} }
} }
}; };
if (obj && obj.length > 0) {
for (var x in obj) { for (var x in obj) {
if (obj[x]) { if (obj[x] && obj[x] != "undefined" && obj[x] != "null") {
params.query.bool.must.push(obj[x]); params.query.bool.must.push(obj[x]);
}
} }
} }
else {
return rtn = {
status: -100,
msg: "参数错误",
data: null,
buckets: null
};
}
var rc = System.getObject("util.execClient"); var rc = System.getObject("util.execClient");
var rtn = null; var rtn = null;
...@@ -1797,6 +1815,21 @@ class CPatentAggregationsApi extends ApiBase { ...@@ -1797,6 +1815,21 @@ class CPatentAggregationsApi extends ApiBase {
} }
} }
}; };
if (obj && obj.length > 0) {
for (var x in obj) {
if (obj[x] && obj[x] != "undefined" && obj[x] != "null") {
params.query.bool.must.push(obj[x]);
}
}
}
else {
return rtn = {
status: -100,
msg: "参数错误",
data: null,
buckets: null
};
}
for (var x in obj) { for (var x in obj) {
if (obj[x]) { if (obj[x]) {
......
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 to comment