forked from Gitlink/microservices
专家性别获取
This commit is contained in:
parent
0429fe5ab7
commit
5e3ccaf4e7
|
|
@ -267,6 +267,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<where>
|
||||
and a.status='1'
|
||||
<if test="achievementName != null and achievementName != ''"> and a.achievement_name like concat('%', #{achievementName}, '%')</if>
|
||||
<if test="showAchievementName != null and showAchievementName != ''"> and a.show_ach_name like concat('%', #{showAchievementName}, '%')</if>
|
||||
</where>
|
||||
order by a.create_time desc
|
||||
</if>
|
||||
|
|
@ -284,6 +285,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<where>
|
||||
and a.status='1'
|
||||
<if test="achievementName != null and achievementName != ''"> and a.achievement_name like concat('%', #{achievementName}, '%')</if>
|
||||
<if test="showAchievementName != null and showAchievementName != ''"> and a.show_ach_name like concat('%', #{showAchievementName}, '%')</if>
|
||||
<if test="source != null and source != ''"> and a.source = #{source}</if>
|
||||
<if test='areaQuery != null and areaQuery != "" '>
|
||||
and (a.field_1 = #{areaQuery} or a.field_2 = #{areaQuery} or a.field_3 = #{areaQuery})
|
||||
|
|
@ -305,6 +307,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<where>
|
||||
and a.status='1'
|
||||
<if test="achievementName != null and achievementName != ''"> and a.achievement_name like concat('%', #{achievementName}, '%')</if>
|
||||
<if test="showAchievementName != null and showAchievementName != ''"> and a.show_ach_name like concat('%', #{showAchievementName}, '%')</if>
|
||||
<if test="source != null and source != ''"> and a.source = #{source}</if>
|
||||
<if test='areaQuery != null and areaQuery != "" '>
|
||||
and (a.field_1 = #{areaQuery} or a.field_2 = #{areaQuery} or a.field_3 = #{areaQuery})
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
<select id="selectExpertResourceLibraryList" parameterType="ExpertResourceLibrary"
|
||||
resultType="com.microservices.dms.resourceLibrary.domain.ExpertResourceLibrary">
|
||||
select * from ( select erl.id, e.id as expert_id,e.user_id, e.expert_name, e.highest_degree, e.graduated_from,
|
||||
u.nickname as "userNickName",ue.gender as "gender",
|
||||
u.nickname as "userNickName", IFNULL(erl.gender, ue.gender) as "gender",
|
||||
e.id_number,images, attachments,
|
||||
e.major, e.workplace, e.phone,
|
||||
e.workplace_type, e.expert_email, erl.expert_summary, erl.expert_detail, e.professional_title, e.expert_type,
|
||||
|
|
@ -121,7 +121,7 @@
|
|||
<select id="selectExpertResourceLibraryList2" parameterType="ExpertResourceLibrary"
|
||||
resultMap="ExpertResourceLibraryResult">
|
||||
select erl.id, e.id as expert_id,e.user_id, e.expert_name, e.highest_degree, e.graduated_from, e.id_number,
|
||||
e.major, e.workplace, e.phone,
|
||||
e.major, e.workplace, e.phone,u.nickname as "userNickName", IFNULL(erl.gender, ue.gender) as "gender",
|
||||
e.workplace_type, e.expert_email, erl.expert_summary, erl.expert_detail, e.professional_title, e.expert_type,
|
||||
expert_domain,images, attachments,
|
||||
e.title_rank, erl.status, e.review_area_one, e.review_area_two, e.review_area_three, e.is_delete, erl.create_by,
|
||||
|
|
@ -131,7 +131,10 @@
|
|||
(select count(*) as watchSum from watchers where watchable_type = 'Experts' and watchable_id = erl.id) as watcherSum,
|
||||
(select count(*) as favoriteSum from favorites where favorite_type = 'Experts' and favorite_id = erl.id) as favoriteSum,
|
||||
erl.update_by, erl.update_time,erl.sort_no
|
||||
from expert_resource_library erl left join experts e on e.id = erl.expert_id
|
||||
from expert_resource_library erl
|
||||
left join experts e on e.id = erl.expert_id
|
||||
left join users u on e.user_id = u.id
|
||||
left join user_extensions ue on u.id = ue.user_id
|
||||
<where>
|
||||
<if test="userId != null ">and user_id = #{userId}</if>
|
||||
<if test="expertName != null and expertName != ''">and erl.expert_name like concat('%', #{expertName}, '%')
|
||||
|
|
|
|||
Loading…
Reference in New Issue