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
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
739 additions
and
2 deletions
+739
-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
+530
-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 {
result
=
result
.
stdout
result
=
JSON
.
parse
(
result
)
return
result
;
}
/**
...
...
center-channel/app/base/service/impl/licenses/fblicenseSve.js
0 → 100644
View file @
d1b689a7
const
System
=
require
(
"../../../system"
);
var
settings
=
require
(
"../../../../config/settings"
);
const
querystring
=
require
(
'querystring'
);
const
AppServiceBase
=
require
(
"../../app.base"
);
class
FblicenseService
extends
AppServiceBase
{
constructor
()
{
super
();
this
.
testlist
=
[
{
"pub_year"
:
2017
,
"id"
:
113138
,
"company_name"
:
"北京金金顺平商店"
,
"base"
:
"北京"
,
"legal_person"
:
"徐卫国"
,
"scc_icn"
:
"110222197401132917"
,
"license_no"
:
"JY11113081581363"
,
"status"
:
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"
},
{
"pub_year"
:
2019
,
"id"
:
272137
,
"company_name"
:
"上海市嘉定区嘉定工业区金金杂货店"
,
"base"
:
"上海"
,
"legal_person"
:
"樊金兴"
,
"scc_icn"
:
"92310114MA1L49XE93"
,
"license_no"
:
"JY13101140068536"
,
"status"
:
1
,
"subject_format"
:
"食品销售经营者"
,
"pub_date"
:
"2019-07-03"
,
"end_date"
:
"2022-11-06"
,
"business_items"
:
"预包装食品销售(含冷藏冷冻食品)、特殊食品销售(保健食品)"
,
"business_place"
:
"上海市嘉定区嘉定工业区福海路1028弄1030号10-1室"
,
"reg_address"
:
"上海市嘉定区嘉定工业区福海路1028弄1030号10-1室"
,
"issuing_authority"
:
"上海市嘉定区市场监督管理局"
,
"signer"
:
"陶伟"
,
"manage_agency"
:
"叶城市场监督管理所"
,
"manage_person"
:
"甘春生 徐玉明"
,
"create_time"
:
"2020-04-02"
,
"update_time"
:
"2020-04-02"
},
{
"pub_year"
:
2018
,
"id"
:
72840
,
"company_name"
:
"北京东金金良商贸有限公司"
,
"base"
:
"北京"
,
"legal_person"
:
"于洋"
,
"scc_icn"
:
"91110112355288242x"
,
"license_no"
:
"JY11112152041718"
,
"status"
:
1
,
"subject_format"
:
"食品销售经营者(网络销售含网络经营)"
,
"pub_date"
:
"2018-08-24"
,
"end_date"
:
"2023-08-23"
,
"business_items"
:
"预包装食品销售,含冷藏冷冻食品***"
,
"business_place"
:
"北京市通州区经济开发区聚富苑产业园区聚和六街1号-612"
,
"reg_address"
:
"北京市通州区经济开发区聚富苑产业园区聚和六街1号-612"
,
"issuing_authority"
:
"北京市通州区食品药品监督管理局"
,
"signer"
:
"冯源"
,
"manage_agency"
:
"北京市通州区食品药品监督管理局"
,
"manage_person"
:
"祁宇光,乔明新"
,
"create_time"
:
"2020-04-02"
,
"update_time"
:
"2020-04-02"
},
{
"pub_year"
:
2016
,
"id"
:
194544
,
"company_name"
:
"北京市金金金鑫商店"
,
"base"
:
"北京"
,
"legal_person"
:
"宏健"
,
"scc_icn"
:
"11010119620728259x"
,
"license_no"
:
"JY11114010394147"
,
"status"
:
1
,
"subject_format"
:
"食品销售经营者"
,
"pub_date"
:
"2016-05-23"
,
"end_date"
:
"2021-05-22"
,
"business_items"
:
"预包装食品销售(含冷藏冷冻食品)***"
,
"business_place"
:
"北京市昌平区城北街道六街帅府墙胡同11号"
,
"reg_address"
:
"北京市昌平区城北街道六街帅府墙胡同11号"
,
"issuing_authority"
:
"北京市昌平区食品药品监督管理局"
,
"signer"
:
"张爱华"
,
"manage_agency"
:
"北京市昌平区食品药品监督管理局"
,
"manage_person"
:
"付连顺,王旭"
,
"create_time"
:
"2020-04-02"
,
"update_time"
:
"2020-04-02"
},
{
"pub_year"
:
2018
,
"id"
:
354581
,
"company_name"
:
"上海市青浦区金金杂货店"
,
"base"
:
"上海"
,
"legal_person"
:
"庄建忠"
,
"scc_icn"
:
"3102291972****1617"
,
"license_no"
:
"JY13101180087415"
,
"status"
:
1
,
"subject_format"
:
"食品销售经营者"
,
"pub_date"
:
"2018-07-27"
,
"end_date"
:
"2023-07-26"
,
"business_items"
:
"预包装食品销售(含冷藏冷冻食品)、特殊食品销售(保健食品)"
,
"business_place"
:
"上海市青浦区白鹤镇外青松公路2980弄40号"
,
"reg_address"
:
"上海市青浦区白鹤镇外青松公路2980弄40号"
,
"issuing_authority"
:
"上海市青浦区市场监督管理局"
,
"signer"
:
"王毅荣"
,
"manage_agency"
:
"白鹤市场监督管理所"
,
"manage_person"
:
"邹玮珉、李燕"
,
"create_time"
:
"2020-04-02"
,
"update_time"
:
"2020-04-02"
},
{
"pub_year"
:
2015
,
"id"
:
539141
,
"company_name"
:
"上海市宝山区金金肉类经营部"
,
"base"
:
"上海"
,
"legal_person"
:
null
,
"scc_icn"
:
"320882198509193810"
,
"license_no"
:
"SP3101131550005935"
,
"status"
:
1
,
"subject_format"
:
"食品销售经营者"
,
"pub_date"
:
"2015-05-04"
,
"end_date"
:
"2018-05-03"
,
"business_items"
:
null
,
"business_place"
:
"上海市宝山区淞南镇淞发路61号市场内A—37号"
,
"reg_address"
:
null
,
"issuing_authority"
:
"宝山区市场监督管理局"
,
"signer"
:
null
,
"manage_agency"
:
null
,
"manage_person"
:
null
,
"create_time"
:
"2020-08-07"
,
"update_time"
:
"2020-08-07"
},
{
"pub_year"
:
2019
,
"id"
:
31115
,
"company_name"
:
"山金金王国际贸易(北京)有限公司"
,
"base"
:
"北京"
,
"legal_person"
:
"郑伟"
,
"scc_icn"
:
null
,
"license_no"
:
"JY11105222454885"
,
"status"
:
1
,
"subject_format"
:
"食品销售经营者(食杂店)"
,
"pub_date"
:
"2019-06-21"
,
"end_date"
:
"2024-06-20"
,
"business_items"
:
"预包装食品销售,含冷藏冷冻食品***"
,
"business_place"
:
"北京市朝阳区高碑店乡高碑店村三区65号楼1号一层101室"
,
"reg_address"
:
"北京市朝阳区高碑店乡高碑店村三区65号楼1号一层101室"
,
"issuing_authority"
:
"北京市朝阳区市场监督管理局"
,
"signer"
:
"刘立新"
,
"manage_agency"
:
"北京市朝阳区市场监督管理局"
,
"manage_person"
:
"孙波,刘立军"
,
"create_time"
:
"2020-03-18"
,
"update_time"
:
"2020-03-18"
},
{
"pub_year"
:
2018
,
"id"
:
66195
,
"company_name"
:
"北京金金鑫商贸店"
,
"base"
:
"北京"
,
"legal_person"
:
"王月新"
,
"scc_icn"
:
"92110105MA01EEEE6G"
,
"license_no"
:
"JY11105072127403"
,
"status"
:
1
,
"subject_format"
:
"食品销售经营者(食杂店)"
,
"pub_date"
:
"2018-10-23"
,
"end_date"
:
"2023-10-22"
,
"business_items"
:
"预包装食品销售,不含冷藏冷冻食品;散装食品销售,不含冷藏冷冻食品、不含熟食***"
,
"business_place"
:
"北京市朝阳区和平里西街21号天丰利生活用品市场东8号摊位"
,
"reg_address"
:
"北京市朝阳区和平里西街21号天丰利生活用品市场东8号摊位"
,
"issuing_authority"
:
"北京市朝阳区食品药品监督管理局"
,
"signer"
:
"刘立新"
,
"manage_agency"
:
"北京市朝阳区食品药品监督管理局"
,
"manage_person"
:
"孙波,张海光"
,
"create_time"
:
"2020-04-02"
,
"update_time"
:
"2020-04-02"
},
{
"pub_year"
:
2016
,
"id"
:
174485
,
"company_name"
:
"北京金金宝经贸有限公司"
,
"base"
:
"北京"
,
"legal_person"
:
"胡海波"
,
"scc_icn"
:
"911101086330829747"
,
"license_no"
:
"JY11108010732650"
,
"status"
:
1
,
"subject_format"
:
"食品销售经营者"
,
"pub_date"
:
"2016-10-21"
,
"end_date"
:
"2021-10-20"
,
"business_items"
:
"预包装食品销售(不含冷藏冷冻食品)***"
,
"business_place"
:
"北京市海淀区复兴路47号天行建商务大厦16层1806室"
,
"reg_address"
:
"北京市海淀区复兴路47号天行建商务大厦16层1806室"
,
"issuing_authority"
:
"北京市海淀区食品药品监督管理局"
,
"signer"
:
"李红杰"
,
"manage_agency"
:
"北京市海淀区食品药品监督管理局"
,
"manage_person"
:
"张丹,翟洪杰"
,
"create_time"
:
"2020-04-02"
,
"update_time"
:
"2020-04-02"
},
{
"pub_year"
:
2016
,
"id"
:
186654
,
"company_name"
:
"北京市金金宝餐厅"
,
"base"
:
"北京"
,
"legal_person"
:
"岳红"
,
"scc_icn"
:
"110105601152298"
,
"license_no"
:
"JY21105050529523"
,
"status"
:
1
,
"subject_format"
:
"餐饮服务经营者"
,
"pub_date"
:
"2016-07-15"
,
"end_date"
:
"2021-07-14"
,
"business_items"
:
"热食类食品制售;冷食类食品制售;预包装食品销售(不含冷藏冷冻食品)***"
,
"business_place"
:
"北京市朝阳区新源西里小学东侧平房"
,
"reg_address"
:
"北京市朝阳区新源西里小学平房"
,
"issuing_authority"
:
"北京市朝阳区食品药品监督管理局"
,
"signer"
:
"刘立新"
,
"manage_agency"
:
"北京市朝阳区食品药品监督管理局"
,
"manage_person"
:
"代敏芝,袁红"
,
"create_time"
:
"2020-04-02"
,
"update_time"
:
"2020-04-02"
},
{
"pub_year"
:
2017
,
"id"
:
420360
,
"company_name"
:
"上海市宝山区高金金食品店"
,
"base"
:
"上海"
,
"legal_person"
:
"高金"
,
"scc_icn"
:
"92310113MA1L164N3F"
,
"license_no"
:
"JY13101130104126"
,
"status"
:
1
,
"subject_format"
:
"食品销售经营者"
,
"pub_date"
:
"2017-10-26"
,
"end_date"
:
"2022-10-25"
,
"business_items"
:
"预包装食品销售(含冷藏冷冻食品)"
,
"business_place"
:
"上海市宝山区友谊路街道密山路101号市场内E56"
,
"reg_address"
:
"上海市宝山区友谊路街道密山路101号市场内E56"
,
"issuing_authority"
:
"上海市宝山区市场监督管理局"
,
"signer"
:
"陈林勇"
,
"manage_agency"
:
"友谊路市场监管所"
,
"manage_person"
:
"薛峰 倪晨晨"
,
"create_time"
:
"2020-04-02"
,
"update_time"
:
"2020-04-02"
},
{
"pub_year"
:
2016
,
"id"
:
482508
,
"company_name"
:
"上海金金酒吧"
,
"base"
:
"上海"
,
"legal_person"
:
"应群"
,
"scc_icn"
:
"310105000429832"
,
"license_no"
:
"JY23101050011115"
,
"status"
:
1
,
"subject_format"
:
"餐饮服务经营者"
,
"pub_date"
:
"2016-11-14"
,
"end_date"
:
"2021-05-23"
,
"business_items"
:
"自制饮品制售"
,
"business_place"
:
"上海市长宁区仙霞路683号"
,
"reg_address"
:
"上海市长宁区仙霞路683号"
,
"issuing_authority"
:
"上海市长宁区市场监督管理局"
,
"signer"
:
"竺敏捷"
,
"manage_agency"
:
"仙霞新村市场监督管理所"
,
"manage_person"
:
"高胜华、吴 刚"
,
"create_time"
:
"2020-04-02"
,
"update_time"
:
"2020-04-02"
},
{
"pub_year"
:
2018
,
"id"
:
325568
,
"company_name"
:
"黄金金"
,
"base"
:
"上海"
,
"legal_person"
:
"黄金金"
,
"scc_icn"
:
"342423199803058669"
,
"license_no"
:
"JY13101155066383"
,
"status"
:
1
,
"subject_format"
:
"食品销售经营者(场内经营者,零售)"
,
"pub_date"
:
"2018-11-21"
,
"end_date"
:
"2023-11-20"
,
"business_items"
:
"预包装食品销售(不含冷藏冷冻食品)、散装食品销售(不含冷藏冷冻食品,不含熟食)"
,
"business_place"
:
"上海市浦东新区曹路镇金晓路73-95号(单)内54号房;"
,
"reg_address"
:
"上海市浦东新区曹路镇金晓路73-95号(单)内54号房"
,
"issuing_authority"
:
"上海市浦东区市场监督管理局"
,
"signer"
:
"陈燕敏"
,
"manage_agency"
:
"曹路市场监管所"
,
"manage_person"
:
"陈燕敏、周莉清"
,
"create_time"
:
"2020-04-02"
,
"update_time"
:
"2020-04-02"
},
{
"pub_year"
:
2016
,
"id"
:
509101
,
"company_name"
:
"上海市浦东新区高桥镇金金杂货店"
,
"base"
:
"上海"
,
"legal_person"
:
"金七妹"
,
"scc_icn"
:
"310224195902144423"
,
"license_no"
:
"JY13101150054739"
,
"status"
:
1
,
"subject_format"
:
"食品销售经营者"
,
"pub_date"
:
"2016-04-26"
,
"end_date"
:
"2019-04-25"
,
"business_items"
:
null
,
"business_place"
:
"浦东新区高桥镇凌桥村毛家浜东52号102室"
,
"reg_address"
:
"浦东新区高桥镇凌桥村毛家浜东52号102室"
,
"issuing_authority"
:
"上海市浦东新区市场监督管理局"
,
"signer"
:
"王耀彦"
,
"manage_agency"
:
"高桥市场监管所"
,
"manage_person"
:
"王耀彦、樊国华"
,
"create_time"
:
"2020-08-07"
,
"update_time"
:
"2020-08-07"
},
{
"pub_year"
:
2016
,
"id"
:
513242
,
"company_name"
:
"上海金金科技信息有限公司"
,
"base"
:
"上海"
,
"legal_person"
:
"郑煌"
,
"scc_icn"
:
"91310115133810437Q"
,
"license_no"
:
"JY13101150035373"
,
"status"
:
1
,
"subject_format"
:
"食品销售经营者"
,
"pub_date"
:
"2016-04-01"
,
"end_date"
:
"2018-04-08"
,
"business_items"
:
null
,
"business_place"
:
"上海市浦东新区枣庄路991号"
,
"reg_address"
:
"上海市浦东新区枣庄路991号"
,
"issuing_authority"
:
"上海市浦东新区市场监督管理局"
,
"signer"
:
"顾瑾"
,
"manage_agency"
:
"金杨市场监管所"
,
"manage_person"
:
"朱荣、谢锦文"
,
"create_time"
:
"2020-08-07"
,
"update_time"
:
"2020-08-07"
},
{
"pub_year"
:
2016
,
"id"
:
517395
,
"company_name"
:
"上海市崇明县草棚镇金金百货店"
,
"base"
:
"上海"
,
"legal_person"
:
"黄康"
,
"scc_icn"
:
"310230195712070491"
,
"license_no"
:
"JY13102300015157"
,
"status"
:
1
,
"subject_format"
:
"食品销售经营者"
,
"pub_date"
:
"2016-03-03"
,
"end_date"
:
"2021-01-28"
,
"business_items"
:
"预包装食品销售(不含冷藏冷冻食品)"
,
"business_place"
:
"上海市崇明县三星镇星月路150号"
,
"reg_address"
:
"上海市崇明县三星镇星月路150号"
,
"issuing_authority"
:
"崇明县市场监督管理局"
,
"signer"
:
"宋仲雄"
,
"manage_agency"
:
"崇明县市场监督管理局"
,
"manage_person"
:
"朱建昌 黄灏"
,
"create_time"
:
"2020-04-02"
,
"update_time"
:
"2020-04-02"
},
{
"pub_year"
:
2014
,
"id"
:
549859
,
"company_name"
:
"王金金"
,
"base"
:
"上海"
,
"legal_person"
:
"王金金"
,
"scc_icn"
:
"PDSP1006594"
,
"license_no"
:
"SP3101151250030260"
,
"status"
:
1
,
"subject_format"
:
"食品销售经营者"
,
"pub_date"
:
"2014-11-05"
,
"end_date"
:
"2017-11-04"
,
"business_items"
:
null
,
"business_place"
:
"浦东新区秋岚路271号A2-15号营业房"
,
"reg_address"
:
"浦东新区秋岚路271号A2-15号营业房"
,
"issuing_authority"
:
"上海市浦东新区市场监督管理局"
,
"signer"
:
null
,
"manage_agency"
:
null
,
"manage_person"
:
null
,
"create_time"
:
"2020-08-07"
,
"update_time"
:
"2020-08-07"
},
{
"pub_year"
:
2014
,
"id"
:
564758
,
"company_name"
:
"上海市宝山区金金杂货店"
,
"base"
:
"上海"
,
"legal_person"
:
null
,
"scc_icn"
:
"310223195909131645"
,
"license_no"
:
"SP3101131150004743"
,
"status"
:
1
,
"subject_format"
:
"食品销售经营者"
,
"pub_date"
:
"2014-03-13"
,
"end_date"
:
"2016-12-31"
,
"business_items"
:
null
,
"business_place"
:
"上海市宝山区罗店镇集贤路506号"
,
"reg_address"
:
null
,
"issuing_authority"
:
"宝山区市场监督管理局"
,
"signer"
:
null
,
"manage_agency"
:
null
,
"manage_person"
:
null
,
"create_time"
:
"2020-08-07"
,
"update_time"
:
"2020-08-07"
},
{
"pub_year"
:
2012
,
"id"
:
588630
,
"company_name"
:
"上海市宝山区金金逸香副食品经营部"
,
"base"
:
"上海"
,
"legal_person"
:
null
,
"scc_icn"
:
"320681199109115415"
,
"license_no"
:
"SP3101131250021916"
,
"status"
:
1
,
"subject_format"
:
"食品销售经营者"
,
"pub_date"
:
"2012-09-27"
,
"end_date"
:
"2015-05-25"
,
"business_items"
:
null
,
"business_place"
:
"宝山区莲花山路517弄128号市场内A23"
,
"reg_address"
:
null
,
"issuing_authority"
:
"宝山区市场监督管理局"
,
"signer"
:
null
,
"manage_agency"
:
null
,
"manage_person"
:
null
,
"create_time"
:
"2020-08-07"
,
"update_time"
:
"2020-08-07"
},
{
"pub_year"
:
2010
,
"id"
:
616684
,
"company_name"
:
"上海市闵行区金金饮水站"
,
"base"
:
"上海"
,
"legal_person"
:
null
,
"scc_icn"
:
"370481197712082629"
,
"license_no"
:
"SP3101121050011372"
,
"status"
:
1
,
"subject_format"
:
"食品销售经营者"
,
"pub_date"
:
"2010-04-07"
,
"end_date"
:
"2013-04-06"
,
"business_items"
:
null
,
"business_place"
:
"上海市闵行区虹桥镇紫藤市场3-7号"
,
"reg_address"
:
null
,
"issuing_authority"
:
"闵行分局"
,
"signer"
:
null
,
"manage_agency"
:
null
,
"manage_person"
:
null
,
"create_time"
:
"2020-08-07"
,
"update_time"
:
"2020-08-07"
}
]
};
// 精确查找 (首页)
async
exactSearch
(
id
)
{
let
reslist
=
this
.
testlist
.
filter
(
val
=>
{
return
val
.
license_no
==
id
||
val
.
company_name
==
id
})
let
res
=
this
.
dealForList
(
reslist
)
return
{
code
:
0
,
msg
:
'success'
,
count
:
res
.
length
,
data
:
res
}
}
// 获取详情
async
getDetail
(
id
)
{
let
reslist
=
this
.
testlist
.
filter
(
val
=>
{
return
val
.
license_no
==
id
})
return
{
msg
:
'success'
,
code
:
0
,
data
:
reslist
[
0
]
}
}
// 获取列表
async
getList
(
data
)
{
let
reslist
=
this
.
checklist
(
data
)
let
res
=
this
.
dealForList
(
reslist
)
return
{
msg
:
'success'
,
code
:
0
,
count
:
res
.
length
,
data
:
res
}
}
// 组织列表数据
dealForList
(
data
)
{
return
data
.
map
(
val
=>
{
return
{
license_no
:
val
.
license_no
,
company_name
:
val
.
company_name
,
pub_date
:
val
.
pub_date
,
end_date
:
val
.
end_date
}
})
}
checklist
(
data
)
{
let
res
=
this
.
testlist
.
filter
(
val
=>
{
let
flag
=
true
if
(
data
.
company_name
&&
data
.
company_name
!=
''
)
{
flag
=
flag
&&
val
.
company_name
.
indexOf
(
data
.
company_name
)
!=
-
1
}
if
(
data
.
license_no
&&
data
.
license_no
!=
''
)
{
flag
=
flag
&&
val
.
license_no
==
data
.
license_no
}
if
(
data
.
base
&&
data
.
base
.
length
>
0
)
{
flag
=
flag
&&
data
.
base
.
indexOf
(
val
.
base
)
!=
-
1
}
if
(
data
.
pub_year
&&
data
.
pub_year
.
length
>
0
)
{
flag
=
flag
&&
data
.
pub_year
.
indexOf
(
val
.
pub_year
)
!=
-
1
}
if
(
data
.
subject_format
&&
data
.
subject_format
.
length
>
0
)
{
flag
=
flag
&&
data
.
subject_format
.
indexOf
(
val
.
subject_format
)
!=
-
1
}
if
(
data
.
status
==
0
||
data
.
status
==
1
)
{
flag
=
flag
&&
val
.
status
==
data
.
status
}
return
flag
})
return
res
}
}
module
.
exports
=
FblicenseService
;
\ No newline at end of file
center-channel/app/front/entry/public/apidoc/README.md
View file @
d1b689a7
...
...
@@ -57,3 +57,6 @@
## 18. 资质诊断相关接口
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 @@
status
返回状态,
0
为成功,否则为失败
msg
成功或失败信息描述
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