|
@@ -132,12 +132,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<select id="selectUserByMap" resultType="com.fs.company.vo.CompanyTagUserVO">
|
|
|
- select fu.user_id,
|
|
|
- fucu.project_id,
|
|
|
- fu.nickname as userName from company_tag ct
|
|
|
- inner join fs_user_project_tag ft on ct.tag_id =ft.tag_id
|
|
|
- inner join fs_user_company_user fucu on fucu.id = ft.user_company_user_id
|
|
|
- inner join fs_user fu on fu.user_id =fucu.user_id
|
|
|
+ select
|
|
|
+ fu.user_id,
|
|
|
+ fucu.project_id,
|
|
|
+ fu.nick_name as userName
|
|
|
+ from fs_user_company_user fucu
|
|
|
+ inner join fs_user fu on fu.user_id = fucu.user_id
|
|
|
+ left join fs_user_project_tag ft on fucu.id = ft.user_company_user_id
|
|
|
+ left join company_tag ct on fucu.id = ft.tag_id
|
|
|
where fucu.company_user_id = #{params.companyUserId}
|
|
|
<if test="params.tagIds != null and params.tagIds.size() > 0">
|
|
|
and ft.tag_id in
|