@@ -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}
group by t.class_ids;
</select>