Exemplo n.º 1
0
def get_job_experience_info(user_id):
    """获取该用户想展示的所有工作经验"""
    job_experience_infos = search_state1_allinfo(table="job_experience", user_id=user_id)
    job_experience_infos = base.delete_userid_statement(job_experience_infos)
    job_experience_infos = base.delete_createtime_statement(job_experience_infos)
    for x in job_experience_infos:
        x["coperation_starttime"] = base.delete_time(str(x["coperation_starttime"]))
        x["coperation_endtime"] = base.delete_time(str(x["coperation_endtime"]))
    return job_experience_infos
Exemplo n.º 2
0
def get_project_experience_info(user_id):
    """获取该用户想展示的所有项目经验"""
    project_experience_infos = search_state1_allinfo(table="project_experience", user_id=user_id)
    project_experience_infos = base.delete_userid_statement(project_experience_infos)
    project_experience_infos = base.delete_createtime_statement(project_experience_infos)
    for x in project_experience_infos:
        x["project_starttime"] = base.delete_time(str(x["project_starttime"]))
        x["project_endtime"] = base.delete_time(str(x["project_endtime"]))
    print project_experience_infos
    return project_experience_infos
Exemplo n.º 3
0
def get_state1_baseinfo(user_id=""):
    """根据用户id获取用户想展示的基本信息"""
    result = search_state1_allinfo(table="user_baseinfo", user_id=user_id)
    if result:
        base_info = result[0]
        base_info = base.delete_userid_statement(base_info)
        base_info = base.delete_createtime_statement(base_info)
    else:
        base_info = 0
    return base_info
Exemplo n.º 4
0
def get_state1_headimg(user_id=""):
    """根据用户id获取用户想展示的头像的url"""
    result = search_state1_allinfo(table="images", user_id=user_id)
    if result:
        headimg_info = result[0]
        headimg_info = base.delete_userid_statement(headimg_info)
        headimg_info = base.delete_createtime_statement(headimg_info)
    else:
        headimg_info = 0
    return headimg_info
Exemplo n.º 5
0
def get_all_skillinfo(user_id=""):
    """获取该用户的所有专业技能信息"""
    skill_infos = search_state1_allinfo(table="skill", user_id=user_id)
    skill_infos = base.delete_userid_statement(skill_infos)
    skill_infos = base.delete_createtime_statement(skill_infos)
    return skill_infos