瀏覽代碼

教师考勤调整报错解决

dzx 1 年之前
父節點
當前提交
28b0053a19
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/resources/mapper/attendance/AttendanceRuleDetailsMapper.xml

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