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
cdafd4ae
Commit
cdafd4ae
authored
Aug 10, 2020
by
wkliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement
parent
70fdccf6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
82 additions
and
58 deletions
+82
-58
center-channel/app/base/api/impl/action/fbQuery.js
+1
-1
center-channel/app/base/service/impl/licenses/fblicenseSve.js
+0
-0
center-channel/app/config/settings.js
+7
-0
center-channel/app/front/entry/public/apidoc/licensesDesc/fblicenseDesc.md
+74
-57
No files found.
center-channel/app/base/api/impl/action/fbQuery.js
View file @
cdafd4ae
...
...
@@ -24,7 +24,7 @@ class fbQuery extends WEBBase {
case
'getDetail'
:
// 获取详情
opResult
=
await
this
.
fbLSve
.
getDetail
(
pobj
.
actionBody
.
id
);
break
;
case
'getList'
:
case
'getList'
:
// 获取列表
opResult
=
await
this
.
fbLSve
.
getList
(
pobj
.
actionBody
);
break
;
default
:
...
...
center-channel/app/base/service/impl/licenses/fblicenseSve.js
View file @
cdafd4ae
This diff is collapsed.
Click to expand it.
center-channel/app/config/settings.js
View file @
cdafd4ae
...
...
@@ -23,6 +23,13 @@ var settings = {
usertimeout
:
3600
,
//单位秒
basepath
:
path
.
normalize
(
path
.
join
(
__dirname
,
'../..'
)),
port
:
process
.
env
.
NODE_PORT
||
4012
,
fbQueryUrl
:
function
()
{
if
(
this
.
env
==
'dev'
||
this
.
env
==
'test'
)
{
return
'http://43.247.184.92:15505'
}
else
{
return
'http://43.247.184.92:15505'
}
},
opPushQueueUrl
:
function
()
{
if
(
this
.
env
==
"dev"
||
this
.
env
==
"test"
)
{
return
"http://192.168.18.101:4018/api/queueAction/producer/springBoard"
;
...
...
center-channel/app/front/entry/public/apidoc/licensesDesc/fblicenseDesc.md
View file @
cdafd4ae
...
...
@@ -25,26 +25,50 @@
```
#### 返回结果
```
javascript
{
"code"
:
0
,
"msg"
:
"success"
,
"count"
:
1
,
"data"
:
[{
"license_no"
:
"JY11113081581363"
,
// 许可证编号
"company_name"
:
"北京金金顺平商店"
,
// 经营者名称
"pub_date"
:
"2017-12-20"
,
// 发证时间
"end_date"
:
"2022-12-19"
// 有效期至
}],
"requestId"
:
"62edd9eb80b04ec9b407eebf06dd1011"
}
{
"data"
:
[
// 结果列表
{
"license_no"
:
"JY11113081581363"
,
// 许可证编号
"company_name"
:
"北京金金顺平商店"
,
// 经营者名称
"pub_date"
:
"2017-12-20"
,
// 发证时间
"end_date"
:
"2022-12-19"
// 有效期至
}
],
"msg"
:
"查询成功"
,
"page"
:
1
,
"pagesize"
:
20
,
"region_count"
:
[
// 所属地区统计
{
"doc_count"
:
21
,
"key"
:
"上海"
}
],
"subject_count"
:
[
// 主体业态统计
{
"doc_count"
:
19
,
"key"
:
"食品销售经营者"
}
],
"year_count"
:
[
// 发证年份统计
{
"doc_count"
:
2
,
"key"
:
2019
}
],
"count"
:
32
,
"code"
:
0
,
"requestId"
:
"9e6b08a448644197a87bd91577695dcb"
}
```
## **<a name="getList"> 条件搜索(获取 list)</a>**
[
返回到目录
](
#menu
)
<a
name=
"menu"
href=
"/doc"
>
返回主目录
</a>
#### 经营者名称和许可证编号为模糊查询 且为必填项
#### 经营者名称和许可证编号为模糊查询 有且只有其一
##### URL
[
/web/action/fbQuery/springBoard
]
...
...
@@ -57,9 +81,9 @@
```
javascript
{
"base"
:
[
""
]
,
// 所属地区
"pub_year"
:
[
2017
]
,
// 发证年份
"subject_format"
:
[
""
]
,
// 主体业态
"base"
:
""
,
// 所属地区
"pub_year"
:
2017
,
// 发证年份
"subject_format"
:
""
,
// 主体业态
"status"
:
1
,
// 状态码 0: 失效, 1: 有效
"company_name"
:
""
,
// 经营者名称
"license_no"
:
""
// 许可证编号
...
...
@@ -72,48 +96,40 @@
#### 返回结果
```
javascript
{
"data"
:
[
// 结果列表
{
"license_no"
:
"JY11113081581363"
,
// 许可证编号
"company_name"
:
"北京金金顺平商店"
,
// 经营者名称
"pub_date"
:
"2017-12-20"
,
// 发证时间
"end_date"
:
"2022-12-19"
// 有效期至
}
],
"msg"
:
"查询成功"
,
"page"
:
1
,
"pagesize"
:
20
,
"region_count"
:
[
// 所属地区统计
{
"doc_count"
:
21
,
"key"
:
"上海"
}
],
"subject_count"
:
[
// 主体业态统计
{
"msg"
:
"success"
,
"code"
:
0
,
"count"
:
7
,
"data"
:
[{
"license_no"
:
"JY11113081581363"
,
// 许可证编号
"company_name"
:
"北京金金顺平商店"
,
// 经营者名称
"pub_date"
:
"2017-12-20"
,
// 发证时间
"end_date"
:
"2022-12-19"
// 有效期至
},
{
"license_no"
:
"JY11112152041718"
,
"company_name"
:
"北京东金金良商贸有限公司"
,
"pub_date"
:
"2018-08-24"
,
"end_date"
:
"2023-08-23"
},
{
"license_no"
:
"JY11114010394147"
,
"company_name"
:
"北京市金金金鑫商店"
,
"pub_date"
:
"2016-05-23"
,
"end_date"
:
"2021-05-22"
},
{
"license_no"
:
"JY11105222454885"
,
"company_name"
:
"山金金王国际贸易(北京)有限公司"
,
"pub_date"
:
"2019-06-21"
,
"end_date"
:
"2024-06-20"
},
{
"license_no"
:
"JY11105072127403"
,
"company_name"
:
"北京金金鑫商贸店"
,
"pub_date"
:
"2018-10-23"
,
"end_date"
:
"2023-10-22"
},
{
"license_no"
:
"JY11108010732650"
,
"company_name"
:
"北京金金宝经贸有限公司"
,
"pub_date"
:
"2016-10-21"
,
"end_date"
:
"2021-10-20"
},
{
"license_no"
:
"JY21105050529523"
,
"company_name"
:
"北京市金金宝餐厅"
,
"pub_date"
:
"2016-07-15"
,
"end_date"
:
"2021-07-14"
}],
"requestId"
:
"8ddc1e1ace514e238a31406e14f87e5d"
}
"doc_count"
:
19
,
"key"
:
"食品销售经营者"
}
],
"year_count"
:
[
// 发证年份统计
{
"doc_count"
:
2
,
"key"
:
2019
}
],
"count"
:
32
,
"code"
:
0
,
"requestId"
:
"9e6b08a448644197a87bd91577695dcb"
}
```
## **<a name="getDetail"> 获取详情</a>**
...
...
@@ -137,6 +153,7 @@
```
#### 返回结果
```
javascript
{
"msg"
:
"success"
,
...
...
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