浏览代码

课时统计调整

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">