|
|
@@ -13,6 +13,7 @@
|
|
|
<result column="type" jdbcType="INTEGER" property="type" />
|
|
|
<result column="aid" jdbcType="VARCHAR" property="aid" />
|
|
|
<result column="mid" jdbcType="VARCHAR" property="mid" />
|
|
|
+ <result column="uid" jdbcType="VARCHAR" property="uid" />
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="com.goafanti.user.bo.UserPageHomeBo" id="UserPageHomeBo">
|
|
|
@@ -755,57 +756,46 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
- <select id="findUserPartnerDetail" parameterType="java.lang.String" resultType="com.goafanti.user.bo.UserPartnerDetailBo">
|
|
|
- SELECT
|
|
|
- u.number,
|
|
|
- ui.username,
|
|
|
- ui.province,
|
|
|
- ui.city,
|
|
|
- ui.area,
|
|
|
- uc.engaged_field AS engagedField,
|
|
|
- info.personal_profile AS personalProfile,
|
|
|
- u.lvl AS LEVEL,
|
|
|
- ua.ability_label AS abilityLabel,
|
|
|
- info.person_portrait_url AS personPortraitUrl,
|
|
|
- info.life_photo_url AS lifePhotoUrl,
|
|
|
- interest.id as interestId
|
|
|
- FROM
|
|
|
- `user` u
|
|
|
- LEFT JOIN user_identity ui ON ui.uid = u.id
|
|
|
- LEFT JOIN user_career uc ON uc.uid = u.id
|
|
|
- LEFT JOIN user_ability ua ON ua.uid = u.id
|
|
|
- LEFT JOIN user_info info ON info.uid = u.id
|
|
|
- LEFT JOIN user_interest interest on interest.to_uid = u.id and interest.from_uid = #{tokenId,jdbcType=VARCHAR}
|
|
|
- WHERE
|
|
|
- u.type = 0
|
|
|
- and u.id = #{uid,jdbcType=VARCHAR}
|
|
|
- </select>
|
|
|
-
|
|
|
- <select id="findOrgPartnerDetail" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgPartnerDetailBo">
|
|
|
- SELECT
|
|
|
- u.number,
|
|
|
- oi.unit_name AS unitName,
|
|
|
- oi.licence_province AS province,
|
|
|
- oi.licence_city AS city,
|
|
|
- oi.licence_area AS area,
|
|
|
- u.lvl AS LEVEL,
|
|
|
- ua.ability_label AS abilityLabel,
|
|
|
- info.logo_url AS logoUrl,
|
|
|
- info.company_introduction AS companyIntroduction,
|
|
|
- info.publicity_picture_url AS publicityPictureUrl,
|
|
|
- ot.search_area_category as field,
|
|
|
- interest.id as interestId
|
|
|
- FROM
|
|
|
- `user` u
|
|
|
- LEFT JOIN organization_identity oi ON oi.uid = u.id
|
|
|
- LEFT JOIN organization_info info ON info.uid = u.id
|
|
|
- LEFT JOIN organization_tech ot ON ot.uid = u.id
|
|
|
- LEFT JOIN user_ability ua ON ua.uid = u.id
|
|
|
- LEFT JOIN user_interest interest on interest.to_uid = u.id and interest.from_uid = #{tokenId,jdbcType=VARCHAR}
|
|
|
- WHERE
|
|
|
- u.type = 1
|
|
|
- and u.id = #{uid,jdbcType=VARCHAR}
|
|
|
- </select>
|
|
|
+ <select id="findUserPartnerDetail" parameterType="java.lang.String"
|
|
|
+ resultType="com.goafanti.user.bo.UserPartnerDetailBo">
|
|
|
+ select
|
|
|
+ u.id,i.username,c.work_unit as work_unit,c.position,c.achievement,
|
|
|
+ info.person_portrait_url as personPortraitUrl,
|
|
|
+ i.province,
|
|
|
+ info.personal_profile as personalProfile,
|
|
|
+ ua.ability_label as abilityLabel
|
|
|
+ from `user` u
|
|
|
+ left join user_identity i on u.id=i.uid
|
|
|
+ left join
|
|
|
+ user_career c on u.id=c.uid
|
|
|
+ left join user_info info on u.id=info.uid
|
|
|
+ left join user_ability ua on u.id=ua.uid
|
|
|
+ WHERE
|
|
|
+ u.type = 0
|
|
|
+ <if test="_parameter!= null">
|
|
|
+ and u.id= #{_parameter,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="findOrgPartnerDetail" parameterType="java.lang.String"
|
|
|
+ resultType="com.goafanti.user.bo.OrgPartnerDetailBo">
|
|
|
+ select
|
|
|
+ u.id,i.username,c.work_unit as work_unit,c.position,c.achievement,
|
|
|
+ info.person_portrait_url as personPortraitUrl,
|
|
|
+ i.province,info.personal_profile as personalProfile,
|
|
|
+ ua.ability_label as abilityLabel
|
|
|
+ from `user` u
|
|
|
+ left join user_identity i on u.id=i.uid
|
|
|
+ left join
|
|
|
+ user_career c on u.id=c.uid
|
|
|
+ left join user_info info on u.id=info.uid
|
|
|
+ left join user_ability ua on u.id=ua.uid
|
|
|
+ WHERE
|
|
|
+ u.type = 1
|
|
|
+ <if test="_parameter!= null">
|
|
|
+ and u.id= #{_parameter,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
|
|
|
<select id="findStarListByPage" parameterType="String" resultType="com.goafanti.user.bo.StarListBo">
|
|
|
select
|
|
|
@@ -935,5 +925,23 @@
|
|
|
select number
|
|
|
from user
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
- </select>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="findUserPartner" parameterType="String" resultType="com.goafanti.user.bo.UserPartnerDetailBo">
|
|
|
+ select
|
|
|
+ u.id,i.username,c.work_unit as work_unit,c.position,c.achievement,
|
|
|
+ info.person_portrait_url as personPortraitUrl,
|
|
|
+ i.province,
|
|
|
+ info.personal_profile as personalProfile,
|
|
|
+ ua.ability_label as abilityLabel
|
|
|
+ from `user` u
|
|
|
+ left join user_identity i on u.id=i.uid
|
|
|
+ left join
|
|
|
+ user_career c on u.id=c.uid
|
|
|
+ left join user_info info on u.id=info.uid
|
|
|
+ left join user_ability ua on u.id=ua.uid
|
|
|
+ WHERE
|
|
|
+ u.type = 0
|
|
|
+ limit 0,50
|
|
|
+ </select>
|
|
|
</mapper>
|