Commit a547e428 by baochunxin

#G:公众号选课修改字典类型

parent c7994ca1
......@@ -245,27 +245,27 @@ public class StudentScoreServiceImpl extends ServiceImpl<StudentScoreMapper, Sch
}
private Map<String,String> typeMap = new HashMap<String,String>(){{
this.put("语","language");
this.put("数","math");
this.put("英","english");
this.put("政","politics");
this.put("地","geography");
this.put("历","history");
this.put("物","physics");
this.put("化","chemistry");
this.put("生","biology");
this.put("语","language");
this.put("数","math");
this.put("英","english");
this.put("政","politics");
this.put("地","geography");
this.put("历","history");
this.put("物","physics");
this.put("化","chemistry");
this.put("生","biology");
}};
//排名
private Map<String,String> ranKingMap = new HashMap<String,String>(){{
this.put("语","ywRanking");
this.put("数","sxRanking");
this.put("英","yyRanking");
this.put("政","zzRanking");
this.put("地","dlRanking");
this.put("历","lsRanking");
this.put("物","wlRanking");
this.put("化","hxRanking");
this.put("生","swRanking");
this.put("语","ywRanking");
this.put("数","sxRanking");
this.put("英","yyRanking");
this.put("政","zzRanking");
this.put("地","dlRanking");
this.put("历","lsRanking");
this.put("物","wlRanking");
this.put("化","hxRanking");
this.put("生","swRanking");
}};
......@@ -288,7 +288,11 @@ public class StudentScoreServiceImpl extends ServiceImpl<StudentScoreMapper, Sch
SchoolClass schoolClass = schoolClassMapper.selectById(info.getClassId());
//对比课程中文名
String section_type = dictDataService.selectDictLabel("section_type" , selectedCourse);
String[] split = section_type.split("\\+");
String[] split = new String[3];
split[0] = section_type.substring(0,1);
split[1] = section_type.substring(1,2);
split[2] = section_type.substring(2,3);
//获取班级成绩
List<SchoolStudentScoreVo> schoolStudentScoreVos = this.selectStudentScoreList(studentId);
for (SchoolStudentScoreVo data : schoolStudentScoreVos) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment