mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 02:46:50 +08:00
仅内网只可PC看
This commit is contained in:
@@ -177,12 +177,14 @@ public class CourseServiceImpl implements ICourseService {
|
||||
// }
|
||||
|
||||
if (dto.getDevice() != null) {
|
||||
if (dto.getDevice() == Course.DEVICE_PC || dto.getDevice() == Course.DEVICE_INTERNAL) {
|
||||
if (dto.getDevice() == Course.DEVICE_PC) {
|
||||
filters.add(FieldFilters.in("device", Course.DEVICE_PC, Course.DEVICE_ALL));
|
||||
} else if (dto.getDevice() == Course.DEVICE_MOBILE) {
|
||||
filters.add(FieldFilters.in("device", Course.DEVICE_MOBILE, Course.DEVICE_ALL));
|
||||
} else if (dto.getDevice() == Course.DEVICE_ALL) {
|
||||
filters.add(FieldFilters.eq("device", Course.DEVICE_ALL));
|
||||
}else if (dto.getDevice() == Course.DEVICE_INTERNAL) {
|
||||
filters.add(FieldFilters.eq("device", Course.DEVICE_INTERNAL));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user