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