t.id_ , t.course_group_id_ , t.course_group_type_ , t.course_schedule_id_ , t.title_ , t.content_ , t.attachments_ , t.expect_num_ , t.completed_num_ , t.create_time_ , t.update_time_ update course_homework set completed_num_ = (select COUNT(1) from student_course_homework where course_homework_id_ = #{homeworkId}) WHERE id_ = #{homeworkId}