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
5399ea51
Commit
5399ea51
authored
Aug 25, 2020
by
张云飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zyf
parent
c6773883
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
110 additions
and
25 deletions
+110
-25
igirl-zcapi/app/base/api/impl/tool/toolApi.js
+15
-0
igirl-zcapi/app/base/api/impl/trademark/gsbicsearch.js
+1
-1
igirl-zcapi/app/base/api/impl/trademark/gsbtmsearch.js
+94
-24
No files found.
igirl-zcapi/app/base/api/impl/tool/toolApi.js
View file @
5399ea51
...
@@ -419,6 +419,21 @@ class ToolApi extends ApiBase {
...
@@ -419,6 +419,21 @@ class ToolApi extends ApiBase {
return
{};
return
{};
}
}
}
}
//商标尼斯小项查询过滤
async
getTmNclFilterSearch
(
pobj
,
o
,
req
)
{
var
appkey
=
this
.
appKeyStr
;
var
data
=
{
appKey
:
appkey
,
nclOneCodes
:
pobj
.
nclOneCodes
,
nclSmallCodes
:
pobj
.
nclSmallCodes
,
};
var
ncllist
=
await
this
.
gsbSearchApi
.
tmnclfiltersearch
(
data
);
if
(
ncllist
.
status
==
0
)
{
return
ncllist
;
}
else
{
return
{};
}
}
async
getCropperPic
(
qobj
,
obj
,
req
)
{
async
getCropperPic
(
qobj
,
obj
,
req
)
{
var
that
=
this
;
var
that
=
this
;
...
...
igirl-zcapi/app/base/api/impl/trademark/gsbicsearch.js
View file @
5399ea51
...
@@ -1112,7 +1112,7 @@ class GsbIcSearchApi extends ApiBase {
...
@@ -1112,7 +1112,7 @@ class GsbIcSearchApi extends ApiBase {
return
{
status
:
-
1
,
msg
:
"操作失败"
,
data
:
null
};
return
{
status
:
-
1
,
msg
:
"操作失败"
,
data
:
null
};
}
}
};
};
async
companymgetsearch
(
obj
)
{
async
companymgetsearch
(
obj
)
{
var
self
=
this
;
var
self
=
this
;
...
...
igirl-zcapi/app/base/api/impl/trademark/gsbtmsearch.js
View file @
5399ea51
...
@@ -28,7 +28,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -28,7 +28,7 @@ class GsbTmSearchApi extends ApiBase {
};
};
async
xzSearch
(
obj
)
{
//续展查询-ok
async
xzSearch
(
obj
)
{
//续展查询-ok
var
self
=
this
;
var
self
=
this
;
var
type
=
obj
.
searchType
;
var
type
=
obj
.
searchType
;
if
(
type
==
""
||
type
==
null
)
{
if
(
type
==
""
||
type
==
null
)
{
return
System
.
getResult2
(
null
,
null
);
return
System
.
getResult2
(
null
,
null
);
...
@@ -168,7 +168,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -168,7 +168,7 @@ class GsbTmSearchApi extends ApiBase {
}
}
};
};
async
xzallSearch
(
obj
)
{
//公司商机
async
xzallSearch
(
obj
)
{
//公司商机
var
companyName
=
obj
.
companyName
==
null
?
""
:
obj
.
companyName
;
var
companyName
=
obj
.
companyName
==
null
?
""
:
obj
.
companyName
;
var
addr
=
obj
.
address
==
null
?
""
:
obj
.
address
;
var
addr
=
obj
.
address
==
null
?
""
:
obj
.
address
;
var
pagesize
=
obj
.
pageSize
==
null
?
15
:
obj
.
pageSize
;
var
pagesize
=
obj
.
pageSize
==
null
?
15
:
obj
.
pageSize
;
...
@@ -253,7 +253,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -253,7 +253,7 @@ class GsbTmSearchApi extends ApiBase {
};
};
async
xzSearchDetail
(
obj
)
{
//续展详情查询
async
xzSearchDetail
(
obj
)
{
//续展详情查询
var
type
=
obj
.
searchType
;
var
type
=
obj
.
searchType
;
if
(
type
==
""
||
type
==
null
)
{
if
(
type
==
""
||
type
==
null
)
{
return
System
.
getResult2
(
null
,
null
);
return
System
.
getResult2
(
null
,
null
);
...
@@ -334,7 +334,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -334,7 +334,7 @@ class GsbTmSearchApi extends ApiBase {
};
};
async
yySearchDetail
(
obj
)
{
//异议详情查询-???
async
yySearchDetail
(
obj
)
{
//异议详情查询-???
if
(
obj
.
companyName
==
null
&&
obj
.
companyName
==
""
)
{
if
(
obj
.
companyName
==
null
&&
obj
.
companyName
==
""
)
{
return
System
.
getResult2
(
null
,
null
);
return
System
.
getResult2
(
null
,
null
);
}
}
...
@@ -410,7 +410,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -410,7 +410,7 @@ class GsbTmSearchApi extends ApiBase {
}
}
};
};
async
byslSearch
(
obj
)
{
//不予受理查询-???
async
byslSearch
(
obj
)
{
//不予受理查询-???
var
companyName
=
obj
.
companyName
==
null
?
""
:
obj
.
companyName
;
var
companyName
=
obj
.
companyName
==
null
?
""
:
obj
.
companyName
;
var
pagesize
=
obj
.
pageSize
==
null
?
15
:
obj
.
pageSize
;
var
pagesize
=
obj
.
pageSize
==
null
?
15
:
obj
.
pageSize
;
if
(
obj
.
currentPage
==
null
)
{
if
(
obj
.
currentPage
==
null
)
{
...
@@ -467,7 +467,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -467,7 +467,7 @@ class GsbTmSearchApi extends ApiBase {
}
}
};
};
async
byslDetail
(
obj
)
{
//不予受理详情查询-???
async
byslDetail
(
obj
)
{
//不予受理详情查询-???
if
(
obj
.
companyName
==
null
&&
obj
.
companyName
==
""
)
{
if
(
obj
.
companyName
==
null
&&
obj
.
companyName
==
""
)
{
return
System
.
getResult2
(
null
,
null
);
return
System
.
getResult2
(
null
,
null
);
}
}
...
@@ -524,7 +524,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -524,7 +524,7 @@ class GsbTmSearchApi extends ApiBase {
};
};
async
tmSearch
(
obj
)
{
//商标查询-ok
async
tmSearch
(
obj
)
{
//商标查询-ok
var
param
=
{
var
param
=
{
tm_name
:
obj
.
tmName
,
tm_name
:
obj
.
tmName
,
reg_num
:
obj
.
regNum
,
reg_num
:
obj
.
regNum
,
...
@@ -536,7 +536,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -536,7 +536,7 @@ class GsbTmSearchApi extends ApiBase {
};
};
async
tmAccurateSearch
(
obj
)
{
//根据商标名称进行精准查询
async
tmAccurateSearch
(
obj
)
{
//根据商标名称进行精准查询
var
tmName
=
obj
.
tmName
==
null
?
""
:
obj
.
tmName
;
var
tmName
=
obj
.
tmName
==
null
?
""
:
obj
.
tmName
;
var
sqlbtabkey
=
obj
.
sqlbtabkey
==
null
?
""
:
obj
.
sqlbtabkey
;
var
sqlbtabkey
=
obj
.
sqlbtabkey
==
null
?
""
:
obj
.
sqlbtabkey
;
var
pagesize
=
obj
.
pagesize
==
null
?
15
:
obj
.
pagesize
;
var
pagesize
=
obj
.
pagesize
==
null
?
15
:
obj
.
pagesize
;
...
@@ -609,7 +609,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -609,7 +609,7 @@ class GsbTmSearchApi extends ApiBase {
}
}
};
};
async
tmAccurateJuheSearch
(
obj
)
{
//根据商标名称精准查询,对查询结果进行类别聚合
async
tmAccurateJuheSearch
(
obj
)
{
//根据商标名称精准查询,对查询结果进行类别聚合
var
tmName
=
obj
.
tmName
==
null
?
""
:
obj
.
tmName
;
var
tmName
=
obj
.
tmName
==
null
?
""
:
obj
.
tmName
;
if
(
tmName
==
""
)
{
if
(
tmName
==
""
)
{
...
@@ -647,7 +647,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -647,7 +647,7 @@ class GsbTmSearchApi extends ApiBase {
};
};
async
tmNameSearch
(
obj
)
{
//根据商标名称模糊查询
async
tmNameSearch
(
obj
)
{
//根据商标名称模糊查询
var
tmName
=
obj
.
tmName
==
null
?
""
:
obj
.
tmName
;
var
tmName
=
obj
.
tmName
==
null
?
""
:
obj
.
tmName
;
var
sqlbtabkey
=
obj
.
sqlbtabkey
==
null
?
""
:
obj
.
sqlbtabkey
;
var
sqlbtabkey
=
obj
.
sqlbtabkey
==
null
?
""
:
obj
.
sqlbtabkey
;
var
pagesize
=
obj
.
pagesize
==
null
?
15
:
obj
.
pagesize
;
var
pagesize
=
obj
.
pagesize
==
null
?
15
:
obj
.
pagesize
;
...
@@ -721,7 +721,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -721,7 +721,7 @@ class GsbTmSearchApi extends ApiBase {
};
};
async
tmNamejuheSearch
(
obj
)
{
//根据商标名称模糊查询,对查询结果进行类别聚合
async
tmNamejuheSearch
(
obj
)
{
//根据商标名称模糊查询,对查询结果进行类别聚合
var
tmName
=
obj
.
tmName
==
null
?
""
:
obj
.
tmName
;
var
tmName
=
obj
.
tmName
==
null
?
""
:
obj
.
tmName
;
if
(
tmName
==
""
)
{
if
(
tmName
==
""
)
{
...
@@ -759,7 +759,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -759,7 +759,7 @@ class GsbTmSearchApi extends ApiBase {
};
};
async
tmzchSearch
(
obj
)
{
//根据商标商标号精准查询
async
tmzchSearch
(
obj
)
{
//根据商标商标号精准查询
var
regNum
=
obj
.
regNum
==
null
?
""
:
obj
.
regNum
;
var
regNum
=
obj
.
regNum
==
null
?
""
:
obj
.
regNum
;
var
sqlbtabkey
=
obj
.
sqlbtabkey
==
null
?
""
:
obj
.
sqlbtabkey
;
var
sqlbtabkey
=
obj
.
sqlbtabkey
==
null
?
""
:
obj
.
sqlbtabkey
;
var
pagesize
=
obj
.
pagesize
==
null
?
15
:
obj
.
pagesize
;
var
pagesize
=
obj
.
pagesize
==
null
?
15
:
obj
.
pagesize
;
...
@@ -833,7 +833,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -833,7 +833,7 @@ class GsbTmSearchApi extends ApiBase {
};
};
async
tmzchjuheSearch
(
obj
)
{
//根据商标商标号精准查询,对查询结果进行类别聚合
async
tmzchjuheSearch
(
obj
)
{
//根据商标商标号精准查询,对查询结果进行类别聚合
var
regNum
=
obj
.
regNum
==
null
?
""
:
obj
.
regNum
;
var
regNum
=
obj
.
regNum
==
null
?
""
:
obj
.
regNum
;
if
(
regNum
==
""
)
{
if
(
regNum
==
""
)
{
...
@@ -871,7 +871,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -871,7 +871,7 @@ class GsbTmSearchApi extends ApiBase {
};
};
async
tmzcrSearch
(
obj
)
{
//根据商标注册人模糊查询
async
tmzcrSearch
(
obj
)
{
//根据商标注册人模糊查询
var
applier
=
obj
.
applier
==
null
?
""
:
obj
.
applier
;
var
applier
=
obj
.
applier
==
null
?
""
:
obj
.
applier
;
var
sqlbtabkey
=
obj
.
sqlbtabkey
==
null
?
""
:
obj
.
sqlbtabkey
;
var
sqlbtabkey
=
obj
.
sqlbtabkey
==
null
?
""
:
obj
.
sqlbtabkey
;
var
pagesize
=
obj
.
pagesize
==
null
?
15
:
obj
.
pagesize
;
var
pagesize
=
obj
.
pagesize
==
null
?
15
:
obj
.
pagesize
;
...
@@ -945,7 +945,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -945,7 +945,7 @@ class GsbTmSearchApi extends ApiBase {
};
};
async
tmzcrjuheSearch
(
obj
)
{
//根据商标注册人模糊查询,对查询结果进行类别聚合
async
tmzcrjuheSearch
(
obj
)
{
//根据商标注册人模糊查询,对查询结果进行类别聚合
var
applier
=
obj
.
applier
==
null
?
""
:
obj
.
applier
;
var
applier
=
obj
.
applier
==
null
?
""
:
obj
.
applier
;
if
(
applier
==
""
)
{
if
(
applier
==
""
)
{
...
@@ -984,7 +984,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -984,7 +984,7 @@ class GsbTmSearchApi extends ApiBase {
async
tmSearchByRegNum
(
obj
)
{
//商标查询(多注册号)-ok
async
tmSearchByRegNum
(
obj
)
{
//商标查询(多注册号)-ok
var
reqUrl
=
this
.
tmSearchUrl
;
var
reqUrl
=
this
.
tmSearchUrl
;
if
(
obj
.
regNums
==
null
||
obj
.
regNums
.
length
<
1
)
{
if
(
obj
.
regNums
==
null
||
obj
.
regNums
.
length
<
1
)
{
return
System
.
getResult2
(
null
,
null
);
return
System
.
getResult2
(
null
,
null
);
}
}
...
@@ -1058,7 +1058,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -1058,7 +1058,7 @@ class GsbTmSearchApi extends ApiBase {
};
};
async
getTmFlow
(
obj
)
{
//商标流程
async
getTmFlow
(
obj
)
{
//商标流程
var
param
=
{
var
param
=
{
reg_num
:
obj
.
regNum
reg_num
:
obj
.
regNum
}
}
...
@@ -1066,7 +1066,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -1066,7 +1066,7 @@ class GsbTmSearchApi extends ApiBase {
}
}
async
getTmNclSmallCodes
(
obj
)
{
//商标小类
async
getTmNclSmallCodes
(
obj
)
{
//商标小类
var
param
=
{
var
param
=
{
reg_num
:
obj
.
regNum
,
reg_num
:
obj
.
regNum
,
nclone_code
:
obj
.
nclOneCode
nclone_code
:
obj
.
nclOneCode
...
@@ -1075,7 +1075,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -1075,7 +1075,7 @@ class GsbTmSearchApi extends ApiBase {
}
}
async
getNcl
(
obj
)
{
//尼斯数据
async
getNcl
(
obj
)
{
//尼斯数据
var
nclcode
=
obj
.
nclcode
==
null
?
""
:
obj
.
nclcode
;
var
nclcode
=
obj
.
nclcode
==
null
?
""
:
obj
.
nclcode
;
var
level
=
obj
.
level
==
null
?
""
:
obj
.
level
;
var
level
=
obj
.
level
==
null
?
""
:
obj
.
level
;
var
nclcodelist
=
obj
.
nclcodelist
||
null
;
var
nclcodelist
=
obj
.
nclcodelist
||
null
;
...
@@ -1150,7 +1150,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -1150,7 +1150,7 @@ class GsbTmSearchApi extends ApiBase {
};
};
async
getNclByLikeName_new
(
obj
)
{
//尼斯数据
async
getNclByLikeName_new
(
obj
)
{
//尼斯数据
var
ncls
=
obj
.
ncls
||
null
;
var
ncls
=
obj
.
ncls
||
null
;
var
name
=
obj
.
name
;
var
name
=
obj
.
name
;
var
reqUrl
=
this
.
nclUrl
;
var
reqUrl
=
this
.
nclUrl
;
...
@@ -1359,7 +1359,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -1359,7 +1359,7 @@ class GsbTmSearchApi extends ApiBase {
}
}
}
}
async
getNclByLikeName
(
obj
)
{
//尼斯数据
async
getNclByLikeName
(
obj
)
{
//尼斯数据
var
ncls
=
obj
.
ncls
||
null
;
var
ncls
=
obj
.
ncls
||
null
;
var
name
=
obj
.
name
;
var
name
=
obj
.
name
;
var
reqUrl
=
this
.
nclUrl
;
var
reqUrl
=
this
.
nclUrl
;
...
@@ -1550,7 +1550,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -1550,7 +1550,7 @@ class GsbTmSearchApi extends ApiBase {
return
tmpParams
;
return
tmpParams
;
}
}
async
imagesearch
(
obj
)
{
//图像检索结果进行查询
async
imagesearch
(
obj
)
{
//图像检索结果进行查询
var
tmRegistNum
=
obj
.
tmRegistNum
==
null
?
""
:
obj
.
tmRegistNum
;
var
tmRegistNum
=
obj
.
tmRegistNum
==
null
?
""
:
obj
.
tmRegistNum
;
var
sqlbtabkey
=
obj
.
sqlbtabkey
==
null
?
""
:
obj
.
sqlbtabkey
;
var
sqlbtabkey
=
obj
.
sqlbtabkey
==
null
?
""
:
obj
.
sqlbtabkey
;
if
(
tmRegistNum
==
""
&&
tmRegistNum
==
null
)
{
if
(
tmRegistNum
==
""
&&
tmRegistNum
==
null
)
{
...
@@ -1614,7 +1614,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -1614,7 +1614,7 @@ class GsbTmSearchApi extends ApiBase {
}
}
}
}
async
imagesearchbycode
(
obj
)
{
//图像检索结果进行分类查询
async
imagesearchbycode
(
obj
)
{
//图像检索结果进行分类查询
var
tmRegistNumsAll
=
obj
.
tmRegistNumsAll
==
null
?
""
:
obj
.
tmRegistNumsAll
;
var
tmRegistNumsAll
=
obj
.
tmRegistNumsAll
==
null
?
""
:
obj
.
tmRegistNumsAll
;
var
sqlbtabkey
=
obj
.
sqlbtabkey
==
null
?
""
:
obj
.
sqlbtabkey
;
var
sqlbtabkey
=
obj
.
sqlbtabkey
==
null
?
""
:
obj
.
sqlbtabkey
;
var
pagesize
=
obj
.
pagesize
==
null
?
15
:
obj
.
pagesize
;
var
pagesize
=
obj
.
pagesize
==
null
?
15
:
obj
.
pagesize
;
...
@@ -1767,7 +1767,7 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -1767,7 +1767,7 @@ class GsbTmSearchApi extends ApiBase {
}
}
}
}
async
getAgencyName
(
obj
)
{
//代理机构名称查询
async
getAgencyName
(
obj
)
{
//代理机构名称查询
var
companyName
=
obj
.
companyName
==
null
?
""
:
obj
.
companyName
;
var
companyName
=
obj
.
companyName
==
null
?
""
:
obj
.
companyName
;
companyName
=
await
this
.
getConvertSemiangleStr
(
companyName
);
companyName
=
await
this
.
getConvertSemiangleStr
(
companyName
);
var
pageSize
=
obj
.
pageSize
==
null
?
15
:
obj
.
pageSize
;
var
pageSize
=
obj
.
pageSize
==
null
?
15
:
obj
.
pageSize
;
...
@@ -1806,6 +1806,76 @@ class GsbTmSearchApi extends ApiBase {
...
@@ -1806,6 +1806,76 @@ class GsbTmSearchApi extends ApiBase {
return
rtn
=
System
.
getResult2
(
null
,
null
);
return
rtn
=
System
.
getResult2
(
null
,
null
);
}
}
}
}
//商标尼斯小项查询过滤
async
tmnclfiltersearch
(
obj
)
{
var
nclOneCodes
=
obj
.
nclOneCodes
==
null
?
""
:
obj
.
nclOneCodes
;
var
nclSmallCodes
=
obj
.
nclSmallCodes
==
[]
?
""
:
obj
.
nclSmallCodes
;
var
reqUrl
=
this
.
nclUrl
;
var
params
=
{
"query"
:
{
"bool"
:
{
"must"
:
[
{
"term"
:
{
"belong_to_onecode"
:
nclOneCodes
}
},
{
"term"
:
{
"level"
:
3
}
}
]
}
},
"size"
:
300
,
"_source"
:
[
"code"
,
"level"
,
"description"
,
"name"
,
"pid"
,
"belong_to_onecode"
]
};
if
(
nclSmallCodes
.
length
>
0
)
{
var
namelist
=
[]
for
(
var
k
=
0
;
k
<
nclSmallCodes
.
length
;
k
++
)
{
var
c
=
nclSmallCodes
[
k
];
namelist
.
push
(
c
.
name
);
}
var
dsl
=
{
"terms"
:
{
"name.raw"
:
namelist
}
}
params
.
query
.
bool
.
must
.
push
(
dsl
);
}
var
rc
=
System
.
getObject
(
"util.execClient"
);
var
rtn
=
null
;
try
{
rtn
=
await
rc
.
execPost
(
params
,
reqUrl
);
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
var
sources
=
[];
var
data
=
{
"nclOneCodes"
:
nclOneCodes
,
"nclSmallCodes"
:
sources
};
j
.
hits
.
hits
.
forEach
(
function
(
c
)
{
var
source
=
{
code
:
c
.
_source
.
code
,
name
:
c
.
_source
.
name
,
pcode
:
c
.
_source
.
pcode
};
sources
.
push
(
source
);
});
var
a
=
{
status
:
0
,
msg
:
"操作成功"
,
data
:
data
};
return
a
;
}
catch
(
e
)
{
return
{
status
:
-
1
,
msg
:
"操作失败"
,
data
:
null
};
}
}
async
getConvertSemiangleStr
(
str
)
{
async
getConvertSemiangleStr
(
str
)
{
var
result
=
""
;
var
result
=
""
;
...
...
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