Forráskód Böngészése

专业开设院校

jinxia.mo 3 hete
szülő
commit
a006f16ea7

+ 8 - 1
ie-system/src/main/resources/mapper/syzy/BBusiWishUniversitiesMapper.xml

@@ -165,6 +165,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
           #{code}
         </foreach>
       </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>
     <choose>
       <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="stars!= null"> and <foreach item="o" collection="stars" open="(" separator=" OR " close=")">u.star like concat('%', #{o}, '%')</foreach></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.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>