|
@@ -130,8 +130,8 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="querySubject" resultMap="com.yonge.cooleshow.biz.dal.dao.SubjectDao.Subject">
|
|
<select id="querySubject" resultMap="com.yonge.cooleshow.biz.dal.dao.SubjectDao.Subject">
|
|
- SELECT s.* FROM teacher t
|
|
|
|
- LEFT JOIN `subject` s ON FIND_IN_SET(s.id_,t.subject_id_)
|
|
|
|
|
|
+ SELECT s.* FROM `subject` s
|
|
|
|
+ LEFT JOIN teacher t ON FIND_IN_SET(s.id_,t.subject_id_)
|
|
WHERE t.user_id_ = #{userId}
|
|
WHERE t.user_id_ = #{userId}
|
|
</select>
|
|
</select>
|
|
|
|
|