|
@@ -6,7 +6,7 @@
|
|
resultType="com.qmth.distributed.print.business.bean.result.TeachCourseResult">
|
|
resultType="com.qmth.distributed.print.business.bean.result.TeachCourseResult">
|
|
SELECT
|
|
SELECT
|
|
tc.id,
|
|
tc.id,
|
|
- bc.code AS courseCode,
|
|
|
|
|
|
+ GROUP_CONCAT(bc.code, '(', so.name, ')') as courseCode,
|
|
bc.name AS courseName,
|
|
bc.name AS courseName,
|
|
tc.create_id AS createId,
|
|
tc.create_id AS createId,
|
|
tc.create_time AS createTime,
|
|
tc.create_time AS createTime,
|
|
@@ -19,6 +19,7 @@
|
|
basic_course bc ON tc.course_id = bc.id
|
|
basic_course bc ON tc.course_id = bc.id
|
|
LEFT JOIN
|
|
LEFT JOIN
|
|
sys_user su ON tc.user_id = su.id
|
|
sys_user su ON tc.user_id = su.id
|
|
|
|
+ join sys_org so on so.id = bc.teaching_room_id
|
|
<where>
|
|
<where>
|
|
<if test="schoolId != null">
|
|
<if test="schoolId != null">
|
|
AND tc.school_id = #{schoolId}
|
|
AND tc.school_id = #{schoolId}
|
|
@@ -42,6 +43,14 @@
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
|
|
+ group by
|
|
|
|
+ tc.id,
|
|
|
|
+ bc.name,
|
|
|
|
+ tc.create_id,
|
|
|
|
+ tc.create_time,
|
|
|
|
+ tc.user_id,
|
|
|
|
+ su.login_name,
|
|
|
|
+ su.real_name
|
|
ORDER BY tc.create_time DESC
|
|
ORDER BY tc.create_time DESC
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|