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
a4eb726c
Commit
a4eb726c
authored
Aug 27, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Plain Diff
submitIcpIntention,queryIntentionList,confirmIcpIntention add
parents
9ada1384
53f2c7c0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
93 additions
and
6 deletions
+93
-6
center-channel/app/base/api/impl/action/icbcTools.js
+48
-0
center-channel/app/base/service/impl/trademark/icbcSve.js
+38
-0
center-channel/app/base/service/impl/utilsSve/utilsDeliverSve.js
+5
-6
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
+0
-0
center-channel/app/front/entry/public/apidoc/README.md
+2
-0
center-channel/app/front/entry/public/apidoc/opTrademark/newicbcSearch.md
+0
-0
No files found.
center-channel/app/base/api/impl/action/icbcTools.js
0 → 100644
View file @
a4eb726c
var
WEBBase
=
require
(
"../../web.base"
);
var
system
=
require
(
"../../../system"
);
class
IcbcToolsAPI
extends
WEBBase
{
constructor
()
{
super
();
this
.
icbcSve
=
system
.
getObject
(
"service.trademark.icbcSve"
);
}
/**
* 接口跳转-POST请求
* action_process 执行的流程
* action_type 执行的类型
* action_body 执行的参数
*/
async
springBoard
(
pobj
,
qobj
,
req
)
{
if
(
!
pobj
.
actionProcess
)
{
return
system
.
getResult
(
null
,
"actionProcess参数不能为空"
);
}
if
(
!
pobj
.
actionType
)
{
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
}
var
result
=
await
this
.
opActionProcess
(
pobj
,
pobj
.
actionType
,
pobj
.
actionBody
,
req
);
return
result
;
}
async
opActionProcess
(
pobj
,
action_type
,
action_body
,
req
)
{
var
opResult
=
null
;
switch
(
action_type
)
{
case
"getCompanyListByVague"
:
//企业模糊查询
opResult
=
await
this
.
icbcSve
.
getCompanyListByVague
(
action_body
,
req
);
break
;
case
"getDetailByCompanyName"
:
//企业详情
opResult
=
await
this
.
icbcSve
.
getDetailByCompanyName
(
action_body
,
req
);
break
;
case
"getCompanyChangeByName"
:
//企业变更记录查询
opResult
=
await
this
.
icbcSve
.
getCompanyChangeByName
(
action_body
,
req
);
break
;
case
"getCompanyIcpByName"
:
//工商icp证照查询
opResult
=
await
this
.
icbcSve
.
getCompanyIcpByName
(
action_body
,
req
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
}
return
opResult
;
}
}
module
.
exports
=
IcbcToolsAPI
;
\ No newline at end of file
center-channel/app/base/service/impl/trademark/icbcSve.js
0 → 100644
View file @
a4eb726c
const
system
=
require
(
"../../../system"
);
var
settings
=
require
(
"../../../../config/settings"
);
const
AppServiceBase
=
require
(
"../../app.base"
);
class
IcbcService
extends
AppServiceBase
{
constructor
()
{
super
();
this
.
zcApiUrl
=
settings
.
reqZcApi
();
}
//企业模糊查询
async
getCompanyListByVague
(
obj
,
req
)
{
var
url
=
this
.
zcApiUrl
+
"api/tool/toolApi/getCompanyListByVague"
;
return
await
this
.
opReqResult
(
url
,
obj
,
req
);
}
//企业详情
async
getDetailByCompanyName
(
queryobj
,
req
)
{
var
url
=
this
.
zcApiUrl
+
"api/tool/toolApi/getDetailByCompanyName"
;
return
await
this
.
opReqResult
(
url
,
queryobj
,
req
);
}
//企业变更记录查询
async
getCompanyChangeByName
(
queryobj
,
req
)
{
var
url
=
this
.
zcApiUrl
+
"api/tool/toolApi/getCompanyChangeByName"
;
return
await
this
.
opReqResult
(
url
,
queryobj
,
req
);
}
//工商icp证照查询
async
getCompanyIcpByName
(
queryobj
,
req
)
{
var
url
=
this
.
zcApiUrl
+
"api/tool/toolApi/getCompanyIcpByName"
;
return
await
this
.
opReqResult
(
url
,
queryobj
,
req
);
}
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
;
}
}
module
.
exports
=
IcbcService
;
center-channel/app/base/service/impl/utilsSve/utilsDeliverSve.js
View file @
a4eb726c
...
...
@@ -16,7 +16,7 @@ class utilsDeliverSve extends AppServiceBase{
*/
async
pushTmReDeliver
(
pobj
){
try
{
var
verifyResult
=
await
this
.
verifyParam
(
pobj
);
var
verifyResult
=
await
this
.
verifyParam
(
pobj
.
actionBody
);
if
(
verifyResult
.
status
!=
0
){
return
system
.
getResultFail
();
}
...
...
@@ -35,14 +35,13 @@ class utilsDeliverSve extends AppServiceBase{
* @returns {Promise<{msg: *, data, status: number}>}
*/
async
verifyParam
(
actionBody
)
{
let
verify
=
system
.
getResultSuccess
();
let
deliveryData
=
""
;
let
orderNo
=
""
;
let
tradeStatus
=
''
;
let
applicant
=
{};
if
(
actionBody
.
delivery_content
){
deliveryData
=
actionBody
.
delivery_content
[
0
].
deliveryContent
;
orderNo
=
actionBody
.
delivery_content
[
0
].
sourceO
rderNo
;
deliveryData
=
actionBody
.
delivery_content
;
orderNo
=
actionBody
.
order_info
.
o
rderNo
;
}
if
(
actionBody
.
deliveryData
){
deliveryData
=
actionBody
.
deliveryData
;
...
...
@@ -89,8 +88,8 @@ class utilsDeliverSve extends AppServiceBase{
askForData
:
deliveryData
.
askForData
,
supData
:
deliveryData
.
supData
}
verify
.
data
=
postData
;
return
verify
;
return
system
.
getResultSuccess
(
postData
)
;
}
/**
...
...
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
a4eb726c
This diff is collapsed.
Click to expand it.
center-channel/app/front/entry/public/apidoc/README.md
View file @
a4eb726c
...
...
@@ -7,6 +7,8 @@
## 1. 工商检索相关接口
1
[
工商检索中心
](
doc/api/opTrademark/icbcSearch.md
)
2
[
数据中心工商接口
](
doc/api/opTrademark/newicbcSearch.md
)
## 2. 商标检索相关接口
1
[
商标检索中心
](
doc/api/opTrademark/tmSearch.md
)
...
...
center-channel/app/front/entry/public/apidoc/opTrademark/newicbcSearch.md
0 → 100644
View file @
a4eb726c
This diff is collapsed.
Click to expand it.
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