|
@@ -1535,10 +1535,8 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
List<Object> statisticsTempList = excelMap.get(i);
|
|
|
for (int y = 0; y < Objects.requireNonNull(statisticsTempList).size(); y++) {
|
|
|
StatisticsImportDto statisticsImportDto = (StatisticsImportDto) statisticsTempList.get(y);
|
|
|
-// SysOrg collegeOrg = this.validSysOrgExists(collegeOrgMap, statisticsImportDto.getCollegeName(), sysUser.getSchoolId(), OrgTypeEnum.COLLEGE, excelErrorTemp, (y + 1), (i + 1), "开课学院");
|
|
|
-// SysOrg teachingRoomOrg = this.validSysOrgExists(teachingRoomMap, statisticsImportDto.getTeachingRoomName(), sysUser.getSchoolId(), OrgTypeEnum.TEACHING_ROOM, excelErrorTemp, (y + 1), (i + 1), "开课部门");
|
|
|
- SysOrg collegeOrg = null;
|
|
|
- SysOrg teachingRoomOrg = null;
|
|
|
+ SysOrg collegeOrg = this.validSysOrgExists(collegeOrgMap, statisticsImportDto.getCollegeName(), sysUser.getSchoolId(), excelErrorTemp, (y + 1), (i + 1), "开课学院");
|
|
|
+ SysOrg teachingRoomOrg = this.validSysOrgExists(teachingRoomMap, statisticsImportDto.getTeachingRoomName(), sysUser.getSchoolId(), excelErrorTemp, (y + 1), (i + 1), "开课部门");
|
|
|
BasicCourse basicCourse = this.validBasicCourseExists(courseMap, statisticsImportDto.getCourseName(), sysUser.getSchoolId(), statisticsImportDto.getCourseCode(), excelErrorTemp, (y + 1), (i + 1));
|
|
|
String teacherName = statisticsImportDto.getTeacherName();
|
|
|
String clazzNames = statisticsImportDto.getClazzName();
|
|
@@ -1988,7 +1986,6 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
* @param orgMap 机构map
|
|
|
* @param key 机构名称
|
|
|
* @param schoolId 学校id
|
|
|
- * @param orgTypeEnum 机构类型
|
|
|
* @param excelErrorTemp 错误信息
|
|
|
* @param row 行
|
|
|
* @param sheet 区
|
|
@@ -1998,7 +1995,6 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
private SysOrg validSysOrgExists(Map<String, SysOrg> orgMap,
|
|
|
String key,
|
|
|
Long schoolId,
|
|
|
- OrgTypeEnum orgTypeEnum,
|
|
|
List<ExcelError> excelErrorTemp,
|
|
|
int row,
|
|
|
int sheet,
|
|
@@ -2008,7 +2004,6 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
QueryWrapper<SysOrg> sysOrgQueryWrapper = new QueryWrapper<>();
|
|
|
sysOrgQueryWrapper.lambda().eq(SysOrg::getSchoolId, schoolId)
|
|
|
.eq(SysOrg::getName, key)
|
|
|
- .eq(SysOrg::getType, orgTypeEnum)
|
|
|
.eq(SysOrg::getEnable, true);
|
|
|
sysOrg = sysOrgService.getOne(sysOrgQueryWrapper);
|
|
|
} else {
|