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
d8a00f6a
Commit
d8a00f6a
authored
Sep 15, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel
parents
838fffe1
d9b29635
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
656 additions
and
55 deletions
+656
-55
center-channel/app/base/api/impl/action/patentQuery.js
+12
-5
center-channel/app/base/api/impl/opreceive/need.js
+3
-0
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
+50
-30
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
+35
-0
center-channel/app/base/service/impl/utilsSve/utilsTmOrderCallSve.js
+6
-2
center-channel/app/config/routes/doc.js
+18
-18
center-channel/app/config/settings.js
+7
-0
center-channel/app/front/entry/public/apidoc/patentDesc/patent.md
+525
-0
No files found.
center-channel/app/base/api/impl/action/patentQuery.js
View file @
d8a00f6a
...
...
@@ -7,11 +7,14 @@ class PatentQueryAPI extends WEBBase {
}
/**
* 接口跳转-POST请求
* action_type 执行的类型
* action_body 执行的参数
*/
* 接口跳转-POST请求
* action_type 执行的类型
* action_body 执行的参数
*/
async
springBoard
(
pobj
,
qobj
,
req
)
{
console
.
log
(
"=================================================="
);
console
.
log
(
pobj
);
console
.
log
(
"=================================================="
);
if
(
!
pobj
.
actionProcess
)
{
return
system
.
getResult
(
null
,
"actionProcess参数不能为空"
);
}
...
...
@@ -25,7 +28,7 @@ class PatentQueryAPI extends WEBBase {
async
opActionProcess
(
pobj
,
action_type
,
req
)
{
var
opResult
=
null
;
switch
(
action_type
)
{
case
"test"
:
//测试
case
"test"
:
//测试
opResult
=
system
.
getResultSuccess
(
null
,
"测试成功"
);
break
;
case
"CommomSearchbyApplicant"
:
//根据申请人查询聚合
...
...
@@ -39,6 +42,10 @@ class PatentQueryAPI extends WEBBase {
case
"worksCountByAuthor"
:
//根据公司名称得到著作权量
case
"worksListByAuthor"
:
//根据公司名称得到著作权详情
case
"worksDetailsByregNum"
:
//根据登记号获取著作权详情
case
"CommomSearchbyTitle"
:
//根据标题查询聚合
case
"CommomSearchbyInventor"
:
//根据发明人查询聚合
case
"CommomSearchbyFilingno"
:
//根据申请号查询聚合
case
"CommomSearchbyPubno"
:
//根据公开号查询聚合
opResult
=
await
this
.
patentSve
.
opReqResult
(
pobj
,
req
);
break
;
default
:
...
...
center-channel/app/base/api/impl/opreceive/need.js
View file @
d8a00f6a
...
...
@@ -85,6 +85,9 @@ class Need extends APIBase {
case
"confirmIcpIntention"
:
// 2020 0827 lin 新增 4.3 用户需求确认
opResult
=
await
this
.
utilsNeedSve
.
confirmIcpIntention
(
pobj
,
pobj
.
actionBody
);
break
;
case
"needBatchUpload"
:
// 2020 0827 lin 新增 4.3 用户需求确认
opResult
=
await
this
.
utilsNeedSve
.
needBatchUpload
(
pobj
,
pobj
.
actionBody
);
break
;
case
"testsymq"
:
opResult
=
await
this
.
utilsNeedSve
.
testsymq
(
pobj
);
break
;
...
...
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
d8a00f6a
...
...
@@ -44,11 +44,11 @@ class UtilsNeedService extends AppServiceBase {
pobj
.
actionBody
.
type
=
pobj
.
actionBody
.
channel_type_code
;
if
(
pobj
.
actionBody
.
channel_type_code
==
5
)
{
pobj
.
actionBody
.
type
=
"ali.icp"
;
}
else
if
(
pobj
.
actionBody
.
channel_type_code
==
7
)
{
}
else
if
(
pobj
.
actionBody
.
channel_type_code
==
7
)
{
pobj
.
actionBody
.
type
=
"ali.edi"
;
}
else
if
(
pobj
.
actionBody
.
channel_type_code
==
"tmjy"
)
{
}
else
if
(
pobj
.
actionBody
.
channel_type_code
==
"tmjy"
)
{
pobj
.
actionBody
.
type
=
"ali.tmd"
;
}
}
if
(
pobj
.
actionBody
.
description
.
indexOf
(
"备#"
)
<
0
)
{
pobj
.
actionBody
.
level
=
"A"
;
...
...
@@ -453,12 +453,25 @@ class UtilsNeedService extends AppServiceBase {
var
reqParams
=
{
actionBody
:
{
intentionBizId
:
pobj
.
actionBody
.
intentionBizId
,
status
:
"followingUp"
status
:
"followingUp"
,
userInfo
:
pobj
.
userInfo
},
opType
:
"updateChanceStatus"
,
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
,
userInfo
:
pobj
.
userInfo
}
self
.
utilsPushSve
.
aliBusiness2Delivery
(
reqParams
,
"updateChanceStatus"
);
// var reqParams = {
// actionBody: {
// "bizId": pobj.actionBody.intentionBizId,
// "follow_date": (new Date()).toISOString(),
// "follow_content": pobj.actionBody.note
// },
// opType: "updateChanceStatus",
// appInfo: pobj.appInfo,
// userInfo: pobj.userInfo
// }
// self.utilsPushSve.aliBusiness2Fq(pobj, "pushCloseICPNeed");
return
system
.
getResultSuccess
();
}
...
...
@@ -562,43 +575,50 @@ class UtilsNeedService extends AppServiceBase {
// return system.getResult(null, "actionBody.userFeedBack can not be empty,100494");
// }
pobj
.
actionBody
.
data
=
[];
await
this
.
queryByAli
(
pobj
,
1
);
await
this
.
queryByAli
(
pobj
,
1
);
pobj
.
actionType
=
"getUnCreated"
;
let
reqUrl
=
this
.
centerOrderUrl
+
"action/need/springBoard"
;
let
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
if
(
result
.
status
==
0
)
{
pobj
.
actionBody
=
{
type
:
"tmjy"
type
:
"tmjy"
};
for
(
let
item
of
result
.
data
){
pobj
.
actionBody
.
intentionBizId
=
item
.
BizId
;
pobj
.
actionBody
.
mobile
=
item
.
Mobile
?
item
.
Mobile
:
""
;
pobj
.
actionBody
.
userName
=
item
.
UserName
?
item
.
UserName
:
""
;
pobj
.
notes
=
`
${
item
.
RegisterNumber
?
"RegisterNumber:"
+
item
.
RegisterNumber
:
""
}${
item
.
Classification
?
"Classification:"
+
item
.
Classification
:
""
}
`
;
let
res
=
await
this
.
submitNeed
(
JSON
.
parse
(
JSON
.
stringify
(
pobj
)),
{
intentionBizId
:
item
.
BizId
});
for
(
let
item
of
result
.
data
)
{
pobj
.
actionBody
.
intentionBizId
=
item
.
BizId
;
pobj
.
actionBody
.
mobile
=
item
.
Mobile
?
item
.
Mobile
:
""
;
pobj
.
actionBody
.
userName
=
item
.
UserName
?
item
.
UserName
:
""
;
pobj
.
notes
=
`
${
item
.
RegisterNumber
?
"RegisterNumber:"
+
item
.
RegisterNumber
:
""
}${
item
.
Classification
?
"Classification:"
+
item
.
Classification
:
""
}
`
;
let
res
=
await
this
.
submitNeed
(
JSON
.
parse
(
JSON
.
stringify
(
pobj
)),
{
intentionBizId
:
item
.
BizId
});
console
.
log
(
res
)
}
return
system
.
getResultSuccess
();
}
else
{
return
system
.
getResultFail
(
result
.
status
,
result
.
msg
);
}
return
system
.
getResultFail
(
res
.
status
,
res
.
msg
);
return
system
.
getResultSuccess
();
}
else
{
return
system
.
getResultFail
(
result
.
status
,
result
.
msg
);
}
return
system
.
getResultFail
(
res
.
status
,
res
.
msg
);
}
async
queryByAli
(
pobj
,
page
)
{
async
queryByAli
(
pobj
,
page
)
{
let
res
=
await
this
.
aliclient
.
reqbyget
({
action
:
"QueryTradeIntentionUserList"
,
reqbody
:
{
Begin
:
pobj
.
actionBody
.
Begin
?
pobj
.
actionBody
.
Begin
:
""
,
End
:
pobj
.
actionBody
.
End
?
pobj
.
actionBody
.
End
:
""
,
PageNum
:
page
,
PageSize
:
10
,
},
apiVersion
:
"2019-05-08"
action
:
"QueryTradeIntentionUserList"
,
reqbody
:
{
Begin
:
pobj
.
actionBody
.
Begin
?
pobj
.
actionBody
.
Begin
:
""
,
End
:
pobj
.
actionBody
.
End
?
pobj
.
actionBody
.
End
:
""
,
PageNum
:
page
,
PageSize
:
10
,
},
apiVersion
:
"2019-05-08"
});
if
(
res
.
status
==
0
)
{
pobj
.
actionBody
.
data
.
push
(...
res
.
data
.
Data
);
if
(
page
<
res
.
data
.
TotalPageNum
){
await
this
.
queryByAli
(
pobj
,
page
+
1
)
}
}
pobj
.
actionBody
.
data
.
push
(...
res
.
data
.
Data
);
if
(
page
<
res
.
data
.
TotalPageNum
)
{
await
this
.
queryByAli
(
pobj
,
page
+
1
)
}
}
}
// 2020 0914 lin 新增 刷单一条龙功能
async
needBatchUpload
(
pobj
,
actionBody
)
{
for
(
var
i
=
0
;
i
<
actionBody
.
demands
;
i
++
)
{
}
}
async
testsymq
(
pobj
)
{
var
a
=
null
;
...
...
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
View file @
d8a00f6a
...
...
@@ -801,6 +801,32 @@ class UtilsOrderService extends AppServiceBase {
async
tmAccept
(
pobj
)
{
// 2020 0828 lin 新增 ali商标交易 创建订单接口
try
{
var
actionBody
=
pobj
.
actionBody
;
// 检查商标注册号是否为上架
pobj
.
actionType
=
"tmStatusCheck"
;
pobj
.
actionBody
.
code
=
pobj
.
actionBody
.
registerNumber
;
var
url
=
settings
.
centerTmtransactionUrl
()
+
"tmtransaction/action/trademarktransaction/springBoard"
;
var
tmStatusCheckResult
=
await
this
.
restPostUrl
(
pobj
,
url
);
if
(
!
tmStatusCheckResult
.
data
)
{
var
result
=
{
"errorCode"
:
"error"
,
"errorMsg"
:
"标源状态不符合"
,
"module"
:
{
"orderNumber"
:
""
},
"requestId"
:
pobj
.
requestId
,
"success"
:
false
}
return
result
;
}
if
(
tmStatusCheckResult
.
data
.
publish_status
!=
"uppershelf"
)
{
var
result
=
{
"errorCode"
:
"error"
,
"errorMsg"
:
"标源状态不符合"
,
"module"
:
{
"orderNumber"
:
""
},
"requestId"
:
pobj
.
requestId
,
"success"
:
false
}
return
result
;
}
//走addOrder流程
pobj
.
actionType
=
"getProductDetail"
;
var
url
=
settings
.
centerAppUrl
()
+
"action/opProduct/springBoard"
;
var
productItemResult
=
await
this
.
restPostUrl
(
pobj
,
url
);
...
...
@@ -822,6 +848,15 @@ class UtilsOrderService extends AppServiceBase {
var
reqUrl
=
this
.
centerOrderUrl
+
"action/order/springBoard"
;
pobj
.
actionBody
.
channelOrder
.
orderStatus
=
64
;
// 2020 0908 lin 新增。64作为orderinfo的orderStatus的值。含义为已付部分款
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
// 2020 0911 lin 新增 addOrder后修改标源状态
pobj
.
actionType
=
"tmStatusUpdate"
;
pobj
.
actionBody
.
tm
=
[{
id
:
tmStatusCheckResult
.
data
.
id
,
code
:
tmStatusCheckResult
.
data
.
code
}]
pobj
.
actionBody
.
status
=
"lowershelf"
var
url
=
settings
.
centerTmtransactionUrl
()
+
"tmtransaction/action/trademarktransaction/springBoard"
;
var
tmStatusUpdateResult
=
await
this
.
restPostUrl
(
pobj
,
url
);
if
(
result
)
{
var
tmResult
=
{
"errorCode"
:
"OK"
,
...
...
center-channel/app/base/service/impl/utilsSve/utilsTmOrderCallSve.js
View file @
d8a00f6a
...
...
@@ -17,9 +17,13 @@ class UtilsTmOrderCallService extends AppServiceBase {
PageSize
:
20
,
SortFiled
:
"updateTime"
,
SortOrder
:
"DESC"
,
type
:
"TM"
};
let
orderList
=
await
this
.
aliclient
.
reqbyget
({
action
:
"QueryTradeProduceList"
,
reqbody
:
obj
});
var
object
=
{
action
:
"QueryTradeProduceList"
,
reqbody
:
obj
,
type
:
'TM'
}
let
orderList
=
await
this
.
aliclient
.
reqbyget
(
object
);
console
.
log
(
"orderList"
,
orderList
)
return
system
.
getResultSuccess
(
orderList
);
}
...
...
center-channel/app/config/routes/doc.js
View file @
d8a00f6a
...
...
@@ -6,14 +6,14 @@ var marked = require("marked");
module
.
exports
=
function
(
app
)
{
app
.
get
(
'/doc'
,
function
(
req
,
res
)
{
if
(
!
req
.
query
.
key
)
{
res
.
send
(
"文件不存在!!!"
);
return
;
}
if
(
req
.
query
.
key
!=
"doc12345789"
)
{
res
.
send
(
"文件不存在!!!!!!"
);
return
;
}
//
if (!req.query.key) {
//
res.send("文件不存在!!!");
//
return;
//
}
//
if (req.query.key != "doc12345789") {
//
res.send("文件不存在!!!!!!");
//
return;
//
}
var
path
=
process
.
cwd
()
+
"/app/front/entry/public/apidoc/README.md"
;
fs
.
readFile
(
path
,
function
(
err
,
data
)
{
if
(
err
)
{
...
...
@@ -43,16 +43,16 @@ module.exports = function (app) {
});
app
.
get
(
'/doc/api/:forder/:fileName'
,
function
(
req
,
res
)
{
if
(
req
.
url
!=
"/doc/api/platform/fgbusinesschance.md"
)
{
if
(
!
req
.
query
.
key
)
{
res
.
send
(
"文件不存在!!!"
);
return
;
}
if
(
req
.
query
.
key
!=
"doc12345789"
)
{
res
.
send
(
"文件不存在!!!!!!"
);
return
;
}
}
//
if (req.url != "/doc/api/platform/fgbusinesschance.md") {
//
if (!req.query.key) {
//
res.send("文件不存在!!!");
//
return;
//
}
//
if (req.query.key != "doc12345789") {
//
res.send("文件不存在!!!!!!");
//
return;
//
}
//
}
var
forder
=
req
.
params
[
"forder"
];
var
fileName
=
req
.
params
[
"fileName"
]
||
"README.md"
;
var
path
=
process
.
cwd
()
+
"/app/front/entry/public/apidoc"
;
...
...
center-channel/app/config/settings.js
View file @
d8a00f6a
...
...
@@ -102,6 +102,13 @@ var settings = {
return
"http://center-app-service/"
;
}
},
centerTmtransactionUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://centerTmtransactioon.apps.com:4006/"
;
}
else
{
return
"http://center-app-service/"
;
}
},
zzzdUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://106.13.228.212:80"
;
...
...
center-channel/app/front/entry/public/apidoc/patentDesc/patent.md
View file @
d8a00f6a
...
...
@@ -10,6 +10,11 @@
1.
[
根据公司名称得到著作权量
](
#worksCountByAuthor
)
1.
[
根据公司名称得到著作权详情接口
](
#worksListByAuthor
)
1.
[
根据登记号获取著作权详情
](
#worksDetailsByregNum
)
1.
[
根据标题查询聚合-------
](
#CommomSearchbyTitle
)
1.
[
根据申请号查询聚合
](
#CommomSearchbyFilingno
)
1.
[
根据公开号查询聚合
](
#CommomSearchbyPubno
)
1.
[
根据发明人查询聚合
](
#CommomSearchbyInventor
)
## **<a name="CommomSearchbyApplicant"> 根据申请人查询聚合接口</a>**
[
返回到目录
](
#menu
)
...
...
@@ -548,3 +553,523 @@
```
## **<a name="CommomSearchbyTitle"> 根据标题查询聚合</a>**
[
返回到目录
](
#menu
)
##### URL
[
/action/patentQuery/CommomSearchbyTitle
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:CommomSearchbyTitle
```
javascript
{
"title"
:
"一种基于有机物命名实体的机器翻译方法及翻译系统"
,
//申请标题
"pubtype"
:
"发明"
,
//专利类型:发明、实用新型、外观设计
"pubstatus"
:
""
,
//专利法律状态
"filingyear"
:
""
,
//申请年份
"pubyear"
:
""
,
//公开年份
"pagesize"
:
20
,
"page"
:
1
}
```
#### 返回结果
```
javascript
{
status
:
0
,
msg
:
'操作成功'
,
data
:
{
total
:
5
,
max_score
:
49.434937
,
hits
:
[
{
"_index"
:
"bigdata_patent_bib"
,
"_type"
:
"_doc"
,
"_id"
:
"201410451887"
,
"_score"
:
49.5767
,
"_source"
:
{
"pub_type"
:
"发明"
,
"gr_no"
:
"CN104298662B"
,
"filing_name"
:
"一种基于有机物命名实体的机器翻译方法及翻译系统"
,
"pub_time"
:
"2015-01-21"
,
"filing_time"
:
"2014-09-05"
,
"gr_time"
:
"2017-10-10"
,
"filing_no"
:
"201410451887"
,
"inventor_name"
:
[
"任智军"
,
"张威"
,
"李进"
,
"杨婧"
,
"张延花"
],
"pub_status"
:
"有效"
,
"applicant_name"
:
[
"中国专利信息中心"
],
"pub_no"
:
"CN104298662A"
}
}
]
},
buckets
:
{
group_by_pub_status
:
{
doc_count_error_upper_bound
:
0
,
sum_other_doc_count
:
0
,
buckets
:
[
{
"key"
:
"有效"
,
"doc_count"
:
4
},
{
"key"
:
"在审"
,
"doc_count"
:
1
}
]
},
group_by_filing_year
:
{
doc_count_error_upper_bound
:
0
,
sum_other_doc_count
:
0
,
buckets
:
[
{
"key"
:
"2017"
,
"doc_count"
:
1
},
{
"key"
:
"2014"
,
"doc_count"
:
2
},
{
"key"
:
"2013"
,
"doc_count"
:
1
},
{
"key"
:
"2012"
,
"doc_count"
:
1
}
]
},
group_by_pub_year
:
{
doc_count_error_upper_bound
:
0
,
sum_other_doc_count
:
0
,
buckets
:
[
{
"key"
:
"2018"
,
"doc_count"
:
1
},
{
"key"
:
"2015"
,
"doc_count"
:
1
},
{
"key"
:
"2014"
,
"doc_count"
:
2
},
{
"key"
:
"2012"
,
"doc_count"
:
1
}
]
},
group_by_pub_type
:
{
doc_count_error_upper_bound
:
0
,
sum_other_doc_count
:
0
,
buckets
:
[
{
"key"
:
"发明"
,
"doc_count"
:
5
}
]
}
}
}
```
## **<a name="CommomSearchbyFilingno"> 根据申请号查询聚合</a>**
[
返回到目录
](
#menu
)
##### URL
[
/action/patentQuery/CommomSearchbyFilingno
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:CommomSearchbyFilingno
```
javascript
{
"filingno"
:
"201410451887"
,
//申请号
"pubtype"
:
"发明"
,
//专利类型:发明、实用新型、外观设计
"pubstatus"
:
""
,
//专利法律状态
"filingyear"
:
""
,
//申请年份
"pubyear"
:
""
,
//公开年份
"pagesize"
:
20
,
"page"
:
1
}
```
#### 返回结果
```
javascript
{
status
:
0
,
msg
:
'操作成功'
,
data
:
{
total
:
5
,
max_score
:
49.434937
,
hits
:
[
{
"_index"
:
"bigdata_patent_bib"
,
"_type"
:
"_doc"
,
"_id"
:
"201410451887"
,
"_score"
:
49.5767
,
"_source"
:
{
"pub_type"
:
"发明"
,
"gr_no"
:
"CN104298662B"
,
"filing_name"
:
"一种基于有机物命名实体的机器翻译方法及翻译系统"
,
"pub_time"
:
"2015-01-21"
,
"filing_time"
:
"2014-09-05"
,
"gr_time"
:
"2017-10-10"
,
"filing_no"
:
"201410451887"
,
"inventor_name"
:
[
"任智军"
,
"张威"
,
"李进"
,
"杨婧"
,
"张延花"
],
"pub_status"
:
"有效"
,
"applicant_name"
:
[
"中国专利信息中心"
],
"pub_no"
:
"CN104298662A"
}
}
]
},
buckets
:
{
group_by_pub_status
:
{
doc_count_error_upper_bound
:
0
,
sum_other_doc_count
:
0
,
buckets
:
[
{
"key"
:
"有效"
,
"doc_count"
:
4
},
{
"key"
:
"在审"
,
"doc_count"
:
1
}
]
},
group_by_filing_year
:
{
doc_count_error_upper_bound
:
0
,
sum_other_doc_count
:
0
,
buckets
:
[
{
"key"
:
"2017"
,
"doc_count"
:
1
},
{
"key"
:
"2014"
,
"doc_count"
:
2
},
{
"key"
:
"2013"
,
"doc_count"
:
1
},
{
"key"
:
"2012"
,
"doc_count"
:
1
}
]
},
group_by_pub_year
:
{
doc_count_error_upper_bound
:
0
,
sum_other_doc_count
:
0
,
buckets
:
[
{
"key"
:
"2018"
,
"doc_count"
:
1
},
{
"key"
:
"2015"
,
"doc_count"
:
1
},
{
"key"
:
"2014"
,
"doc_count"
:
2
},
{
"key"
:
"2012"
,
"doc_count"
:
1
}
]
},
group_by_pub_type
:
{
doc_count_error_upper_bound
:
0
,
sum_other_doc_count
:
0
,
buckets
:
[
{
"key"
:
"发明"
,
"doc_count"
:
5
}
]
}
}
}
```
## **<a name="CommomSearchbyPubno"> 根据公开号查询聚合</a>**
[
返回到目录
](
#menu
)
##### URL
[
/action/patentQuery/CommomSearchbyPubno
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:CommomSearchbyPubno
```
javascript
{
"pubno"
:
"CN104298662A"
,
//公开号
"pubtype"
:
"发明"
,
//专利类型:发明、实用新型、外观设计
"pubstatus"
:
""
,
//专利法律状态
"filingyear"
:
""
,
//申请年份
"pubyear"
:
""
,
//公开年份
"pagesize"
:
20
,
"page"
:
1
}
```
#### 返回结果
```
javascript
{
status
:
0
,
msg
:
'操作成功'
,
data
:
{
total
:
5
,
max_score
:
49.434937
,
hits
:
[
{
"_index"
:
"bigdata_patent_bib"
,
"_type"
:
"_doc"
,
"_id"
:
"201410451887"
,
"_score"
:
49.5767
,
"_source"
:
{
"pub_type"
:
"发明"
,
"gr_no"
:
"CN104298662B"
,
"filing_name"
:
"一种基于有机物命名实体的机器翻译方法及翻译系统"
,
"pub_time"
:
"2015-01-21"
,
"filing_time"
:
"2014-09-05"
,
"gr_time"
:
"2017-10-10"
,
"filing_no"
:
"201410451887"
,
"inventor_name"
:
[
"任智军"
,
"张威"
,
"李进"
,
"杨婧"
,
"张延花"
],
"pub_status"
:
"有效"
,
"applicant_name"
:
[
"中国专利信息中心"
],
"pub_no"
:
"CN104298662A"
}
}
]
},
buckets
:
{
group_by_pub_status
:
{
doc_count_error_upper_bound
:
0
,
sum_other_doc_count
:
0
,
buckets
:
[
{
"key"
:
"有效"
,
"doc_count"
:
4
},
{
"key"
:
"在审"
,
"doc_count"
:
1
}
]
},
group_by_filing_year
:
{
doc_count_error_upper_bound
:
0
,
sum_other_doc_count
:
0
,
buckets
:
[
{
"key"
:
"2017"
,
"doc_count"
:
1
},
{
"key"
:
"2014"
,
"doc_count"
:
2
},
{
"key"
:
"2013"
,
"doc_count"
:
1
},
{
"key"
:
"2012"
,
"doc_count"
:
1
}
]
},
group_by_pub_year
:
{
doc_count_error_upper_bound
:
0
,
sum_other_doc_count
:
0
,
buckets
:
[
{
"key"
:
"2018"
,
"doc_count"
:
1
},
{
"key"
:
"2015"
,
"doc_count"
:
1
},
{
"key"
:
"2014"
,
"doc_count"
:
2
},
{
"key"
:
"2012"
,
"doc_count"
:
1
}
]
},
group_by_pub_type
:
{
doc_count_error_upper_bound
:
0
,
sum_other_doc_count
:
0
,
buckets
:
[
{
"key"
:
"发明"
,
"doc_count"
:
5
}
]
}
}
}
```
## **<a name="CommomSearchbyInventor"> 根据发明人查询聚合</a>**
[
返回到目录
](
#menu
)
##### URL
[
/action/patentQuery/CommomSearchbyInventor
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:CommomSearchbyInventor
```
javascript
{
"inventor"
:
"任智军"
,
//发明人
"pubtype"
:
"发明"
,
//专利类型:发明、实用新型、外观设计
"pubstatus"
:
""
,
//专利法律状态
"filingyear"
:
""
,
//申请年份
"pubyear"
:
""
,
//公开年份
"pagesize"
:
20
,
"page"
:
1
}
```
#### 返回结果
```
javascript
{
status
:
0
,
msg
:
'操作成功'
,
data
:
{
total
:
5
,
max_score
:
49.434937
,
hits
:
[
{
"_index"
:
"bigdata_patent_bib"
,
"_type"
:
"_doc"
,
"_id"
:
"201410451887"
,
"_score"
:
49.5767
,
"_source"
:
{
"pub_type"
:
"发明"
,
"gr_no"
:
"CN104298662B"
,
"filing_name"
:
"一种基于有机物命名实体的机器翻译方法及翻译系统"
,
"pub_time"
:
"2015-01-21"
,
"filing_time"
:
"2014-09-05"
,
"gr_time"
:
"2017-10-10"
,
"filing_no"
:
"201410451887"
,
"inventor_name"
:
[
"任智军"
,
"张威"
,
"李进"
,
"杨婧"
,
"张延花"
],
"pub_status"
:
"有效"
,
"applicant_name"
:
[
"中国专利信息中心"
],
"pub_no"
:
"CN104298662A"
}
}
]
},
buckets
:
{
group_by_pub_status
:
{
doc_count_error_upper_bound
:
0
,
sum_other_doc_count
:
0
,
buckets
:
[
{
"key"
:
"有效"
,
"doc_count"
:
4
},
{
"key"
:
"在审"
,
"doc_count"
:
1
}
]
},
group_by_filing_year
:
{
doc_count_error_upper_bound
:
0
,
sum_other_doc_count
:
0
,
buckets
:
[
{
"key"
:
"2017"
,
"doc_count"
:
1
},
{
"key"
:
"2014"
,
"doc_count"
:
2
},
{
"key"
:
"2013"
,
"doc_count"
:
1
},
{
"key"
:
"2012"
,
"doc_count"
:
1
}
]
},
group_by_pub_year
:
{
doc_count_error_upper_bound
:
0
,
sum_other_doc_count
:
0
,
buckets
:
[
{
"key"
:
"2018"
,
"doc_count"
:
1
},
{
"key"
:
"2015"
,
"doc_count"
:
1
},
{
"key"
:
"2014"
,
"doc_count"
:
2
},
{
"key"
:
"2012"
,
"doc_count"
:
1
}
]
},
group_by_pub_type
:
{
doc_count_error_upper_bound
:
0
,
sum_other_doc_count
:
0
,
buckets
:
[
{
"key"
:
"发明"
,
"doc_count"
:
5
}
]
}
}
}
```
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