|
@@ -35,7 +35,7 @@ class InformationTypeApi(Resource):
|
|
|
"""获取信息列表"""
|
|
|
information_type = config.common.INFORMATION_TYPE
|
|
|
|
|
|
- data = {}
|
|
|
+ data = {'楼层地图信息配置': [], '安保人员信息配置': []}
|
|
|
try:
|
|
|
with Session(current_app.engine) as session:
|
|
|
|
|
@@ -209,7 +209,7 @@ class GetSecurityPersonApi(Resource):
|
|
|
"""获取人员名单"""
|
|
|
try:
|
|
|
with Session(current_app.engine) as session:
|
|
|
- stmt = select(SecurityPerson)
|
|
|
+ stmt = select(SecurityPerson.id, SecurityPerson.name)
|
|
|
results = information_list(session.execute(stmt))
|
|
|
|
|
|
save_log(request, Module.INFORMATION, OperationType.INQUIRE, StatesCode.SUCCESS)
|