|
|
|
@ -3,7 +3,62 @@
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.ruoyi.zhiyuanzhe.mapper.ActivityUserMapper">
|
|
|
|
|
<resultMap type="BPersonTags" id="personTags">
|
|
|
|
|
<result property="id" column="id"/>
|
|
|
|
|
<result property="uId" column="u_id"/>
|
|
|
|
|
<result property="ageRange" column="age_range"/>
|
|
|
|
|
<result property="housingRange" column="housing_range"/>
|
|
|
|
|
<result property="educationRange" column="education_range"/>
|
|
|
|
|
<result property="interestRange" column="interest_range"/>
|
|
|
|
|
<result property="politicalRange" column="political_range"/>
|
|
|
|
|
<result property="sexRange" column="sex_range"/>
|
|
|
|
|
<result property="nationalityRange" column="nationality_range"/>
|
|
|
|
|
<result property="professionalRange" column="professional_range"/>
|
|
|
|
|
<result property="industryRange" column="industry_range"/>
|
|
|
|
|
<result property="schoolRange" column="school_range"/>
|
|
|
|
|
<result property="createId" column="create_id"/>
|
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
|
|
<result property="updateId" column="update_id"/>
|
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
|
<result property="remark" column="remark"/>
|
|
|
|
|
<result property="userId" column="user_id"/>
|
|
|
|
|
<result property="deptId" column="dept_id"/>
|
|
|
|
|
<result property="status" column="status"/>
|
|
|
|
|
<result property="degreeOfMatch" column="degree_of_match"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<resultMap type="BActivity" id="activityResult">
|
|
|
|
|
<result property="id" column="id"/>
|
|
|
|
|
<result property="name" column="name"/>
|
|
|
|
|
<result property="content" column="content"/>
|
|
|
|
|
<result property="publisher" column="publisher"/>
|
|
|
|
|
<result property="activityTime" column="activity_time"/>
|
|
|
|
|
<result property="address" column="address"/>
|
|
|
|
|
<result property="ageRange" column="age_range"/>
|
|
|
|
|
<result property="housingRange" column="housing_range"/>
|
|
|
|
|
<result property="educationRange" column="education_range"/>
|
|
|
|
|
<result property="interestRange" column="interest_range"/>
|
|
|
|
|
<result property="politicalRange" column="political_range"/>
|
|
|
|
|
<result property="sexRange" column="sex_range"/>
|
|
|
|
|
<result property="nationalityRange" column="nationality_range"/>
|
|
|
|
|
<result property="professionalRange" column="professional_range"/>
|
|
|
|
|
<result property="industryRange" column="industry_range"/>
|
|
|
|
|
<result property="schoolRange" column="school_range"/>
|
|
|
|
|
<result property="createId" column="create_id"/>
|
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
|
|
<result property="updateId" column="update_id"/>
|
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
|
<result property="remark" column="remark"/>
|
|
|
|
|
<result property="userId" column="user_id"/>
|
|
|
|
|
<result property="deptId" column="dept_id"/>
|
|
|
|
|
<result property="endTime" column="end_time"/>
|
|
|
|
|
<result property="status" column="status"/>
|
|
|
|
|
<result property="degreeOfMatch" column="degree_of_match"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<insert id="add" parameterType="BActivityUser" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
|
insert into b_activity_user
|
|
|
|
@ -45,7 +100,7 @@
|
|
|
|
|
from b_activity_user
|
|
|
|
|
where activity_id = #{activityId}
|
|
|
|
|
</delete>
|
|
|
|
|
<select id="findUserByStatusAndActivityId" resultType="BPersonTags">
|
|
|
|
|
<select id="findUserByStatusAndActivityId" resultMap="personTags">
|
|
|
|
|
select bpt.*, bau.degree_of_match,bau.status
|
|
|
|
|
from b_activity_user bau
|
|
|
|
|
left join b_person_tags bpt on bau.u_id = bpt.u_id
|
|
|
|
@ -60,7 +115,7 @@
|
|
|
|
|
</if>
|
|
|
|
|
order by bau.degree_of_match desc
|
|
|
|
|
</select>
|
|
|
|
|
<select id="eventRecommendations" resultType="BActivity">
|
|
|
|
|
<select id="eventRecommendations" resultMap="activityResult">
|
|
|
|
|
select bau.degree_of_match, bau.status, ba.*
|
|
|
|
|
from b_activity_user bau
|
|
|
|
|
left join b_activity ba on bau.activity_id = ba.id
|
|
|
|
|