Commit c7c6b3e1 by 宋毅

tj

parent cab282ea
......@@ -1315,7 +1315,7 @@ auther:sy
}
};
async paDataOrderByPubno(obj){//查询所有专利,按公开日倒序排列
async paDataOrderByPubno(obj) {//查询所有专利,按公开日倒序排列
var pagesize = obj.page_size == null || obj.page_size == "" || obj.page_size == "undefined" ? 20 : obj.page_size;
var from = obj.current_page == null || obj.current_page == "" || obj.current_page == "undefined" ? 0 : Number((obj.current_page - 1) * pagesize);
var params = {
......@@ -1330,6 +1330,7 @@ auther:sy
"filing_name",
"filing_no",
"pub_no",
"gr_no",
"abstr_text"
],
"sort": [
......@@ -1352,7 +1353,18 @@ auther:sy
for (let index = 0; index < j.hits.hits.length; index++) {
const element = j.hits.hits[index];
if (element) {
res.data.push(element["_source"]);
var surep = {
"filing_no": element["_source"]["filing_no"],
"filing_name": element["_source"]["filing_name"],
"abstr_text": element["_source"]["abstr_text"],
}
if (element["_source"]["pub_no"]) {
surep["pub_no"] = element["_source"]["pub_no"]
}
else {
surep["pub_no"] = element["_source"]["gr_no"]
}
res.data.push(surep);
}
}
}
......@@ -1360,9 +1372,9 @@ auther:sy
} catch (e) {
return System.getResult2(null, "获取数据出错");
}
};
}
async paDetailsByfilingNo(obj) {
var filingNo = obj.filingNo == null || obj.filingNo == "" || obj.filingNo == "undefined" || obj.filingNo == "null" ? "" : obj.filingNo;
if (filingNo == "") {
......
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