|
@@ -136,9 +136,12 @@
|
|
|
select * from school where del_flag_ != 1 and user_id_ = #{userId}
|
|
|
</select>
|
|
|
<select id="findVipSchoolByUserId" resultMap="School">
|
|
|
- SELECT * FROM school WHERE del_flag_ != 1 or user_id_ = #{userId}
|
|
|
+ SELECT * FROM school WHERE del_flag_ != 1
|
|
|
<if test="organId != null">
|
|
|
- AND (FIND_IN_SET(organ_id_,#{organId}) and user_id_ is NULL)
|
|
|
+ AND (FIND_IN_SET(organ_id_,#{organId}) and user_id_ is NULL or user_id_ = #{userId})
|
|
|
+ </if>
|
|
|
+ <if test="organId == null">
|
|
|
+ and user_id_ = #{userId}
|
|
|
</if>
|
|
|
</select>
|
|
|
</mapper>
|