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
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
152 additions
and
552 deletions
+152
-552
center-channel/app/base/api/impl/action/fbQuery.js
+1
-1
center-channel/app/base/service/impl/licenses/fblicenseSve.js
+70
-494
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 {
...
@@ -24,7 +24,7 @@ class fbQuery extends WEBBase {
case
'getDetail'
:
// 获取详情
case
'getDetail'
:
// 获取详情
opResult
=
await
this
.
fbLSve
.
getDetail
(
pobj
.
actionBody
.
id
);
opResult
=
await
this
.
fbLSve
.
getDetail
(
pobj
.
actionBody
.
id
);
break
;
break
;
case
'getList'
:
case
'getList'
:
// 获取列表
opResult
=
await
this
.
fbLSve
.
getList
(
pobj
.
actionBody
);
opResult
=
await
this
.
fbLSve
.
getList
(
pobj
.
actionBody
);
break
;
break
;
default
:
default
:
...
...
center-channel/app/base/service/impl/licenses/fblicenseSve.js
View file @
cdafd4ae
const
System
=
require
(
"../../../system"
);
const
System
=
require
(
"../../../system"
);
var
settings
=
require
(
"../../../../config/settings"
);
var
settings
=
require
(
"../../../../config/settings"
);
const
querystring
=
require
(
'querystring'
);
const
AppServiceBase
=
require
(
"../../app.base"
);
const
AppServiceBase
=
require
(
"../../app.base"
);
class
FblicenseService
extends
AppServiceBase
{
class
FblicenseService
extends
AppServiceBase
{
constructor
()
{
constructor
()
{
super
();
super
();
this
.
testlist
=
[
this
.
fbqurl
=
settings
.
fbQueryUrl
()
{
this
.
restClient
=
System
.
getObject
(
"util.restClient"
)
"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
)
{
async
exactSearch
(
id
)
{
let
reslist
=
this
.
testlist
.
filter
(
val
=>
{
try
{
return
val
.
license_no
==
id
||
val
.
company_name
==
id
let
param
=
{
name
:
id
}
})
let
url
=
`
${
this
.
fbqurl
}
/gsb/licence_search_index`
let
res
=
this
.
dealForList
(
reslist
)
let
result
=
await
this
.
restClient
.
execPost
(
param
,
url
)
return
{
result
=
JSON
.
parse
(
result
.
stdout
)
code
:
0
,
result
.
count
=
result
.
total
msg
:
'success'
,
delete
result
.
total
count
:
res
.
length
,
result
.
code
=
result
.
status
==
-
1
?
-
1
:
0
data
:
res
delete
result
.
status
if
(
result
.
data
)
{
result
.
data
=
this
.
dealForList
(
result
.
data
)
}
return
result
}
catch
(
error
)
{
return
{
code
:
-
1
,
msg
:
error
.
message
||
'failed'
,
}
}
}
}
}
// 获取详情
// 获取详情
async
getDetail
(
id
)
{
async
getDetail
(
id
)
{
let
reslist
=
this
.
testlist
.
filter
(
val
=>
{
try
{
return
val
.
license_no
==
id
let
param
=
{
name
:
id
}
})
let
url
=
`
${
this
.
fbqurl
}
/gsb/licence_search_index`
return
{
let
result
=
await
this
.
restClient
.
execPost
(
param
,
url
)
msg
:
'success'
,
result
=
JSON
.
parse
(
result
.
stdout
)
code
:
0
,
return
{
data
:
reslist
[
0
]
code
:
result
.
status
==
-
1
?
-
1
:
0
,
msg
:
result
.
msg
,
data
:
result
.
data
[
0
]
}
}
catch
(
error
)
{
return
{
code
:
-
1
,
msg
:
error
.
message
||
'failed'
,
}
}
}
}
}
// 获取列表
// 获取列表
async
getList
(
data
)
{
async
getList
(
data
)
{
let
reslist
=
this
.
checklist
(
data
)
if
(
!
(
data
.
company_name
||
data
.
license_no
))
{
let
res
=
this
.
dealForList
(
reslist
)
return
{
return
{
code
:
-
1
,
msg
:
'success'
,
msg
:
"必须含有经营者名称 或者 许可证编号 的其中之一"
code
:
0
,
}
count
:
res
.
length
,
}
data
:
res
try
{
let
param
=
{
operator_name
:
data
.
company_name
||
""
,
license_number
:
data
.
license_no
||
""
,
region
:
data
.
base
||
""
,
pub_year
:
data
.
pub_year
||
""
,
subject_format
:
data
.
subject_format
||
""
,
status
:
data
.
status
||
""
,
page
:
data
.
page
||
1
,
pagesize
:
data
.
apgeSize
||
10
,
sort
:
data
.
sort
?
{
[
`
${
data
.
sort
.
split
(
" "
)[
0
]}
`
]:
{
order
:
data
.
sort
.
split
(
' '
)[
1
]
}
}
:
""
}
let
url
=
`
${
this
.
fbqurl
}
/gsb/licence_search_condition`
let
result
=
await
this
.
restClient
.
execPost
(
param
,
url
)
result
=
JSON
.
parse
(
result
.
stdout
)
result
.
count
=
result
.
total
delete
result
.
total
result
.
code
=
result
.
status
==
-
1
?
-
1
:
0
delete
result
.
status
if
(
result
.
data
)
{
result
.
data
=
this
.
dealForList
(
result
.
data
)
}
return
result
}
catch
(
error
)
{
return
{
code
:
-
1
,
msg
:
error
.
message
||
'failed'
,
}
}
}
}
}
...
@@ -499,31 +102,5 @@ class FblicenseService extends AppServiceBase {
...
@@ -499,31 +102,5 @@ class FblicenseService extends AppServiceBase {
}
}
})
})
}
}
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
;
module
.
exports
=
FblicenseService
;
\ No newline at end of file
center-channel/app/config/settings.js
View file @
cdafd4ae
...
@@ -23,6 +23,13 @@ var settings = {
...
@@ -23,6 +23,13 @@ var settings = {
usertimeout
:
3600
,
//单位秒
usertimeout
:
3600
,
//单位秒
basepath
:
path
.
normalize
(
path
.
join
(
__dirname
,
'../..'
)),
basepath
:
path
.
normalize
(
path
.
join
(
__dirname
,
'../..'
)),
port
:
process
.
env
.
NODE_PORT
||
4012
,
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
()
{
opPushQueueUrl
:
function
()
{
if
(
this
.
env
==
"dev"
||
this
.
env
==
"test"
)
{
if
(
this
.
env
==
"dev"
||
this
.
env
==
"test"
)
{
return
"http://192.168.18.101:4018/api/queueAction/producer/springBoard"
;
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 @@
...
@@ -25,26 +25,50 @@
```
```
#### 返回结果
#### 返回结果
```
javascript
```
javascript
{
{
"code"
:
0
,
"data"
:
[
// 结果列表
"msg"
:
"success"
,
{
"count"
:
1
,
"license_no"
:
"JY11113081581363"
,
// 许可证编号
"data"
:
[{
"company_name"
:
"北京金金顺平商店"
,
// 经营者名称
"license_no"
:
"JY11113081581363"
,
// 许可证编号
"pub_date"
:
"2017-12-20"
,
// 发证时间
"company_name"
:
"北京金金顺平商店"
,
// 经营者名称
"end_date"
:
"2022-12-19"
// 有效期至
"pub_date"
:
"2017-12-20"
,
// 发证时间
}
"end_date"
:
"2022-12-19"
// 有效期至
],
}],
"msg"
:
"查询成功"
,
"requestId"
:
"62edd9eb80b04ec9b407eebf06dd1011"
"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>**
## **<a name="getList"> 条件搜索(获取 list)</a>**
[
返回到目录
](
#menu
)
<a
name=
"menu"
href=
"/doc"
>
返回主目录
</a>
[
返回到目录
](
#menu
)
<a
name=
"menu"
href=
"/doc"
>
返回主目录
</a>
#### 经营者名称和许可证编号为模糊查询 且为必填项
#### 经营者名称和许可证编号为模糊查询 有且只有其一
##### URL
##### URL
[
/web/action/fbQuery/springBoard
]
[
/web/action/fbQuery/springBoard
]
...
@@ -57,9 +81,9 @@
...
@@ -57,9 +81,9 @@
```
javascript
```
javascript
{
{
"base"
:
[
""
]
,
// 所属地区
"base"
:
""
,
// 所属地区
"pub_year"
:
[
2017
]
,
// 发证年份
"pub_year"
:
2017
,
// 发证年份
"subject_format"
:
[
""
]
,
// 主体业态
"subject_format"
:
""
,
// 主体业态
"status"
:
1
,
// 状态码 0: 失效, 1: 有效
"status"
:
1
,
// 状态码 0: 失效, 1: 有效
"company_name"
:
""
,
// 经营者名称
"company_name"
:
""
,
// 经营者名称
"license_no"
:
""
// 许可证编号
"license_no"
:
""
// 许可证编号
...
@@ -72,48 +96,40 @@
...
@@ -72,48 +96,40 @@
#### 返回结果
#### 返回结果
```
javascript
```
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"
,
"doc_count"
:
19
,
"code"
:
0
,
"key"
:
"食品销售经营者"
"count"
:
7
,
}
"data"
:
[{
],
"license_no"
:
"JY11113081581363"
,
// 许可证编号
"year_count"
:
[
// 发证年份统计
"company_name"
:
"北京金金顺平商店"
,
// 经营者名称
{
"pub_date"
:
"2017-12-20"
,
// 发证时间
"doc_count"
:
2
,
"end_date"
:
"2022-12-19"
// 有效期至
"key"
:
2019
},
{
}
"license_no"
:
"JY11112152041718"
,
],
"company_name"
:
"北京东金金良商贸有限公司"
,
"count"
:
32
,
"pub_date"
:
"2018-08-24"
,
"code"
:
0
,
"end_date"
:
"2023-08-23"
"requestId"
:
"9e6b08a448644197a87bd91577695dcb"
},
{
}
"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>**
## **<a name="getDetail"> 获取详情</a>**
...
@@ -137,6 +153,7 @@
...
@@ -137,6 +153,7 @@
```
```
#### 返回结果
#### 返回结果
```
javascript
```
javascript
{
{
"msg"
:
"success"
,
"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