|
|
|
@ -128,4 +128,20 @@
|
|
|
|
|
</if>
|
|
|
|
|
order by bau.degree_of_match desc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="eventInvitations" resultType="BActivity">
|
|
|
|
|
select bau.degree_of_match, bau.status, ba.*
|
|
|
|
|
from b_activity_user bau
|
|
|
|
|
left join b_activity ba on bau.activity_id = ba.id
|
|
|
|
|
where ba.status = 1 and bau.degree_of_match != 0
|
|
|
|
|
and bau.status = 1
|
|
|
|
|
<if test="req.name != null and req.name != ''">
|
|
|
|
|
and ba.name like concat('%', #{req.name}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="req.userId != null and req.userId != ''">
|
|
|
|
|
and bau.u_id = #{req.userId}
|
|
|
|
|
</if>
|
|
|
|
|
order by bau.degree_of_match desc
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|