仅内网只可PC看

This commit is contained in:
670788339
2025-07-21 17:43:18 +08:00
parent f5f7ab3bc5
commit 1917647a99
2 changed files with 5 additions and 2 deletions

View File

@@ -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;

View File

@@ -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));