优化2
This commit is contained in:
parent
8c62594617
commit
f82adb6ade
@ -22,6 +22,25 @@ from utils import get_time, qujian_time, Download_xlsx, send_str_mail
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
# 修改报表参数
|
||||
@router.post("/set_form_setting")
|
||||
async def man_mass_form(
|
||||
request: Request,
|
||||
interview: InterviewDo = Depends(InterviewDo),
|
||||
db: AsyncIOMotorDatabase = Depends(get_database),
|
||||
current_user: schemas.UserDB = Depends(deps.get_current_user)
|
||||
) -> schemas.Msg:
|
||||
"""修改报表参数"""
|
||||
await interview.init()
|
||||
table_id = interview.where.get('table_id', '')
|
||||
update_data = interview.data_in
|
||||
# 更新报表参数
|
||||
if not table_id or not update_data:
|
||||
return schemas.Msg(code=-9, msg='参数有误', data='')
|
||||
await crud.api_interview_tables.update_tables(db, {'table_id': table_id, 'update_data': update_data})
|
||||
return schemas.Msg(code=200, msg='ok', data='')
|
||||
|
||||
|
||||
# 候选人质量报表
|
||||
@router.post("/man_mass_form")
|
||||
async def man_mass_form(
|
||||
|
Loading…
Reference in New Issue
Block a user