|
@@ -5,6 +5,7 @@ import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.Collections;
|
|
|
import java.util.Comparator;
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -46,16 +47,19 @@ public class ExamCourseDataReportServiceImpl implements ExamCourseDataReportServ
|
|
|
@Transactional
|
|
|
@Override
|
|
|
public void saveExamCourseDataReportList(List<ExamCourseDataReportBean> beans) {
|
|
|
+ Date now=new Date();
|
|
|
List<ExamCourseDataReportEntity> list = new ArrayList<ExamCourseDataReportEntity>();
|
|
|
for (ExamCourseDataReportBean bean : beans) {
|
|
|
ExamCourseDataReportEntity e = new ExamCourseDataReportEntity();
|
|
|
BeanUtils.copyProperties(bean, e);
|
|
|
+ e.setCreationTime(now);
|
|
|
+ e.setUpdateTime(now);
|
|
|
e.setPartitionData(StringUtils.join(bean.getPartitionData().toArray(), ","));
|
|
|
list.add(e);
|
|
|
}
|
|
|
examCourseDataReportRepo.saveAll(list);
|
|
|
}
|
|
|
-
|
|
|
+ @Transactional
|
|
|
@Override
|
|
|
public void deleteByProject(Long projectId, Long rootOrgId) {
|
|
|
examCourseDataReportRepo.deleteByProject(projectId, rootOrgId);
|