|
@@ -129,6 +129,8 @@ public class ExamSubjectScoreEnterServiceImpl extends MPJBaseServiceImpl<ExamSub
|
|
|
examSubjectScoreEnter.setCreateDate(new Date());
|
|
examSubjectScoreEnter.setCreateDate(new Date());
|
|
|
String classIds = dto.getClassIds().toString().replace("[", "").replace("]", "").replace(" ", "");
|
|
String classIds = dto.getClassIds().toString().replace("[", "").replace("]", "").replace(" ", "");
|
|
|
examSubjectScoreEnter.setClassIds(classIds);
|
|
examSubjectScoreEnter.setClassIds(classIds);
|
|
|
|
|
+ BaseCourseSubject courseSubject = courseSubjectService.getById(examSubjectScoreEnter.getCourseSubjectId());
|
|
|
|
|
+ examSubjectScoreEnter.setCoursename(courseSubject.getName());
|
|
|
boolean isSuccess = this.save(examSubjectScoreEnter);
|
|
boolean isSuccess = this.save(examSubjectScoreEnter);
|
|
|
List<User> userList = userService.list(
|
|
List<User> userList = userService.list(
|
|
|
new MPJLambdaWrapper<User>()
|
|
new MPJLambdaWrapper<User>()
|
|
@@ -147,6 +149,9 @@ public class ExamSubjectScoreEnterServiceImpl extends MPJBaseServiceImpl<ExamSub
|
|
|
setCreateDate(new Date());
|
|
setCreateDate(new Date());
|
|
|
setExamSubjectScoreEnterId(examSubjectScoreEnter.getId());
|
|
setExamSubjectScoreEnterId(examSubjectScoreEnter.getId());
|
|
|
setUserId(importVo.getId());
|
|
setUserId(importVo.getId());
|
|
|
|
|
+ setSemesterId(examSubjectScoreEnter.getSemesterId());
|
|
|
|
|
+ setCourseSubjectId(examSubjectScoreEnter.getCourseSubjectId());
|
|
|
|
|
+ setCoursename(examSubjectScoreEnter.getCoursename());
|
|
|
}}
|
|
}}
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
@@ -295,7 +300,7 @@ public class ExamSubjectScoreEnterServiceImpl extends MPJBaseServiceImpl<ExamSub
|
|
|
cellStyle2.setFont(font); // 将字体应用到样式
|
|
cellStyle2.setFont(font); // 将字体应用到样式
|
|
|
cellStyle2.setVerticalAlignment(VerticalAlignment.CENTER);
|
|
cellStyle2.setVerticalAlignment(VerticalAlignment.CENTER);
|
|
|
cellStyle2.setAlignment(HorizontalAlignment.CENTER);
|
|
cellStyle2.setAlignment(HorizontalAlignment.CENTER);
|
|
|
- cellStyle2.setFillBackgroundColor(IndexedColors.YELLOW.getIndex());
|
|
|
|
|
|
|
+ cellStyle2.setFillForegroundColor(IndexedColors.YELLOW.getIndex());
|
|
|
|
|
|
|
|
|
|
|
|
|
Row row1 = sheet.createRow(rowNumber);
|
|
Row row1 = sheet.createRow(rowNumber);
|