|
|
|
@ -30,6 +30,20 @@
|
|
|
|
|
<result property="degreeOfMatch" column="degree_of_match"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<resultMap type="BActivityUser" id="BActivityUserResult">
|
|
|
|
|
<result property="degreeOfMatch" column="degreeOfMatch"/>
|
|
|
|
|
<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"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<resultMap type="BActivity" id="activityResult">
|
|
|
|
|
<result property="id" column="id"/>
|
|
|
|
|
<result property="name" column="name"/>
|
|
|
|
@ -177,4 +191,19 @@
|
|
|
|
|
</if>
|
|
|
|
|
order by bau.degree_of_match desc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="findById" resultMap="BActivityUserResult">
|
|
|
|
|
select age_range,
|
|
|
|
|
housing_range,
|
|
|
|
|
education_range,
|
|
|
|
|
interest_range,
|
|
|
|
|
political_range,
|
|
|
|
|
sex_range,
|
|
|
|
|
nationality_range,
|
|
|
|
|
professional_range,
|
|
|
|
|
industry_range,
|
|
|
|
|
school_range
|
|
|
|
|
from b_activity_user
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|