提升系统稳定性

This commit is contained in:
none
2023-04-19 11:18:32 +08:00
parent ea80ddc61a
commit de47dd3af7
2 changed files with 23 additions and 28 deletions

View File

@@ -136,6 +136,9 @@ public class CourseHourServiceImpl extends ServiceImpl<CourseHourMapper, CourseH
@Override
public List<CourseHour> chunk(List<Integer> hourIds) {
if (hourIds == null || hourIds.size() == 0) {
return new ArrayList<>();
}
return list(query().getWrapper().in("id", hourIds));
}
}