瀏覽代碼

班级量化考核根据月份查询数据

dzx 11 月之前
父節點
當前提交
9be1bcebee
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/resources/mapper/student/BaseStudentAssessmentInspectionMapper.xml

+ 1 - 1
src/main/resources/mapper/student/BaseStudentAssessmentInspectionMapper.xml

@@ -259,7 +259,7 @@
             and t.create_date < #{dto.endTime}
         </if>
         <if test="dto.year != null and dto.month != null">
-            and DATE_FORMAT(t.assessment_date, '%Y-%m') = concat(#{dto.year}, '-', #{dto.month})
+            and YEAR(t.assessment_date) = #{dto.year} and month(t.assessment_date) = #{dto.month}
         </if>
         group by t.class_ids;
     </select>