Commit 95096ca2 by 宋毅

tj

parent cfc27721
......@@ -1179,12 +1179,13 @@ auther:sy
try {
rtn = await rc.execPost(params, requrl);
var j = JSON.parse(rtn.stdout);
console.log(rtn.stdout, "rtn.stdout........................############################");
var res = {};
res.total =0;
res.total = 0;
res.data = [];
if (j.hits.total >0){
if (j.hits.total > 0) {
res.total = j.hits.total;
for (var x in j.hits.hits){
for (var x in j.hits.hits) {
res.data.push(j.hits.hits[x]["_source"]);
}
}
......@@ -1294,11 +1295,11 @@ auther:sy
rtn = await rc.execPost(params, requrl);
var j = JSON.parse(rtn.stdout);
var res = {};
res.total =0;
res.total = 0;
res.data = [];
if (j.hits.total >0){
if (j.hits.total > 0) {
res.total = j.hits.total;
for (var x in j.hits.hits){
for (var x in j.hits.hits) {
res.data.push(j.hits.hits[x]["_source"]);
}
}
......@@ -1313,7 +1314,7 @@ auther:sy
if (filingNo == "") {
return System.getResult2(null, "参数不能为空");
}
else{
else {
filingNo = filingNo.replace("CN", "").replace("cn", "").replace(".", "");
if (filingNo.length == 13) {
filingNo = filingNo.substr(0, 12);
......@@ -1363,11 +1364,11 @@ auther:sy
rtn = await rc.execPost(params, requrl);
var j = JSON.parse(rtn.stdout);
var res = {};
res.total =0;
res.total = 0;
res.data = [];
if (j.hits.total >0){
if (j.hits.total > 0) {
res.total = j.hits.total;
for (var x in j.hits.hits){
for (var x in j.hits.hits) {
res.data.push(j.hits.hits[x]["_source"]);
}
}
......
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