|
@@ -54,8 +54,9 @@ public interface StudentAttendanceMapper extends BaseMapperX<StudentAttendanceDO
|
|
|
|
|
|
if (roleIds != null && !roleIds.isEmpty()) {
|
|
|
if (roleIds.contains(113L)) {//是教师 只出现在老师工作间下面的学生考勤情况
|
|
|
- queryWrapper.eqIfPresent(StudentAttendanceDO::getDeptId, dept_id);
|
|
|
-
|
|
|
+ if (dept_id!=null&&dept_id!=0) {
|
|
|
+ queryWrapper.eqIfPresent(StudentAttendanceDO::getDeptId, dept_id);
|
|
|
+ }
|
|
|
} else if (roleIds.contains(112L)) {//是学生,只显示自己的
|
|
|
queryWrapper.eqIfPresent(StudentAttendanceDO::getStudentId, loginId);
|
|
|
}else if (roleIds.contains(114L)) {
|