WANG 6 anos atrás
pai
commit
f5071445bb

+ 3 - 4
examcloud-exchange-outer-service/src/main/java/cn/com/qmth/examcloud/exchange/outer/service/impl/CourseGroupServiceImpl.java

@@ -27,12 +27,11 @@ public class CourseGroupServiceImpl implements CourseGroupService {
 	@Override
 	public List<Course> getCourseList(Long rootOrgId, String courseGroupName) {
 
-		String resoucePath = PathUtil
-				.getResoucePath("course-group/course-group-" + rootOrgId + ".xml");
+		String resoucePath = PathUtil.getResoucePath("course-group/course-group-" + rootOrgId + ".xml");
 		File file = new File(resoucePath);
 
 		XStream xStream = XStreamBuilder.newInstance().build();
-		xStream.allowTypes(new Class[]{CourseGroup.class, Course.class, List.class});
+		xStream.allowTypes(new Class[] { CourseGroup.class, Course.class, List.class });
 		xStream.alias("groups", List.class);
 		xStream.alias("group", CourseGroup.class);
 		xStream.alias("course", Course.class);
@@ -43,7 +42,7 @@ public class CourseGroupServiceImpl implements CourseGroupService {
 			List<CourseGroup> obj = (List<CourseGroup>) xStream.fromXML(file);
 			list = obj;
 		} catch (Exception e) {
-			throw new StatusException("EX-620001", "配置文件错误");
+			throw new StatusException("EX-620001", "配置文件错误", e);
 		}
 
 		for (CourseGroup cur : list) {