Commit 71140e02 by 高宇强

gyq

parent 7dda205e
...@@ -32,7 +32,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -32,7 +32,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -83,7 +83,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -83,7 +83,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -134,7 +134,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -134,7 +134,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -185,7 +185,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -185,7 +185,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -236,7 +236,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -236,7 +236,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -297,7 +297,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -297,7 +297,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -369,7 +369,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -369,7 +369,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -441,7 +441,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -441,7 +441,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -502,7 +502,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -502,7 +502,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -574,7 +574,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -574,7 +574,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -646,7 +646,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -646,7 +646,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -707,7 +707,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -707,7 +707,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -779,7 +779,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -779,7 +779,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -851,7 +851,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -851,7 +851,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -912,7 +912,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -912,7 +912,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -984,7 +984,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -984,7 +984,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -1056,7 +1056,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -1056,7 +1056,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -1118,7 +1118,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -1118,7 +1118,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -1169,7 +1169,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -1169,7 +1169,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -1240,7 +1240,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -1240,7 +1240,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -1301,7 +1301,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -1301,7 +1301,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -1362,7 +1362,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -1362,7 +1362,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -1423,7 +1423,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -1423,7 +1423,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -1494,7 +1494,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -1494,7 +1494,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -1565,7 +1565,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -1565,7 +1565,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -1636,7 +1636,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -1636,7 +1636,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -1707,7 +1707,7 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -1707,7 +1707,7 @@ class WPatentAggregationsApi extends ApiBase {
}; };
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]);
} }
} }
...@@ -1733,9 +1733,6 @@ class WPatentAggregationsApi extends ApiBase { ...@@ -1733,9 +1733,6 @@ class WPatentAggregationsApi extends ApiBase {
}; };
} }
}; };
} }
module.exports = WPatentAggregationsApi; module.exports = WPatentAggregationsApi;
\ No newline at end of file
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