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
1b0269d4
Commit
1b0269d4
authored
Jan 15, 2020
by
高宇强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
bf9e72fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
14 deletions
+25
-14
center-channel/app/base/api/impl/action/patentQuery.js
+17
-14
center-channel/app/base/service/impl/licenses/licenseSve.js
+8
-0
center-channel/app/base/service/impl/patent/patentycSve.js
+0
-0
No files found.
center-channel/app/base/api/impl/action/patentQuery.js
View file @
1b0269d4
...
@@ -11,52 +11,55 @@ class PatentQueryAPI extends APIBase {
...
@@ -11,52 +11,55 @@ class PatentQueryAPI extends APIBase {
* action_type 执行的类型
* action_type 执行的类型
* action_body 执行的参数
* action_body 执行的参数
*/
*/
async
springBoard
(
pobj
,
qobj
,
req
)
{
async
springBoard
(
pobj
,
qobj
,
req
)
{
if
(
!
pobj
.
actionProcess
)
{
return
system
.
getResult
(
null
,
"actionProcess参数不能为空"
);
}
if
(
!
pobj
.
actionType
)
{
if
(
!
pobj
.
actionType
)
{
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
}
}
var
result
=
await
this
.
opActionProcess
(
pobj
.
action
Type
,
pobj
.
actionBody
);
var
result
=
await
this
.
opActionProcess
(
pobj
.
action
Process
,
pobj
.
actionType
,
pobj
.
actionBody
,
req
);
return
result
;
return
result
;
}
}
async
opActionProcess
(
action_
type
,
action_body
)
{
async
opActionProcess
(
action_
process
,
action_type
,
action_body
,
req
)
{
var
opResult
=
null
;
var
opResult
=
null
;
switch
(
action_type
)
{
switch
(
action_type
)
{
case
"test"
:
//测试
case
"test"
:
//测试
opResult
=
system
.
getResultSuccess
(
null
,
"测试成功"
);
opResult
=
system
.
getResultSuccess
(
null
,
"测试成功"
);
break
;
break
;
case
"CommomSearchbyApplicant"
:
//根据申请人查询聚合
case
"CommomSearchbyApplicant"
:
//根据申请人查询聚合
opResult
=
await
this
.
patentSve
.
CommomSearchbyApplicant
(
action_body
);
opResult
=
await
this
.
patentSve
.
CommomSearchbyApplicant
(
action_body
,
req
);
break
;
break
;
case
"paCountByApplicantName"
:
//根据申请人获取专利量
case
"paCountByApplicantName"
:
//根据申请人获取专利量
opResult
=
await
this
.
patentSve
.
paCountByApplicantName
(
action_body
);
opResult
=
await
this
.
patentSve
.
paCountByApplicantName
(
action_body
,
req
);
break
;
break
;
case
"paShortListByApplicantName"
:
//根据申请人获取专利详情列表
case
"paShortListByApplicantName"
:
//根据申请人获取专利详情列表
opResult
=
await
this
.
patentSve
.
paShortListByApplicantName
(
action_body
);
opResult
=
await
this
.
patentSve
.
paShortListByApplicantName
(
action_body
,
req
);
break
;
break
;
case
"paDetailsBypubNo"
:
//根据公开或授权号获取专利详情列表
case
"paDetailsBypubNo"
:
//根据公开或授权号获取专利详情列表
opResult
=
await
this
.
patentSve
.
paDetailsBypubNo
(
action_body
);
opResult
=
await
this
.
patentSve
.
paDetailsBypubNo
(
action_body
,
req
);
break
;
break
;
case
"paDetailsByfilingNo"
:
//根据申请号获取专利详情列表
case
"paDetailsByfilingNo"
:
//根据申请号获取专利详情列表
opResult
=
await
this
.
patentSve
.
paDetailsByfilingNo
(
action_body
);
opResult
=
await
this
.
patentSve
.
paDetailsByfilingNo
(
action_body
,
req
);
break
;
break
;
case
"softwareCountByAuthor"
:
//根据公司名称得到软著量
case
"softwareCountByAuthor"
:
//根据公司名称得到软著量
opResult
=
await
this
.
patentSve
.
softwareCountByAuthor
(
action_body
);
opResult
=
await
this
.
patentSve
.
softwareCountByAuthor
(
action_body
,
req
);
break
;
break
;
case
"softwareListByAuthor"
:
//根据公司名称得到软著详情
case
"softwareListByAuthor"
:
//根据公司名称得到软著详情
opResult
=
await
this
.
patentSve
.
softwareListByAuthor
(
action_body
);
opResult
=
await
this
.
patentSve
.
softwareListByAuthor
(
action_body
,
req
);
break
;
break
;
case
"softwareDetailsByregNum"
:
//根据登记号获取软著详情
case
"softwareDetailsByregNum"
:
//根据登记号获取软著详情
opResult
=
await
this
.
patentSve
.
softwareDetailsByregNum
(
action_body
);
opResult
=
await
this
.
patentSve
.
softwareDetailsByregNum
(
action_body
,
req
);
break
;
break
;
case
"worksCountByAuthor"
:
//根据公司名称得到著作权量
case
"worksCountByAuthor"
:
//根据公司名称得到著作权量
opResult
=
await
this
.
patentSve
.
worksCountByAuthor
(
action_body
);
opResult
=
await
this
.
patentSve
.
worksCountByAuthor
(
action_body
,
req
);
break
;
break
;
case
"worksListByAuthor"
:
//根据公司名称得到著作权详情
case
"worksListByAuthor"
:
//根据公司名称得到著作权详情
opResult
=
await
this
.
patentSve
.
worksListByAuthor
(
action_body
);
opResult
=
await
this
.
patentSve
.
worksListByAuthor
(
action_body
,
req
);
break
;
break
;
case
"worksDetailsByregNum"
:
//根据登记号获取著作权详情
case
"worksDetailsByregNum"
:
//根据登记号获取著作权详情
opResult
=
await
this
.
patentSve
.
worksDetailsByregNum
(
action_body
);
opResult
=
await
this
.
patentSve
.
worksDetailsByregNum
(
action_body
,
req
);
break
;
break
;
default
:
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
...
...
center-channel/app/base/service/impl/licenses/licenseSve.js
View file @
1b0269d4
const
System
=
require
(
"../../../system"
);
const
System
=
require
(
"../../../system"
);
var
settings
=
require
(
"../../../../config/settings"
);
const
querystring
=
require
(
'querystring'
);
const
querystring
=
require
(
'querystring'
);
class
LicenseService
{
class
LicenseService
{
constructor
()
{
constructor
()
{
this
.
zcApiUrl
=
settings
.
reqZcApi
();
this
.
zcApiUrl
=
settings
.
reqZcApi
();
this
.
execClient
=
System
.
getObject
(
"util.execClient"
);
};
async
opReqResult
(
reqUrl
,
queryobj
,
req
)
{
var
rtn
=
await
this
.
execClient
.
execPushDataPost
(
queryobj
,
reqUrl
,
req
.
headers
[
"token"
],
req
.
headers
[
"request-id"
]);
var
data
=
JSON
.
parse
(
rtn
.
stdout
);
return
data
;
};
};
//得到公司推荐的证照信息
//得到公司推荐的证照信息
...
...
center-channel/app/base/service/impl/patent/patentycSve.js
View file @
1b0269d4
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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