|
@@ -182,7 +182,7 @@
|
|
|
</foreach>
|
|
|
</select>
|
|
|
<select id="getTeacherVisitCount" resultType="com.ym.mec.biz.dal.dto.TeacherVisitDto">
|
|
|
- SELECT teacher_id_ teacherId,date_format(visit_time_, '%Y-%m') month, COUNT(*) num
|
|
|
+ SELECT organ_id_ organId, teacher_id_ teacherId,date_format(visit_time_, '%Y-%m') month, COUNT(*) num
|
|
|
FROM student_visit
|
|
|
WHERE teacher_id_ IN
|
|
|
<foreach collection="teacherIds" item="teacherId" open="(" close=")" separator=",">
|
|
@@ -191,6 +191,6 @@
|
|
|
AND visit_time_ >= #{startTime}
|
|
|
<![CDATA[AND visit_time_ <= #{endTime}
|
|
|
]]>
|
|
|
- GROUP BY teacher_id_,date_format(visit_time_, '%Y-%m')
|
|
|
+ GROUP BY organ_id_, teacher_id_,date_format(visit_time_, '%Y-%m')
|
|
|
</select>
|
|
|
</mapper>
|