Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
3e975747
Commit
3e975747
authored
Jan 16, 2020
by
高宇强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
526a5022
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
35 deletions
+81
-35
igirl-zcapi/app/base/api/impl/patent/chinapatentsearch.js
+28
-9
igirl-zcapi/app/base/api/impl/patent/copyrightsearch.js
+28
-16
igirl-zcapi/app/base/service/impl/enterprise/enterpriseSve.js
+25
-10
No files found.
igirl-zcapi/app/base/api/impl/patent/chinapatentsearch.js
View file @
3e975747
...
@@ -1302,8 +1302,11 @@ auther:sy
...
@@ -1302,8 +1302,11 @@ auther:sy
res
.
data
=
[];
res
.
data
=
[];
if
(
j
.
hits
.
total
>
0
)
{
if
(
j
.
hits
.
total
>
0
)
{
res
.
total
=
j
.
hits
.
total
;
res
.
total
=
j
.
hits
.
total
;
for
(
var
x
in
j
.
hits
.
hits
)
{
for
(
let
index
=
0
;
index
<
j
.
hits
.
hits
.
length
;
index
++
)
{
res
.
data
.
push
(
j
.
hits
.
hits
[
x
][
"_source"
]);
const
element
=
j
.
hits
.
hits
[
index
];
if
(
element
)
{
res
.
data
.
push
(
element
[
"_source"
]);
}
}
}
}
}
return
System
.
getResult2
(
res
,
null
);
return
System
.
getResult2
(
res
,
null
);
...
@@ -1339,24 +1342,37 @@ auther:sy
...
@@ -1339,24 +1342,37 @@ auther:sy
}
}
},
},
"_source"
:
[
"_source"
:
[
"filing_name"
,
"pub_status_now"
,
"filing_no"
,
"filing_no"
,
"pub_type"
,
"filing_time"
,
"filing_time"
,
"pub_no"
,
"gr_time"
,
"gr_time"
,
"gr_no"
,
"gr_no"
,
"pub_time"
,
"pub_time"
,
"
pub_no
"
,
"
agency_code
"
,
"agency_name"
,
"agency_name"
,
"agent_name1"
,
"agent_name2"
,
"applicant_name"
,
"applicant_name"
,
"inventor_name"
,
"inventor_name"
,
"country_code"
,
"appl_zip"
,
"appl_address"
,
"main_ipc"
,
"main_ipc"
,
"abstr_text"
,
"abstr_text"
,
"pub_type"
"filing_name"
,
"pub_status"
,
"pub_status_now"
,
"ipc_version"
,
"other_ipc"
,
"prior_info"
,
"pct_info"
,
"img_path"
,
"claim_text"
],
],
"sort"
:
[
"sort"
:
[
{
{
"filing_
dat
e"
:
"desc"
"filing_
tim
e"
:
"desc"
}
}
]
]
};
};
...
@@ -1371,8 +1387,11 @@ auther:sy
...
@@ -1371,8 +1387,11 @@ auther:sy
res
.
data
=
[];
res
.
data
=
[];
if
(
j
.
hits
.
total
>
0
)
{
if
(
j
.
hits
.
total
>
0
)
{
res
.
total
=
j
.
hits
.
total
;
res
.
total
=
j
.
hits
.
total
;
for
(
var
x
in
j
.
hits
.
hits
)
{
for
(
let
index
=
0
;
index
<
j
.
hits
.
hits
.
length
;
index
++
)
{
res
.
data
.
push
(
j
.
hits
.
hits
[
x
][
"_source"
]);
const
element
=
j
.
hits
.
hits
[
index
];
if
(
element
)
{
res
.
data
.
push
(
element
[
"_source"
]);
}
}
}
}
}
return
System
.
getResult2
(
res
,
null
);
return
System
.
getResult2
(
res
,
null
);
...
...
igirl-zcapi/app/base/api/impl/patent/copyrightsearch.js
View file @
3e975747
...
@@ -147,10 +147,13 @@ class CopyRightSearchApi extends ApiBase {
...
@@ -147,10 +147,13 @@ class CopyRightSearchApi extends ApiBase {
res
.
total
=
0
;
res
.
total
=
0
;
res
.
data
=
[];
res
.
data
=
[];
if
(
j
.
hits
.
total
>
0
){
if
(
j
.
hits
.
total
>
0
){
res
.
total
=
j
.
hits
.
total
;
res
.
total
=
j
.
hits
.
total
;
for
(
var
x
in
j
.
hits
.
hits
){
for
(
let
index
=
0
;
index
<
j
.
hits
.
hits
.
length
;
index
++
)
{
res
.
data
.
push
(
j
.
hits
.
hits
[
x
][
"_source"
]);
const
element
=
j
.
hits
.
hits
[
index
];
}
if
(
element
)
{
res
.
data
.
push
(
element
[
"_source"
]);
}
}
}
}
return
System
.
getResult2
(
res
,
null
);
return
System
.
getResult2
(
res
,
null
);
}
}
...
@@ -223,10 +226,13 @@ class CopyRightSearchApi extends ApiBase {
...
@@ -223,10 +226,13 @@ class CopyRightSearchApi extends ApiBase {
res
.
total
=
0
;
res
.
total
=
0
;
res
.
data
=
[];
res
.
data
=
[];
if
(
j
.
hits
.
total
>
0
){
if
(
j
.
hits
.
total
>
0
){
res
.
total
=
j
.
hits
.
total
;
res
.
total
=
j
.
hits
.
total
;
for
(
var
x
in
j
.
hits
.
hits
){
for
(
let
index
=
0
;
index
<
j
.
hits
.
hits
.
length
;
index
++
)
{
res
.
data
.
push
(
j
.
hits
.
hits
[
x
][
"_source"
]);
const
element
=
j
.
hits
.
hits
[
index
];
}
if
(
element
)
{
res
.
data
.
push
(
element
[
"_source"
]);
}
}
}
}
return
System
.
getResult2
(
res
,
null
);
return
System
.
getResult2
(
res
,
null
);
}
}
...
@@ -346,10 +352,13 @@ auther:sy
...
@@ -346,10 +352,13 @@ auther:sy
res
.
total
=
0
;
res
.
total
=
0
;
res
.
data
=
[];
res
.
data
=
[];
if
(
j
.
hits
.
total
>
0
){
if
(
j
.
hits
.
total
>
0
){
res
.
total
=
j
.
hits
.
total
;
res
.
total
=
j
.
hits
.
total
;
for
(
var
x
in
j
.
hits
.
hits
){
for
(
let
index
=
0
;
index
<
j
.
hits
.
hits
.
length
;
index
++
)
{
res
.
data
.
push
(
j
.
hits
.
hits
[
x
][
"_source"
]);
const
element
=
j
.
hits
.
hits
[
index
];
}
if
(
element
)
{
res
.
data
.
push
(
element
[
"_source"
]);
}
}
}
}
return
System
.
getResult2
(
res
,
null
);
return
System
.
getResult2
(
res
,
null
);
}
}
...
@@ -421,10 +430,13 @@ auther:sy
...
@@ -421,10 +430,13 @@ auther:sy
res
.
total
=
0
;
res
.
total
=
0
;
res
.
data
=
[];
res
.
data
=
[];
if
(
j
.
hits
.
total
>
0
){
if
(
j
.
hits
.
total
>
0
){
res
.
total
=
j
.
hits
.
total
;
res
.
total
=
j
.
hits
.
total
;
for
(
var
x
in
j
.
hits
.
hits
){
for
(
let
index
=
0
;
index
<
j
.
hits
.
hits
.
length
;
index
++
)
{
res
.
data
.
push
(
j
.
hits
.
hits
[
x
][
"_source"
]);
const
element
=
j
.
hits
.
hits
[
index
];
}
if
(
element
)
{
res
.
data
.
push
(
element
[
"_source"
]);
}
}
}
}
return
System
.
getResult2
(
res
,
null
);
return
System
.
getResult2
(
res
,
null
);
}
}
...
...
igirl-zcapi/app/base/service/impl/enterprise/enterpriseSve.js
View file @
3e975747
...
@@ -94,8 +94,11 @@ class EnterpriseService {
...
@@ -94,8 +94,11 @@ class EnterpriseService {
res
.
data
=
[];
res
.
data
=
[];
if
(
j
.
hits
.
total
>
0
)
{
if
(
j
.
hits
.
total
>
0
)
{
res
.
total
=
j
.
hits
.
total
;
res
.
total
=
j
.
hits
.
total
;
for
(
var
x
in
j
.
hits
.
hits
)
{
for
(
let
index
=
0
;
index
<
j
.
hits
.
hits
.
length
;
index
++
)
{
res
.
data
.
push
(
j
.
hits
.
hits
[
x
][
"_source"
]);
const
element
=
j
.
hits
.
hits
[
index
];
if
(
element
)
{
res
.
data
.
push
(
element
[
"_source"
]);
}
}
}
}
}
return
System
.
getResult2
(
res
,
null
);
return
System
.
getResult2
(
res
,
null
);
...
@@ -235,8 +238,11 @@ class EnterpriseService {
...
@@ -235,8 +238,11 @@ class EnterpriseService {
res
.
data
=
[];
res
.
data
=
[];
if
(
j
.
hits
.
total
>
0
)
{
if
(
j
.
hits
.
total
>
0
)
{
res
.
total
=
j
.
hits
.
total
;
res
.
total
=
j
.
hits
.
total
;
for
(
var
x
in
j
.
hits
.
hits
)
{
for
(
let
index
=
0
;
index
<
j
.
hits
.
hits
.
length
;
index
++
)
{
res
.
data
.
push
(
j
.
hits
.
hits
[
x
][
"_source"
]);
const
element
=
j
.
hits
.
hits
[
index
];
if
(
element
)
{
res
.
data
.
push
(
element
[
"_source"
]);
}
}
}
}
}
return
System
.
getResult2
(
res
,
null
);
return
System
.
getResult2
(
res
,
null
);
...
@@ -283,8 +289,11 @@ class EnterpriseService {
...
@@ -283,8 +289,11 @@ class EnterpriseService {
res
.
data
=
[];
res
.
data
=
[];
if
(
j
.
hits
.
total
>
0
)
{
if
(
j
.
hits
.
total
>
0
)
{
res
.
total
=
j
.
hits
.
total
;
res
.
total
=
j
.
hits
.
total
;
for
(
var
x
in
j
.
aggregations
.
group_by_licence
.
buckets
)
{
for
(
let
index
=
0
;
index
<
j
.
aggregations
.
group_by_licence
.
buckets
.
length
;
index
++
)
{
res
.
data
.
push
(
j
.
aggregations
.
group_by_licence
.
buckets
[
x
]);
const
element
=
j
.
aggregations
.
group_by_licence
.
buckets
[
index
];
if
(
element
)
{
res
.
data
.
push
(
element
);
}
}
}
}
}
return
System
.
getResult2
(
res
,
null
);
return
System
.
getResult2
(
res
,
null
);
...
@@ -351,8 +360,11 @@ class EnterpriseService {
...
@@ -351,8 +360,11 @@ class EnterpriseService {
res
.
data
=
[];
res
.
data
=
[];
if
(
j
.
hits
.
total
>
0
)
{
if
(
j
.
hits
.
total
>
0
)
{
res
.
total
=
j
.
hits
.
total
;
res
.
total
=
j
.
hits
.
total
;
for
(
var
x
in
j
.
hits
.
hits
)
{
for
(
let
index
=
0
;
index
<
j
.
hits
.
hits
.
length
;
index
++
)
{
res
.
data
.
push
(
j
.
hits
.
hits
[
x
][
"_source"
]);
const
element
=
j
.
hits
.
hits
[
index
];
if
(
element
)
{
res
.
data
.
push
(
element
[
"_source"
]);
}
}
}
}
}
return
System
.
getResult2
(
res
,
null
);
return
System
.
getResult2
(
res
,
null
);
...
@@ -428,8 +440,11 @@ class EnterpriseService {
...
@@ -428,8 +440,11 @@ class EnterpriseService {
res
.
data
=
[];
res
.
data
=
[];
if
(
j
.
hits
.
total
>
0
)
{
if
(
j
.
hits
.
total
>
0
)
{
res
.
total
=
j
.
hits
.
total
;
res
.
total
=
j
.
hits
.
total
;
for
(
var
x
in
j
.
hits
.
hits
)
{
for
(
let
index
=
0
;
index
<
j
.
hits
.
hits
.
length
;
index
++
)
{
res
.
data
.
push
(
j
.
hits
.
hits
[
x
][
"_source"
]);
const
element
=
j
.
hits
.
hits
[
index
];
if
(
element
)
{
res
.
data
.
push
(
element
[
"_source"
]);
}
}
}
}
}
return
System
.
getResult2
(
res
,
null
);
return
System
.
getResult2
(
res
,
null
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment