|
|
|
@ -213,9 +213,9 @@ public class ClassScoreServiceImpl implements ClassScoreService {
|
|
|
|
|
* @Date 2023/11/27
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public void importExcel(HttpServletResponse response, String schoolId) {
|
|
|
|
|
public void importExcel(HttpServletResponse response, String classId) {
|
|
|
|
|
UserExample userTableExample = new UserExample();
|
|
|
|
|
userTableExample.createCriteria().andSchoolIdEqualTo(schoolId).andRoleIdEqualTo(4);
|
|
|
|
|
userTableExample.createCriteria().andClassIdEqualTo(classId).andRoleIdEqualTo(4);
|
|
|
|
|
List<User> userTables = userMapper.selectByExample(userTableExample);
|
|
|
|
|
List<UserDto> userDtoList = new ArrayList<>();
|
|
|
|
|
for (User userTable : userTables) {
|
|
|
|
@ -224,10 +224,10 @@ public class ClassScoreServiceImpl implements ClassScoreService {
|
|
|
|
|
Flow flow = flowMapper.selectByPrimaryKey(userTable.getUserid());
|
|
|
|
|
String flowId = flow.getFlowId();
|
|
|
|
|
TrainingReportExample trainingReportExample = new TrainingReportExample();
|
|
|
|
|
trainingReportExample.createCriteria().andFlowIdEqualTo(flowId).andSchoolIdEqualTo(schoolId);
|
|
|
|
|
trainingReportExample.createCriteria().andFlowIdEqualTo(flowId).andStepEqualTo(Constant.TZBG);
|
|
|
|
|
List<TrainingReport> trainingReports = reportMapper.selectByExample(trainingReportExample);
|
|
|
|
|
PerformanceScoreExample performanceScoreExample = new PerformanceScoreExample();
|
|
|
|
|
performanceScoreExample.createCriteria().andFlowIdEqualTo(flowId).andSchoolIdEqualTo(schoolId);
|
|
|
|
|
performanceScoreExample.createCriteria().andFlowIdEqualTo(flowId).andClassIdEqualTo(classId);
|
|
|
|
|
List<PerformanceScore> performanceScores = performanceScoreMapper.selectByExample(performanceScoreExample);
|
|
|
|
|
if (performanceScores.isEmpty()) {
|
|
|
|
|
continue;
|
|
|
|
|