소스 검색

课时统计调整

dzx 3 주 전
부모
커밋
2aa53a2052
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      src/main/resources/mapper/classtime/ClassTimeStatisticsMapper.xml

+ 5 - 4
src/main/resources/mapper/classtime/ClassTimeStatisticsMapper.xml

@@ -10,10 +10,11 @@
     </select>
 
     <select id="getWfTeacherCourseTimeList" parameterType="com.xjrsoft.module.classtime.entity.ClassTimeStatistics" resultType="com.xjrsoft.module.oa.entity.WfTeacherCourseTime">
-        SELECT t1.* FROM wf_teacher_course_time t1
-        INNER JOIN xjr_workflow_form_relation t2 ON t1.id = t2.form_key_value
-        WHERE t2.current_state = 'COMPLETED'
-        and t1.schedule_date BETWEEN #{dto.startDate} and #{dto.endDate}
+        SELECT t2.id,t2.apply_user_id,t2.dept_id,t1.course_time_type,t1.course_time,t1.schedule_date,t1.remark,t1.explains, t1.teacher_id FROM wf_teacher_course_time_detail t1
+        INNER JOIN wf_teacher_course_time t2 ON t1.wf_teacher_course_time_id = t2.id
+        INNER JOIN xjr_workflow_form_relation t3 ON t2.id = t3.form_key_value
+        WHERE t3.current_state = 'COMPLETED'
+        AND t2.schedule_date BETWEEN #{dto.startDate} and #{dto.endDate}
     </select>
 
     <select id="getCourseList" parameterType="com.xjrsoft.module.classtime.entity.ClassTimeStatistics" resultType="com.xjrsoft.module.classtime.vo.CourseListVo">