mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 19:06:49 +08:00
仅内网只可PC看
This commit is contained in:
@@ -33,7 +33,10 @@ public class Course extends BaseEntity {
|
||||
|
||||
/**所有的设备*/
|
||||
public static int DEVICE_ALL=3;
|
||||
|
||||
|
||||
/**仅内网*/
|
||||
public static int DEVICE_INTERNAL=4;
|
||||
|
||||
/**未提交,草稿*/
|
||||
public static final int STATUS_NONE=1;
|
||||
|
||||
|
||||
@@ -177,7 +177,7 @@ public class CourseServiceImpl implements ICourseService {
|
||||
// }
|
||||
|
||||
if (dto.getDevice() != null) {
|
||||
if (dto.getDevice() == Course.DEVICE_PC) {
|
||||
if (dto.getDevice() == Course.DEVICE_PC || dto.getDevice() == Course.DEVICE_INTERNAL) {
|
||||
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));
|
||||
|
||||
Reference in New Issue
Block a user