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
c34218bd
Commit
c34218bd
authored
Jan 13, 2020
by
高宇强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
6b4ac18e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
91 additions
and
60 deletions
+91
-60
igirl-zcapi/app/base/api/impl/action/patentQuery.js
+12
-12
igirl-zcapi/app/base/api/impl/patent/chinapatentsearch.js
+34
-7
igirl-zcapi/app/base/api/impl/patent/copyrightsearch.js
+45
-41
No files found.
igirl-zcapi/app/base/api/impl/action/patentQuery.js
View file @
c34218bd
...
...
@@ -72,14 +72,14 @@ class PatentQueryAPI extends APIBase {
}
module
.
exports
=
PatentQueryAPI
;
var
tesk
=
new
PatentQueryAPI
();
var
parm
=
{
actionType
:
"paCountByApplicantName"
,
actionBody
:{
applicant_name
:
"上海华虹宏力半导体制造有限公司"
}
};
tesk
.
springBoard
(
parm
).
then
(
function
(
result
){
console
.
log
(
result
);
// console.log(result.data.rows[0]);
}).
catch
(
function
(
e
){
console
.
log
(
e
);
});
\ No newline at end of file
// var tesk = new PatentQueryAPI();
// var parm = {
// actionType:"worksListByAuthor",
// actionBody:{author:"胡超超"}
// };
// tesk.springBoard(parm).then(function(result){
// console.log(result);
// console.log(result.data.data[0]);
// }).catch(function(e){
// console.log(e);
// });
\ No newline at end of file
igirl-zcapi/app/base/api/impl/patent/chinapatentsearch.js
View file @
c34218bd
...
...
@@ -1090,7 +1090,7 @@ auther:sy
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
return
System
.
getResult2
(
j
.
hits
.
total
,
null
);
}
catch
(
e
)
{
return
rtn
=
System
.
getResult2
(
null
,
"获取数据出错"
);
return
System
.
getResult2
(
null
,
"获取数据出错"
);
}
};
...
...
@@ -1178,9 +1178,18 @@ auther:sy
try
{
rtn
=
await
rc
.
execPost
(
params
,
requrl
);
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
return
System
.
getResult2
(
j
.
hits
,
null
);
var
res
=
{};
res
.
total
=
0
;
res
.
data
=
[];
if
(
j
.
hits
.
total
>
0
){
res
.
total
=
j
.
hits
.
total
;
for
(
var
x
in
j
.
hits
.
hits
){
res
.
data
.
push
(
j
.
hits
.
hits
[
x
][
"_source"
]);
}
}
return
System
.
getResult2
(
res
,
null
);
}
catch
(
e
)
{
return
rtn
=
System
.
getResult2
(
null
,
"获取数据出错"
);
return
System
.
getResult2
(
null
,
"获取数据出错"
);
}
};
...
...
@@ -1282,9 +1291,18 @@ auther:sy
try
{
rtn
=
await
rc
.
execPost
(
params
,
requrl
);
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
return
System
.
getResult2
(
j
.
hits
,
null
);
var
res
=
{};
res
.
total
=
0
;
res
.
data
=
[];
if
(
j
.
hits
.
total
>
0
){
res
.
total
=
j
.
hits
.
total
;
for
(
var
x
in
j
.
hits
.
hits
){
res
.
data
.
push
(
j
.
hits
.
hits
[
x
][
"_source"
]);
}
}
return
System
.
getResult2
(
res
,
null
);
}
catch
(
e
)
{
return
rtn
=
System
.
getResult2
(
null
,
"获取数据出错"
);
return
System
.
getResult2
(
null
,
"获取数据出错"
);
}
};
...
...
@@ -1341,9 +1359,18 @@ auther:sy
try
{
rtn
=
await
rc
.
execPost
(
params
,
requrl
);
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
return
System
.
getResult2
(
j
.
hits
,
null
);
var
res
=
{};
res
.
total
=
0
;
res
.
data
=
[];
if
(
j
.
hits
.
total
>
0
){
res
.
total
=
j
.
hits
.
total
;
for
(
var
x
in
j
.
hits
.
hits
){
res
.
data
.
push
(
j
.
hits
.
hits
[
x
][
"_source"
]);
}
}
return
System
.
getResult2
(
res
,
null
);
}
catch
(
e
)
{
return
rtn
=
System
.
getResult2
(
null
,
"获取数据出错"
);
return
System
.
getResult2
(
null
,
"获取数据出错"
);
}
};
...
...
igirl-zcapi/app/base/api/impl/patent/copyrightsearch.js
View file @
c34218bd
...
...
@@ -149,18 +149,19 @@ class CopyRightSearchApi extends ApiBase {
try
{
rtn
=
await
rc
.
execPost
(
params
,
requrl
);
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
return
rtn
=
{
status
:
0
,
msg
:
"操作成功"
,
data
:
j
.
hits
};
var
res
=
{};
res
.
total
=
0
;
res
.
data
=
[];
if
(
j
.
hits
.
total
>
0
){
res
.
total
=
j
.
hits
.
total
;
for
(
var
x
in
j
.
hits
.
hits
){
res
.
data
.
push
(
j
.
hits
.
hits
[
x
][
"_source"
]);
}
}
return
System
.
getResult2
(
res
,
null
);
}
catch
(
e
)
{
return
rtn
=
{
status
:
-
1
,
msg
:
"操作失败"
,
data
:
null
};
return
System
.
getResult2
(
null
,
"获取数据出错"
);
};
};
...
...
@@ -224,18 +225,19 @@ class CopyRightSearchApi extends ApiBase {
try
{
rtn
=
await
rc
.
execPost
(
params
,
requrl
);
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
return
rtn
=
{
status
:
0
,
msg
:
"操作成功"
,
data
:
j
.
hits
};
var
res
=
{};
res
.
total
=
0
;
res
.
data
=
[];
if
(
j
.
hits
.
total
>
0
){
res
.
total
=
j
.
hits
.
total
;
for
(
var
x
in
j
.
hits
.
hits
){
res
.
data
.
push
(
j
.
hits
.
hits
[
x
][
"_source"
]);
}
}
return
System
.
getResult2
(
res
,
null
);
}
catch
(
e
)
{
return
rtn
=
{
status
:
-
1
,
msg
:
"操作失败"
,
data
:
null
};
return
System
.
getResult2
(
null
,
"获取数据出错"
);
};
};
...
...
@@ -318,7 +320,7 @@ auther:sy
*/
async
worksListByAuthor
(
obj
)
{
var
author
=
obj
.
author
==
null
||
obj
.
author
==
""
||
obj
.
author
==
"undefined"
?
""
:
obj
.
author
;
var
pagesize
=
obj
.
page_size
==
null
||
obj
.
page_size
==
""
||
obj
.
page_size
==
"undefined"
?
2
0
:
obj
.
page_size
;
var
pagesize
=
obj
.
page_size
==
null
||
obj
.
page_size
==
""
||
obj
.
page_size
==
"undefined"
?
1
0
:
obj
.
page_size
;
var
from
=
obj
.
current_page
==
null
||
obj
.
current_page
==
""
||
obj
.
current_page
==
"undefined"
?
0
:
Number
((
obj
.
current_page
-
1
)
*
pagesize
);
if
(
author
==
""
)
{
...
...
@@ -353,18 +355,19 @@ auther:sy
try
{
rtn
=
await
rc
.
execPost
(
params
,
requrl
);
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
return
rtn
=
{
status
:
0
,
msg
:
"操作成功"
,
data
:
j
.
hits
};
var
res
=
{};
res
.
total
=
0
;
res
.
data
=
[];
if
(
j
.
hits
.
total
>
0
){
res
.
total
=
j
.
hits
.
total
;
for
(
var
x
in
j
.
hits
.
hits
){
res
.
data
.
push
(
j
.
hits
.
hits
[
x
][
"_source"
]);
}
}
return
System
.
getResult2
(
res
,
null
);
}
catch
(
e
)
{
return
rtn
=
{
status
:
-
1
,
msg
:
"操作失败"
,
data
:
null
};
return
System
.
getResult2
(
null
,
"获取数据出错"
);
};
};
...
...
@@ -427,18 +430,19 @@ auther:sy
try
{
rtn
=
await
rc
.
execPost
(
params
,
requrl
);
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
return
rtn
=
{
status
:
0
,
msg
:
"操作成功"
,
data
:
j
.
hits
};
var
res
=
{};
res
.
total
=
0
;
res
.
data
=
[];
if
(
j
.
hits
.
total
>
0
){
res
.
total
=
j
.
hits
.
total
;
for
(
var
x
in
j
.
hits
.
hits
){
res
.
data
.
push
(
j
.
hits
.
hits
[
x
][
"_source"
]);
}
}
return
System
.
getResult2
(
res
,
null
);
}
catch
(
e
)
{
return
rtn
=
{
status
:
-
1
,
msg
:
"操作失败"
,
data
:
null
};
return
System
.
getResult2
(
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