This commit is contained in:
Àî×ÚÕñ 2022-09-02 10:37:35 +08:00
parent 383a2bd26b
commit e5888a5599

View File

@ -234,8 +234,6 @@ async def man_gander_form(
'': [],
'': []
}
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
@ -285,9 +283,6 @@ async def man_age_form(
'60-100': [],
}
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
if not table_id:
@ -342,9 +337,6 @@ async def man_education_form(
'硕士': []
}
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
if not table_id:
@ -398,8 +390,6 @@ async def man_work_exp_form(
'10-20': [],
'20-40': []
}
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
@ -449,8 +439,6 @@ async def man_account_form(
# 所在地
account = {
}
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
@ -495,8 +483,6 @@ async def man_school_form(
# 毕业院校
school = {
}
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
@ -541,8 +527,6 @@ async def man_work_for_form(
# 就职公司
work_for = {
}
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
@ -595,8 +579,6 @@ async def man_owner_name_form(
'Boss直聘': [],
'58同城': []
}
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
@ -647,8 +629,6 @@ async def man_job_name_form(
# 职位
job_name = {
}
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
@ -706,8 +686,6 @@ async def man_school_type_form(
'211': [],
'其他': [],
}
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
@ -752,8 +730,6 @@ async def man_info_form(
res = interview.get_man_info_form_sql()
sql = res['sql']
data = await ck_db.execute(sql)
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
@ -851,8 +827,6 @@ async def every_stage_form(
res = interview.get_every_stage_form_sql(job_ids)
sql = res['sql']
data = await ck_db.execute(sql)
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
@ -901,8 +875,6 @@ async def hr_works_form(
res = interview.get_hr_works_form_sql()
sql = res['sql']
data = await ck_db.execute(sql)
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
@ -1051,8 +1023,6 @@ async def stage_success_form(
res = interview.get_every_stage_form_sql(job_ids)
sql = res['sql']
data = await ck_db.execute(sql)
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
@ -1137,8 +1107,6 @@ async def interview_funnel_form(
res = interview.get_hr_works_form_sql()
sql = res['sql']
data = await ck_db.execute(sql)
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
@ -1193,8 +1161,6 @@ async def owner_form(
res = interview.get_owner_form_sql()
sql = res['sql']
data = await ck_db.execute(sql)
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
@ -1281,8 +1247,6 @@ async def owner_effect(
res = interview.get_owner_form_sql()
sql = res['sql']
data = await ck_db.execute(sql)
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
@ -1369,8 +1333,6 @@ async def interview_trend_form(
res = interview.get_trend_form_sql()
sql = res['sql']
data = await ck_db.execute(sql)
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
@ -1424,8 +1386,6 @@ async def year_trend_form(
res = interview.get_year_form_sql()
sql = res['sql']
data = await ck_db.execute(sql)
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
@ -1501,8 +1461,6 @@ async def year_job_form(
res = interview.year_job_form_sql()
sql = res['sql']
data = await ck_db.execute(sql)
if not data:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')
@ -1593,8 +1551,6 @@ async def year_in_out(
sql_out = res['sql_out']
data_in = await ck_db.execute(sql_in)
data_out = await ck_db.execute(sql_out)
if not data_in and data_out:
return schemas.Msg(code=200, msg='无数据', data={})
# 获取报表相关参数
table_id = interview.data_in.get('table_id', '')