瀏覽代碼

乐团课程统计

zouxuan 3 年之前
父節點
當前提交
321bbcac31
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      mec-biz/src/main/resources/config/mybatis/MusicGroupMapper.xml

+ 2 - 2
mec-biz/src/main/resources/config/mybatis/MusicGroupMapper.xml

@@ -1115,11 +1115,11 @@
         LEFT JOIN sys_user su ON su.id_ = mg.educational_teacher_id_
         LEFT JOIN student_registration sr ON sr.music_group_id_ = mg.id_
         <if test="queryInfo.startTime != null and queryInfo.startTime != ''">
-            AND sr.create_time_ BETWEEN #{queryInfo.startTime} AND #{queryInfo.endTime}
+            AND DATE_FORMAT(sr.create_time_,"%Y-%m-%d") BETWEEN #{queryInfo.startTime} AND #{queryInfo.endTime}
         </if>
         LEFT JOIN music_group_quit mgq ON mgq.music_group_id_ = mg.id_
         <if test="queryInfo.startTime != null and queryInfo.startTime != ''">
-            AND mgq.create_time_ BETWEEN #{queryInfo.startTime} AND #{queryInfo.endTime}
+            AND DATE_FORMAT(mgq.create_time_,"%Y-%m-%d") BETWEEN #{queryInfo.startTime} AND #{queryInfo.endTime}
         </if>
         <where>
             mg.status_ = 'PROGRESS'