Explorar el Código

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

dzx hace 11 meses
padre
commit
9be1bcebee

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