|
@@ -281,12 +281,15 @@ public class ImportPaperService {
|
|
|
if (ud.assertEmptyQueryResult()) {
|
|
|
throw new StatusException("没有数据权限");
|
|
|
}
|
|
|
- Course course = courseService.getCourse(user.getRootOrgId(), paper.getCourse().getCode());
|
|
|
+
|
|
|
+
|
|
|
+ String courseNo = paper.getCourseNo();
|
|
|
+
|
|
|
+ Course course = courseService.getCourse(user.getRootOrgId(), courseNo);
|
|
|
if(ud.assertNeedQueryRefIds()&&!ud.stringRefIds().contains(Long.valueOf(course.getId()))) {
|
|
|
throw new StatusException("没有数据权限");
|
|
|
}
|
|
|
-
|
|
|
- String courseNo = paper.getCourseNo();
|
|
|
+
|
|
|
WordprocessingMLPackage wordMLPackage;
|
|
|
WordprocessingMLPackage tmpWordMlPackage;
|
|
|
|