|
|
@@ -139,11 +139,7 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
|
result.setClassList(baseStudentAssessmentClassListVos);
|
|
|
|
|
|
// 获取学生信息
|
|
|
- List<BaseStudentAssessmentStudentRelation> baseStudentAssessmentStudentRelations = assessmentStudentRelationMapper.selectList(
|
|
|
- Wrappers.<BaseStudentAssessmentStudentRelation>query().lambda()
|
|
|
- .eq(BaseStudentAssessmentStudentRelation::getBaseStudentAssessmentInspectionId, result.getId())
|
|
|
- );
|
|
|
- result.setStudentList(baseStudentAssessmentStudentRelations);
|
|
|
+ result.setStudentList(assessmentInspectionMapper.getStudentListByInspectionId(id));
|
|
|
|
|
|
// 获取文件列表
|
|
|
result.setFileInfos(fileService.list(Wrappers.<File>query().lambda().eq(File::getFolderId, result.getFileId())));
|
|
|
@@ -516,9 +512,9 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
|
//同步数据到考核关联学生表
|
|
|
if(baseStudentAssessmentInspection.getAssessmentType() != null
|
|
|
&& baseStudentAssessmentInspection.getAssessmentType().equals("personal")
|
|
|
- && baseStudentAssessmentInspection.getStudentUserIds() != null
|
|
|
- && !baseStudentAssessmentInspection.getStudentUserIds().equals("")){
|
|
|
- String[] studentIds = baseStudentAssessmentInspection.getStudentUserIds().split(",");
|
|
|
+ && baseStudentAssessmentInspection.getPersonalStudentUserIds() != null
|
|
|
+ && !baseStudentAssessmentInspection.getPersonalStudentUserIds().equals("")){
|
|
|
+ String[] studentIds = baseStudentAssessmentInspection.getPersonalStudentUserIds().split(",");
|
|
|
for (String studentId: studentIds) {
|
|
|
assessmentStudentRelationMapper.insert(new BaseStudentAssessmentStudentRelation(){{
|
|
|
MPJLambdaWrapper<BaseStudentSchoolRoll> baseStudentSchoolRollMPJLambdaWrapper = new MPJLambdaWrapper<>();
|
|
|
@@ -571,7 +567,7 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
|
data.put("const3", new JSONObject() {{
|
|
|
put("value", AssessmentTypeEnum.PERSONAL.getValue());
|
|
|
}});
|
|
|
- String[] studentUsers = inspection.getStudentUserIds().split(",");
|
|
|
+ String[] studentUsers = inspection.getPersonalStudentUserIds().split(",");
|
|
|
List<String> studentIds = new ArrayList<>();
|
|
|
for (String studentUser : studentUsers) {
|
|
|
studentIds.add(studentUser.trim());
|