mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 20:06:51 +08:00
fix: 课程导出问题修正
排查空指针问题修正
This commit is contained in:
@@ -22,7 +22,7 @@ public enum CourseStatusEnum {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public static CourseStatusEnum getByCode(int code) {
|
||||
public static CourseStatusEnum getByCode(Integer code) {
|
||||
return Arrays.stream(values()).filter(item -> item.code == code).findFirst().orElse(STATUS_NONE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user