|
|
|
@ -75,12 +75,20 @@
|
|
|
|
|
<if test="status != null">#{status},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<update id="invite">
|
|
|
|
|
update b_activity_user
|
|
|
|
|
set status = 1
|
|
|
|
|
where u_id = #{req.userId}
|
|
|
|
|
and activity_id = #{req.activityId}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<update id="inviteTwo">
|
|
|
|
|
update b_activity_user
|
|
|
|
|
set status = 1
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<update id="enroll">
|
|
|
|
|
update b_activity_user
|
|
|
|
|
set status = 2
|
|
|
|
@ -101,7 +109,13 @@
|
|
|
|
|
where activity_id = #{activityId}
|
|
|
|
|
</delete>
|
|
|
|
|
<select id="findUserByStatusAndActivityId" resultMap="personTags">
|
|
|
|
|
select bpt.*, bau.degree_of_match,bau.status
|
|
|
|
|
select bau.id, bau.u_id, bpt.age_range, bpt.housing_range, bpt.education_range, bpt.interest_range,
|
|
|
|
|
bpt.political_range, bpt.sex_range,
|
|
|
|
|
bpt.nationality_range, bpt.professional_range, bpt.industry_range, bpt.school_range, bpt.create_id,
|
|
|
|
|
bpt.create_by, bpt.create_time,
|
|
|
|
|
bpt.update_id, bpt.update_by, bpt.update_time,bpt. remark, bpt.user_id, bpt.dept_id,
|
|
|
|
|
bau.degree_of_match,bau.status,
|
|
|
|
|
(select nick_name from sys_user where user_id = bau.u_id) as nickName
|
|
|
|
|
from b_activity_user bau
|
|
|
|
|
left join b_person_tags bpt on bau.u_id = bpt.u_id
|
|
|
|
|
where
|
|
|
|
@ -130,8 +144,8 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="eventInvitations" resultType="BActivity">
|
|
|
|
|
select bau.degree_of_match, bau.status, ba.*
|
|
|
|
|
<select id="eventInvitations" resultMap="activityResult">
|
|
|
|
|
select bau.degree_of_match, bau.status activityStatus, 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
|
|
|
|
|