|
@@ -158,6 +158,7 @@
|
|
|
|
|
|
<resultMap id="teacherHomeworkListDto" type="com.ym.mec.biz.dal.dto.TeacherHomeworkListDto">
|
|
|
<result property="courseScheduleId" column="course_schedule_id_"/>
|
|
|
+ <result property="homeworkId" column="homework_id_"/>
|
|
|
<result property="content" column="content_"/>
|
|
|
<result property="title" column="title_"/>
|
|
|
<result property="expectNum" column="expect_num_"/>
|
|
@@ -331,7 +332,9 @@
|
|
|
<include refid="queryHomePageSql"/>
|
|
|
</select>
|
|
|
<select id="findByIdList" resultMap="teacherHomeworkListDto">
|
|
|
- SELECT ch.*,
|
|
|
+ SELECT
|
|
|
+ ch.id_ homework_id_,ch.title_,ch.content_,ch.completed_num_,ch.expect_num_,ch.expiry_date_,
|
|
|
+ ch.course_schedule_id_,ch.music_group_id_,
|
|
|
DATE_FORMAT(ch.create_time_,'%Y-%m-%d') 'day_',
|
|
|
CONCAT(cs.class_date_, ' ',cs.start_class_time_ ) start_class_time_,
|
|
|
CONCAT(cs.class_date_, ' ',cs.end_class_time_ ) end_class_time_,
|