Procházet zdrojové kódy

教师考勤调整报错解决

dzx před 1 rokem
rodič
revize
28b0053a19

+ 1 - 1
src/main/resources/mapper/attendance/AttendanceRuleDetailsMapper.xml

@@ -36,7 +36,7 @@
         INNER JOIN base_student t5 ON t4.id = t5.user_id
         WHERE t1.delete_mark = 0 AND t2.delete_mark = 0 AND NOW() BETWEEN start_date AND end_date
         AND t2.date_type = #{dayOfWeek}
-        <if test="dto.ids != null and !dto.ids.isEmpty()">
+        <if test="userIds != null and !userIds.isEmpty()">
             and t5.user_id in
             <foreach item="id" index="index" collection="userIds" open="(" close=")" separator=",">
             #{id}