|
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.google.gson.Gson;
|
|
import com.google.gson.Gson;
|
|
import com.qmth.themis.business.cache.bean.ExamCourseCacheBean;
|
|
import com.qmth.themis.business.cache.bean.ExamCourseCacheBean;
|
|
import com.qmth.themis.business.constant.SystemConstant;
|
|
import com.qmth.themis.business.constant.SystemConstant;
|
|
|
|
+import com.qmth.themis.business.dao.*;
|
|
import com.qmth.themis.business.dto.ExamStudentImportDto;
|
|
import com.qmth.themis.business.dto.ExamStudentImportDto;
|
|
import com.qmth.themis.business.dto.RoomCodeImportDto;
|
|
import com.qmth.themis.business.dto.RoomCodeImportDto;
|
|
import com.qmth.themis.business.entity.*;
|
|
import com.qmth.themis.business.entity.*;
|
|
@@ -50,10 +51,25 @@ public class TempleteLogicServiceImpl implements TempleteLogicService {
|
|
TBUserService tbUserService;
|
|
TBUserService tbUserService;
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
- TBUserRoleService tbUserRoleService;
|
|
|
|
|
|
+ TEExamCourseService teExamCourseService;
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
- TEExamCourseService teExamCourseService;
|
|
|
|
|
|
+ TEStudentMapper teStudentMapper;
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ TEExamStudentMapper teExamStudentMapper;
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ TBExamInvigilateUserMapper tbExamInvigilateUserMapper;
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ TEExamCourseMapper teExamCourseMapper;
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ TBUserMapper tbUserMapper;
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ TBUserRoleMapper tbUserRoleMapper;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 考生导入逻辑
|
|
* 考生导入逻辑
|
|
@@ -92,7 +108,7 @@ public class TempleteLogicServiceImpl implements TempleteLogicService {
|
|
teExamCourses.add(teExamCourse);
|
|
teExamCourses.add(teExamCourse);
|
|
});
|
|
});
|
|
if (teExamCourses.size() > 0) {
|
|
if (teExamCourses.size() > 0) {
|
|
- teExamCourseService.saveBatch(teExamCourses);
|
|
|
|
|
|
+ teExamCourseMapper.insertBatch(teExamCourses);
|
|
}
|
|
}
|
|
TEExamActivity teExamActivity = null;
|
|
TEExamActivity teExamActivity = null;
|
|
ExamModeEnum modeEnum = ExamModeEnum.valueOf(String.valueOf(map.get("mode")));
|
|
ExamModeEnum modeEnum = ExamModeEnum.valueOf(String.valueOf(map.get("mode")));
|
|
@@ -186,8 +202,8 @@ public class TempleteLogicServiceImpl implements TempleteLogicService {
|
|
max = size;
|
|
max = size;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- teStudentService.saveOrUpdateBatch(teStudentList);
|
|
|
|
- teExamStudentService.saveOrUpdateBatch(teExamStudentList);
|
|
|
|
|
|
+ teStudentMapper.insertOrUpdateBath(teStudentList);
|
|
|
|
+ teExamStudentMapper.insertOrUpdateBath(teExamStudentList);
|
|
}
|
|
}
|
|
map.put("line", line);
|
|
map.put("line", line);
|
|
//考场创建
|
|
//考场创建
|
|
@@ -203,7 +219,7 @@ public class TempleteLogicServiceImpl implements TempleteLogicService {
|
|
count.getAndIncrement();
|
|
count.getAndIncrement();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- tbExamInvigilateUserService.saveOrUpdateBatch(tbExamInvigilateUserList);
|
|
|
|
|
|
+ tbExamInvigilateUserMapper.insertOrUpdateBath(tbExamInvigilateUserList);
|
|
if (count.get() > 0) {
|
|
if (count.get() > 0) {
|
|
txtList.add(DateUtil.format(new Date(), Constants.DEFAULT_DATE_PATTERN) + "->创建了" + count + "条考场数据");
|
|
txtList.add(DateUtil.format(new Date(), Constants.DEFAULT_DATE_PATTERN) + "->创建了" + count + "条考场数据");
|
|
}
|
|
}
|
|
@@ -276,9 +292,9 @@ public class TempleteLogicServiceImpl implements TempleteLogicService {
|
|
.in(TBExamInvigilateUser::getRoomName, roomNameSet);
|
|
.in(TBExamInvigilateUser::getRoomName, roomNameSet);
|
|
tbExamInvigilateUserService.remove(wrapper);
|
|
tbExamInvigilateUserService.remove(wrapper);
|
|
|
|
|
|
- tbUserService.saveOrUpdateBatch(tbUserList);
|
|
|
|
- tbUserRoleService.saveOrUpdateBatch(tbUserRoleList);
|
|
|
|
- tbExamInvigilateUserService.saveOrUpdateBatch(tbExamInvigilateUserList);
|
|
|
|
|
|
+ tbUserMapper.insertOrUpdateBath(tbUserList);
|
|
|
|
+ tbUserRoleMapper.insertOrUpdateBath(tbUserRoleList);
|
|
|
|
+ tbExamInvigilateUserMapper.insertOrUpdateBath(tbExamInvigilateUserList);
|
|
map.put("line", line);
|
|
map.put("line", line);
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|