|
|
@ -354,23 +354,42 @@ |
|
|
|
and tpmrs.member_id=#{memberId} |
|
|
|
order by tpmrs.sequence |
|
|
|
</select> |
|
|
|
<!-- <select id="queryRoleShowslistBefore" resultType="com.ccsens.tall.bean.vo.RoleVo$JueSeByProId">--> |
|
|
|
<!-- select--> |
|
|
|
<!-- id,name,sequence--> |
|
|
|
<!-- from t_pro_role tpr--> |
|
|
|
<!-- where tpr.rec_status=0--> |
|
|
|
<!-- and tpr.project_id=#{param1}--> |
|
|
|
<!-- and tpr.parent_id !=0--> |
|
|
|
<!-- and (SELECT name FROM t_pro_role pr WHERE tpr.parent_id = pr.id) in ('PM','Member')--> |
|
|
|
<!-- and tpr.name not IN('观众', 'MVP')--> |
|
|
|
<!-- <if test="param2!=null and param2.size>0">--> |
|
|
|
<!-- and tpr.id not in--> |
|
|
|
<!-- <foreach collection="param2" item="id" separator="," open="(" close=")">--> |
|
|
|
<!-- #{id}--> |
|
|
|
<!-- </foreach>--> |
|
|
|
<!-- </if>--> |
|
|
|
<!-- order by tpr.sequence--> |
|
|
|
<!-- </select>--> |
|
|
|
|
|
|
|
<select id="queryRoleShowslistBefore" resultType="com.ccsens.tall.bean.vo.RoleVo$JueSeByProId"> |
|
|
|
select |
|
|
|
id,name,sequence |
|
|
|
from t_pro_role tpr |
|
|
|
where tpr.rec_status=0 |
|
|
|
and tpr.project_id=#{param1} |
|
|
|
and tpr.parent_id !=0 |
|
|
|
and (SELECT name FROM t_pro_role pr WHERE tpr.parent_id = pr.id) in ('PM','Member') |
|
|
|
and tpr.name not IN('观众', 'MVP') |
|
|
|
<if test="param2!=null and param2.size>0"> |
|
|
|
and tpr.id not in |
|
|
|
<foreach collection="param2" item="id" separator="," open="(" close=")"> |
|
|
|
#{id} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
order by tpr.sequence |
|
|
|
select |
|
|
|
id,name,sequence |
|
|
|
from t_pro_role tpr |
|
|
|
where tpr.rec_status=0 |
|
|
|
and tpr.project_id=#{param1} |
|
|
|
and tpr.parent_id !=0 |
|
|
|
and (SELECT name FROM t_pro_role pr WHERE tpr.parent_id = pr.id) in ('PM','Member') |
|
|
|
and tpr.name not IN('观众', 'MVP') |
|
|
|
<if test="param2!=null and param2.size>0"> |
|
|
|
and tpr.id not in |
|
|
|
<foreach collection="param2" item="id" separator="," open="(" close=")"> |
|
|
|
#{id} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
order by tpr.sequence |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getPmByByProjectId" resultType="java.lang.Long"> |
|
|
|
SELECT |
|
|
|
id |
|
|
|