select id,name,sex,birthday,phone,title,state,electronic_photo,id_card,duty_status,
company_name,company_address,dept_name,job,company_telephone,fax_num,email,
graduation_school,degree,speciality,current_profession,support_direction_safety,
support_direction_prevention,support_direction_emergency,resume_key,paper_situation_key,
reward_key,achievement_key,personal_opinion_key,recommend_unit_opinion_key,remark,create_by,
create_time,big_classify,small_classify,del_flag,source,rating_level,employment_date_start,employment_date_end,expert_certificate,dept_id,domain,evidence
from sys_expert_info
update expert_info set del_flag = 1 where id in
#{expertId}
select id,name,sex,birthday,phone,title,degree,state,speciality,big_classify,small_classify,id_card,company_name,evidence,
domain,level,current_profession,duty_status,support_direction_safety,support_direction_prevention,support_direction_emergency,create_time,
rating_level,employment_date_start,employment_date_end,expert_certificate,update_time from sys_expert_info
and del_flag = 0
and name like concat('%', #{name}, '%')
and phone like concat('%', #{phone}, '%')
and id_card like concat('%', #{idCard}, '%')
and domain = #{domain}
and level = #{level}
and big_classify = #{bigClassify}
and rating_level = #{ratingLevel}
and small_classify = #{smallClassify}
and duty_status = #{dutyStatus}
and state = #{state}
and dept_id = #{deptId}
and date_format(create_time,'%y%m%d') >= date_format(#{params.startTime},'%y%m%d')
and date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
order by create_time desc
select a.id,a.name,a.sex,a.birthday,a.phone,a.title,a.degree,a.state,a.speciality,a.big_classify bigClassify,a.small_classify smallClassify,a.id_card idCard,a.company_name companyName,a.evidence,
a.domain,a.level,a.current_profession currentProfession,a.duty_status dutyStatus,a.support_direction_safety supportDirectionSafety,
a.support_direction_prevention supportDirectionPrevention,a.support_direction_emergency supportDirectionEmergency,a.create_time createTime,
a.rating_level ratingLevel,a.employment_date_start employmentDateStart,a.employment_date_end employmentDateEnd,a.expert_certificate expertCertificate,a.update_time updateTime ,b.classify_name as bigClassifyName from sys_expert_info a
left join sys_expert_classify b on a.big_classify = b.id
and a.del_flag = 0
and a.name like concat('%', #{name}, '%')
and a.phone like concat('%', #{phone}, '%')
and a.id_card like concat('%', #{idCard}, '%')
and a.domain = #{domain}
and a.level = #{level}
and a.big_classify = #{bigClassify}
and a.rating_level = #{ratingLevel}
and a.small_classify = #{smallClassify}
and a.duty_status = #{dutyStatus}
and a.state = #{state}
and a.dept_id = #{deptId}
and a.date_format(create_time,'%y%m%d') >= date_format(#{params.startTime},'%y%m%d')
and a.date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
order by a.create_time desc
select id,name from sys_expert_info where id_card=#{idCard} and dept_id = #{deptId} and del_flag=0 limit 1
select id,name from sys_expert_info where id_card=#{idCard} and domain=#{domain} and phone = #{phone} and del_flag=0 limit 1
where id=#{expertId}
select a.name,a.employment_date_start employmentDateStart,a.employment_date_end employmentDateEnd,
a.update_time updateTime,a.state,b.classify_name bigClassifyName,a.id,a.domain
from sys_expert_info a
left join sys_expert_classify b on a.big_classify = b.id
where a.id_card=#{idCard} and a.domain=#{domain} and a.phone = #{phone} and a.del_flag=0 limit 1
select id,name,sex,id_card idCard,
domain,rating_level ratingLevel from sys_expert_info
where del_flag = 0
and dept_id = #{deptId}
and domain in
#{item}
and rating_level in
#{item}
and id != #{selectedUserId}
ORDER BY RAND()
LIMIT #{num}