소스 검색

开课时间升序

cy 3 년 전
부모
커밋
c02107500a

+ 1 - 0
cooleshow-user/user-biz/src/main/resources/config/mybatis/CourseGroupMapper.xml

@@ -89,6 +89,7 @@
                 and b.type_ = #{param.type}
             </if>
         </where>
+        order by b.created_time_
     </select>
 
     <select id="queryStudentCourseGroup" resultType="com.yonge.cooleshow.biz.dal.vo.CourseGroupVo">

+ 1 - 0
cooleshow-user/user-biz/src/main/resources/config/mybatis/CourseScheduleMapper.xml

@@ -301,6 +301,7 @@
         <if test="param.endDate !=null and param.endDate !=''">
             <![CDATA[ AND s.class_date_  <= #{param.endDate} ]]>
         </if>
+        ORDER BY s.start_time_
     </select>
 
     <select id="queryCourseUser" resultType="com.yonge.cooleshow.biz.dal.vo.CourseStudent">

+ 1 - 0
cooleshow-user/user-biz/src/main/resources/config/mybatis/CourseScheduleRecordMapper.xml

@@ -99,5 +99,6 @@
                 AND s.status_ = #{param.status}
             </if>
         </where>
+        ORDER BY s.start_time_
     </select>
 </mapper>

+ 2 - 0
cooleshow-user/user-biz/src/main/resources/config/mybatis/CourseScheduleRepliedMapper.xml

@@ -145,6 +145,7 @@
         <if test="param.classDate !=null and param.classDate !=''">
             AND DATE_FORMAT(s.class_date_,'%Y-%m') = #{param.classDate}
         </if>
+        ORDER BY s.start_time_
     </select>
     <select id="selectReplied" resultType="com.yonge.cooleshow.biz.dal.vo.CourseRepliedVo"
             parameterType="com.yonge.cooleshow.biz.dal.entity.CourseScheduleReplied">
@@ -169,6 +170,7 @@
         WHERE t.course_schedule_id_=#{courseScheduleId}
         AND t.course_group_id_=#{courseGroupId}
         AND t.course_group_type_=#{courseGroupType}
+        ORDER BY s.start_time_
     </select>
     <select id="selectAllClass" resultType="java.lang.Long">
         SELECT course_schedule_id_ FROM course_schedule_replied WHERE course_group_type_='PRACTICE'