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
f24f684a
Commit
f24f684a
authored
Jul 30, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
9c297174
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
211 additions
and
7 deletions
+211
-7
ipop-web/app/base/controller/impl/patentycCtl.js
+51
-6
ipop-web/app/base/service/impl/patentycSve.js
+160
-1
No files found.
ipop-web/app/base/controller/impl/patentycCtl.js
View file @
f24f684a
...
...
@@ -72,6 +72,48 @@ class PatentycCtl extends CtlBase {
}
}
async
competitionAnalysisInfo
(
pobj
,
obj
,
req
){
//竞争分析基本信息
if
(
obj
.
companyname
&&
obj
.
companyname
!=
'undefined'
){
try
{
var
result
=
await
this
.
service
.
competitionAnalysisInfo
(
obj
);
if
(
result
){
return
System
.
getResult2
(
result
);
}
else
{
return
System
.
getErrResult2
(
"结果为空"
);
}
}
catch
(
error
){
return
System
.
getErrResult2
(
error
);
}
}
else
{
return
System
.
getErrResult2
(
"参数companyname不能为空"
);
}
}
async
competitionAnalysisContex
(
pobj
,
obj
,
req
){
//竞争分析详细信息
if
(
obj
.
company1
&&
obj
.
company1
!=
'undefined'
&&
obj
.
company2
&&
obj
.
company2
!=
'undefined'
){
try
{
var
result
=
await
this
.
service
.
competitionAnalysisContex
(
obj
);
if
(
result
){
return
System
.
getResult2
(
result
);
}
else
{
return
System
.
getErrResult2
(
"结果为空"
);
}
}
catch
(
error
){
return
System
.
getErrResult2
(
error
);
}
}
else
{
return
System
.
getErrResult2
(
"参数不能为空"
);
}
}
//智能组合分析-获取报告
async
ezGetReport
(
pobj
,
obj
,
req
){
if
(
obj
.
uid
&&
obj
.
uid
!=
'undefined'
&&
obj
.
type
&&
obj
.
type
!=
'undefined'
){
...
...
@@ -1390,21 +1432,24 @@ module.exports = PatentycCtl;
// var task = new PatentycCtl();
// var obj = {
// "
uid
": "667b8300-c101-11ea-98dd-3142bd90eec4",
// "
type
": "html"
// "
companyname
": "667b8300-c101-11ea-98dd-3142bd90eec4",
// "
company2
": "html"
// };
// var d = task.ezGetReport({},obj,{})
// console.log("dddddd---------" + JSON.stringify(d));
// task.competitionAnalysisInfo({},obj,{}).then(d=>{
// console.log(JSON.stringify(d));
// //console.log(d[0].analyse);
// })
// (async ()=>{
// var task = new PatentycCtl();
// var obj = {
// //"uid": "735f9cd0-c103-11ea-9ecd-1d1c3e85a974", //old
// "uid": "
bb185dd0-c7d1-11ea-b098-d907460e6bad
", //1000
// "uid": "
a0892db0-c7ee-11ea-b890-f1c3c3e4b831
", //1000
// //"uid":"b08b4f30-c7d6-11ea-b0d0-35e49817c337", //100
// "type": "html"
// };
// var d = await task.ReadyReport({},obj,{})
// //var d = await task.ReadyReport({},obj,{})
// var d = await task.ezReportUploadData({},obj,{});
// console.log("dddddd---------" + JSON.stringify(d));
// })()
ipop-web/app/base/service/impl/patentycSve.js
View file @
f24f684a
...
...
@@ -8298,7 +8298,7 @@ class PatentycService extends ServiceBase {
async
ezReportUploadData
(
obj
)
{
//智能组合分析-上传数据
var
rearray
=
await
this
.
prasecondition
(
obj
,
""
);
var
capilist
=
rearray
[
0
];
//var capilist = [
{ "term": { "province_name": "上海市" }
}];
//var capilist = [
{"match": {"filing_name": "区块链"}
}];
if
(
capilist
.
length
>
0
)
{
var
tms
=
await
this
.
GsbByChinaPatentSearchApi
.
patentSearch
(
capilist
);
//获取查询结果
// console.log("-----------------------------------------" + JSON.stringify(tms));
...
...
@@ -8549,6 +8549,165 @@ class PatentycService extends ServiceBase {
}
}
async
competitionAnalysisInfo
(
obj
){
//竞争分析基本信息
try
{
return
{
"companyname"
:
"华为技术科技有限公司"
,
//公司名称
"patentnum"
:
12345
,
//专利总量
"industryname"
:
"通信设备制造,互联网和相关服务"
,
//行业信息
"businessscope"
:
"123456"
,
//主营业务
"keyword"
:[
"终端设备"
,
"电信"
],
//关键词,最多20个
"competeinfo"
:[
//竞争企业信息,最多10个
{
"companyname"
:
"北京小米科技有限公司"
,
//公司名称
"patentnum"
:
9876
,
//专利总量
"keyword"
:[
"终端设备"
,
"电信"
],
//关键词,最多20个
"industryname"
:
"通信设备制造"
,
//行业信息
"competeindex"
:
90
//竞争指数
},
{
"companyname"
:
"北京小米科技有限公司"
,
"patentnum"
:
9876
,
"keyword"
:[
"终端设备"
,
"电信"
],
"industryname"
:
"通信设备制造,互联网和相关服务"
,
"competeindex"
:
90
},
{
"companyname"
:
"北京小米科技有限公司"
,
"patentnum"
:
9876
,
"keyword"
:[
"终端设备"
,
"电信"
],
"industryname"
:
"通信设备制造"
,
"competeindex"
:
90
},
{
"companyname"
:
"北京小米科技有限公司"
,
"patentnum"
:
9876
,
"keyword"
:[
"终端设备"
,
"电信"
],
"industryname"
:
"通信设备制造"
,
"competeindex"
:
90
},
{
"companyname"
:
"北京小米科技有限公司"
,
"patentnum"
:
9876
,
"keyword"
:[
"终端设备"
,
"电信"
],
"industryname"
:
"通信设备制造"
,
"competeindex"
:
90
},
]
}
}
catch
(
error
){
return
{};
}
}
async
competitionAnalysisContex
(
obj
){
//竞争分析详细信息
try
{
return
[
{
"keyword"
:
"keyword1"
,
//关键词
"company1"
:{
//左边公司的信息
"cpmpanyname"
:
"华为技术科技有限公司"
,
//公司名称
"patentnum"
:
2000
,
//专利总量
"patentquality"
:
78
,
//专利质量得分
"patentrate"
:
"78%"
,
//专利成长率
"totalscore"
:
123
,
//总评分
"iconscore"
:
87
//icon上的值
},
"company2"
:{
//右边公司的信息
"cpmpanyname"
:
"北京小米科技有限公司"
,
//公司名称
"patentnum"
:
2000
,
//专利总量
"patentquality"
:
78
,
//专利质量得分
"patentrate"
:
"78%"
,
//专利成长率
"totalscore"
:
123
,
//总评分
"iconscore"
:
87
//icon上的值
}
},
{
"keyword"
:
"keyword2"
,
"company1"
:{
"cpmpanyname"
:
"华为技术科技有限公司"
,
"patentnum"
:
2000
,
"patentquality"
:
78
,
"patentrate"
:
"78%"
,
"totalscore"
:
123
,
"iconscore"
:
87
},
"company2"
:{
"cpmpanyname"
:
"北京小米科技有限公司"
,
"patentnum"
:
2000
,
"patentquality"
:
78
,
"patentrate"
:
"78%"
,
"totalscore"
:
123
,
"iconscore"
:
87
}
},
{
"keyword"
:
"keyword3"
,
"company1"
:{
"cpmpanyname"
:
"华为技术科技有限公司"
,
"patentnum"
:
2000
,
"patentquality"
:
78
,
"patentrate"
:
"78%"
,
"totalscore"
:
123
,
"iconscore"
:
87
},
"company2"
:{
"cpmpanyname"
:
"北京小米科技有限公司"
,
"patentnum"
:
2000
,
"patentquality"
:
78
,
"patentrate"
:
"78%"
,
"totalscore"
:
123
,
"iconscore"
:
87
}
},
{
"keyword"
:
"keyword4"
,
"company1"
:{
"cpmpanyname"
:
"华为技术科技有限公司"
,
"patentnum"
:
2000
,
"patentquality"
:
78
,
"patentrate"
:
"78%"
,
"totalscore"
:
123
,
"iconscore"
:
87
},
"company2"
:{
"cpmpanyname"
:
"北京小米科技有限公司"
,
"patentnum"
:
2000
,
"patentquality"
:
78
,
"patentrate"
:
"78%"
,
"totalscore"
:
123
,
"iconscore"
:
87
}
},
{
"keyword"
:
"keyword5"
,
"company1"
:{
"cpmpanyname"
:
"华为技术科技有限公司"
,
"patentnum"
:
2000
,
"patentquality"
:
78
,
"patentrate"
:
"78%"
,
"totalscore"
:
123
,
"iconscore"
:
87
},
"company2"
:{
"cpmpanyname"
:
"北京小米科技有限公司"
,
"patentnum"
:
2000
,
"patentquality"
:
78
,
"patentrate"
:
"78%"
,
"totalscore"
:
123
,
"iconscore"
:
87
}
}
]
}
catch
(
error
){
return
{};
}
}
async
aliTrendGr
(
obj
)
{
//区域专利监控首页 - 趋势详情-授权
var
year
=
obj
.
year
==
null
?
""
:
obj
.
year
;
var
type
=
obj
.
type
==
null
?
""
:
obj
.
type
;
...
...
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