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
d1b689a7
Commit
d1b689a7
authored
Aug 08, 2020
by
wkliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fbQuery
parent
23a5cd5f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
209 additions
and
2 deletions
+209
-2
center-channel/app/base/api/impl/action/fbQuery.js
+38
-0
center-channel/app/base/service/impl/common/askForSve.js
+0
-1
center-channel/app/base/service/impl/licenses/fblicenseSve.js
+0
-0
center-channel/app/front/entry/public/apidoc/README.md
+3
-0
center-channel/app/front/entry/public/apidoc/appDesc/demoDesc.md
+1
-1
center-channel/app/front/entry/public/apidoc/licensesDesc/fblicenseDesc.md
+167
-0
No files found.
center-channel/app/base/api/impl/action/fbQuery.js
0 → 100644
View file @
d1b689a7
var
WEBBase
=
require
(
"../../web.base"
);
var
system
=
require
(
"../../../system"
);
class
fbQuery
extends
WEBBase
{
constructor
()
{
super
();
this
.
fbLSve
=
system
.
getObject
(
'service.licenses.fblicenseSve'
)
}
async
springBoard
(
pobj
,
qobj
,
req
)
{
var
result
=
await
this
.
opActionProcess
(
pobj
,
pobj
.
actionType
,
req
);
return
result
;
}
async
opActionProcess
(
pobj
,
action_type
,
req
)
{
var
opResult
=
null
;
switch
(
action_type
)
{
case
"test"
:
//测试
opResult
=
system
.
getResultSuccess
(
null
,
"测试成功"
);
break
;
case
"exactSearch"
:
// 精确检索
opResult
=
await
this
.
fbLSve
.
exactSearch
(
pobj
.
actionBody
.
id
);
break
;
case
'getDetail'
:
// 获取详情
opResult
=
await
this
.
fbLSve
.
getDetail
(
pobj
.
actionBody
.
id
);
break
;
case
'getList'
:
opResult
=
await
this
.
fbLSve
.
getList
(
pobj
.
actionBody
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"actionType参数错误"
);
break
;
}
return
opResult
;
}
}
module
.
exports
=
fbQuery
;
\ No newline at end of file
center-channel/app/base/service/impl/common/askForSve.js
View file @
d1b689a7
...
@@ -23,7 +23,6 @@ class AskForService extends AppServiceBase {
...
@@ -23,7 +23,6 @@ class AskForService extends AppServiceBase {
result
=
result
.
stdout
result
=
result
.
stdout
result
=
JSON
.
parse
(
result
)
result
=
JSON
.
parse
(
result
)
return
result
;
return
result
;
}
}
/**
/**
...
...
center-channel/app/base/service/impl/licenses/fblicenseSve.js
0 → 100644
View file @
d1b689a7
This diff is collapsed.
Click to expand it.
center-channel/app/front/entry/public/apidoc/README.md
View file @
d1b689a7
...
@@ -57,3 +57,6 @@
...
@@ -57,3 +57,6 @@
## 18. 资质诊断相关接口
## 18. 资质诊断相关接口
1
[
资质诊断相关接口
](
doc/api/platform/zzzd.md
)
1
[
资质诊断相关接口
](
doc/api/platform/zzzd.md
)
## 19. 食品经营许可证相关接口
1
[
食品经营许可证相关接口
](
doc/api/licensesDesc/fblicenseDesc.md
)
center-channel/app/front/entry/public/apidoc/appDesc/demoDesc.md
View file @
d1b689a7
...
@@ -75,6 +75,6 @@
...
@@ -75,6 +75,6 @@
status
返回状态,
0
为成功,否则为失败
status
返回状态,
0
为成功,否则为失败
msg
成功或失败信息描述
msg
成功或失败信息描述
data
接口返回的数据信息
data
接口返回的数据信息
requestId
请求头中的
request
-
id
,作为接口调用跟踪
requestId
请求头中的
request
-
id
,作为接口调用跟踪
```
```
center-channel/app/front/entry/public/apidoc/licensesDesc/fblicenseDesc.md
0 → 100644
View file @
d1b689a7
<a
name=
"menu"
href=
"/doc"
>
返回主目录
</a>
1.
[
精确检索(首页搜索)
](
#exactSearch
)
1.
[
条件搜索(获取 list)
](
#getList
)
1.
[
获取详情
](
#getDetail
)
## **<a name="exactSearch"> 精确检索(首页搜索)</a>**
[
返回到目录
](
#menu
)
<a
name=
"menu"
href=
"/doc"
>
返回主目录
</a>
##### URL
[
/web/action/fbQuery/springBoard
]
#### 参数格式 `JSON`
#### HTTP 请求方式 `POST`
#### actionType `exactSearch`
```
javascript
{
"id"
:
""
// 经营者名称 或 许可证编号
}
```
#### 返回结果
```
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"
}
```
## **<a name="getList"> 条件搜索(获取 list)</a>**
[
返回到目录
](
#menu
)
<a
name=
"menu"
href=
"/doc"
>
返回主目录
</a>
#### 经营者名称和许可证编号为模糊查询 且为必填项
##### URL
[
/web/action/fbQuery/springBoard
]
#### 参数格式 `JSON`
#### HTTP 请求方式 `POST`
#### actionType `getList`
```
javascript
{
"base"
:
[
""
],
// 所属地区
"pub_year"
:
[
2017
],
// 发证年份
"subject_format"
:[
""
],
// 主体业态
"status"
:
1
,
// 状态码 0: 失效, 1: 有效
"company_name"
:
""
,
// 经营者名称
"license_no"
:
""
// 许可证编号
"page"
:
1
,
// 页数
"pageSize"
:
20
,
// 每页条数
}
```
#### 返回结果
```
javascript
{
"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"
}
```
## **<a name="getDetail"> 获取详情</a>**
[
返回到目录
](
#menu
)
<a
name=
"menu"
href=
"/doc"
>
返回主目录
</a>
##### URL
[
/web/action/fbQuery/springBoard
]
#### 参数格式 `JSON`
#### HTTP 请求方式 `POST`
#### actionType `getDetail`
```
javascript
{
"id"
:
""
// 许可证编号
}
```
#### 返回结果
```
javascript
{
"msg"
:
"success"
,
"code"
:
0
,
"data"
:
{
"pub_year"
:
2017
,
// 发证年份
"id"
:
113138
,
"company_name"
:
"北京金金顺平商店"
,
// 经营者名称
"base"
:
"北京"
,
// 所属地区
"legal_person"
:
"徐卫国"
,
// 企业法人
"scc_icn"
:
"110222197401132917"
,
// 统一社会信用代码 || 身份证号
"license_no"
:
"JY11113081581363"
,
// 许可证编号
"status"
:
1
,
// 状态码 0: 失效, 1: 有效
"subject_format"
:
"食品销售经营者(食杂店)"
,
// 主体业态
"pub_date"
:
"2017-12-20"
,
// 发证时间
"end_date"
:
"2022-12-19"
,
// 有效期至
"business_items"
:
"预包装食品销售,含冷藏冷冻食品***"
,
// 经营项目
"business_place"
:
"北京市顺义区南法信镇北法信村信中路16号"
,
// 经营场所
"reg_address"
:
"北京市顺义区南法信镇北法信村信中路16号"
,
// 注册地址
"issuing_authority"
:
"北京市顺义区食品药品监督管理局"
,
// 发证机关
"signer"
:
"陈福刚"
,
// 签发人
"manage_agency"
:
"北京市顺义区食品药品监督管理局"
,
// 日常管理机构
"manage_person"
:
"张俐,方磊"
,
// 日常管理人员
"create_time"
:
"2020-04-02"
,
"update_time"
:
"2020-04-02"
},
"requestId"
:
"8442f71934294d69b5f04e75af5401f3"
}
```
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