wangwei 6 ani în urmă
părinte
comite
8b73834bf1

+ 2 - 1
examcloud-core-basic-service/src/main/java/cn/com/qmth/examcloud/core/basic/service/impl/OrgServiceImpl.java

@@ -200,6 +200,7 @@ public class OrgServiceImpl implements OrgService {
 			orgEntity = new OrgEntity();
 			orgEntity.setRootId(rootId);
 			orgEntity.setParentId(parentId);
+			orgEntity.setCode(code);
 		}
 
 		orgEntity.setName(name);
@@ -293,7 +294,7 @@ public class OrgServiceImpl implements OrgService {
 
 		List<String[]> lineList = null;
 		try {
-			lineList = ExcelReader.readSheetBySax(PathUtil.getCanonicalPath(file), 1, 3);
+			lineList = ExcelReader.readSheetBySax(PathUtil.getCanonicalPath(file), 1, 4);
 		} catch (Exception e) {
 			throw new StatusException("B-100110", "Excel 解析失败");
 		}

+ 1 - 1
examcloud-core-basic-service/src/main/java/cn/com/qmth/examcloud/core/basic/service/impl/SpecialtyServiceImpl.java

@@ -83,7 +83,7 @@ public class SpecialtyServiceImpl implements SpecialtyService {
 	public List<Map<String, Object>> importSpecialty(Long rootOrgId, File file) {
 		List<String[]> lineList = null;
 		try {
-			lineList = ExcelReader.readSheetBySax(PathUtil.getCanonicalPath(file), 1, 3);
+			lineList = ExcelReader.readSheetBySax(PathUtil.getCanonicalPath(file), 1, 2);
 		} catch (Exception e) {
 			throw new StatusException("B-100110", "Excel 解析失败");
 		}