|
@@ -165,6 +165,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
#{code}
|
|
#{code}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="majorCodes!= null">
|
|
|
|
|
+<!-- and u.code in (select distinct t2.collegeCode from b_busi_wish_universities_profession t2 where t2.code in <foreach item="majorCode" collection="majorCodes" open="(" separator="," close=")">#{majorCode}</foreach>-->
|
|
|
|
|
+ and u.id in (SELECT distinct t2.universityId from a_marjor_plan t2 where t2.majorCode in <foreach item="majorCode" collection="majorCodes" open="(" separator="," close=")">#{majorCode}</foreach>
|
|
|
|
|
+ <if test="examMajor != null "> and t2.examMajor = #{examMajor}</if>
|
|
|
|
|
+ )
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
<choose>
|
|
<choose>
|
|
|
<when test="filterRank!= null and filterRank"> order by u.star desc, u.code </when>
|
|
<when test="filterRank!= null and filterRank"> order by u.star desc, u.code </when>
|
|
@@ -202,7 +208,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="enrollLocations!= null"> and <foreach item="o" collection="enrollLocations" open="(" separator=" OR " close=")">u.enrollLocation like concat('%', #{o}, '%')</foreach></if>
|
|
<if test="enrollLocations!= null"> and <foreach item="o" collection="enrollLocations" open="(" separator=" OR " close=")">u.enrollLocation like concat('%', #{o}, '%')</foreach></if>
|
|
|
<if test="stars!= null"> and <foreach item="o" collection="stars" open="(" separator=" OR " close=")">u.star like concat('%', #{o}, '%')</foreach></if>
|
|
<if test="stars!= null"> and <foreach item="o" collection="stars" open="(" separator=" OR " close=")">u.star like concat('%', #{o}, '%')</foreach></if>
|
|
|
<if test="majorCodes!= null">
|
|
<if test="majorCodes!= null">
|
|
|
- and u.code in (select distinct t2.collegeCode from b_busi_wish_universities_profession t2 where t2.code in <foreach item="majorCode" collection="majorCodes" open="(" separator="," close=")">#{majorCode}</foreach>
|
|
|
|
|
|
|
+ <!-- and u.code in (select distinct t2.collegeCode from b_busi_wish_universities_profession t2 where t2.code in <foreach item="majorCode" collection="majorCodes" open="(" separator="," close=")">#{majorCode}</foreach>-->
|
|
|
|
|
+ and u.id in (SELECT distinct t2.universityId from a_marjor_plan t2 where t2.majorCode in <foreach item="majorCode" collection="majorCodes" open="(" separator="," close=")">#{majorCode}</foreach>
|
|
|
<if test="examMajor != null "> and t2.examMajor = #{examMajor}</if>
|
|
<if test="examMajor != null "> and t2.examMajor = #{examMajor}</if>
|
|
|
)
|
|
)
|
|
|
</if>
|
|
</if>
|