Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd_school
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqi
dd_school
Commits
a547e428
Commit
a547e428
authored
Aug 08, 2023
by
baochunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#G:公众号选课修改字典类型
parent
c7994ca1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
19 deletions
+23
-19
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/curricula/StudentScoreServiceImpl.java
+23
-19
No files found.
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/curricula/StudentScoreServiceImpl.java
View file @
a547e428
...
@@ -245,27 +245,27 @@ public class StudentScoreServiceImpl extends ServiceImpl<StudentScoreMapper, Sch
...
@@ -245,27 +245,27 @@ public class StudentScoreServiceImpl extends ServiceImpl<StudentScoreMapper, Sch
}
}
private
Map
<
String
,
String
>
typeMap
=
new
HashMap
<
String
,
String
>(){{
private
Map
<
String
,
String
>
typeMap
=
new
HashMap
<
String
,
String
>(){{
this
.
put
(
"语
文
"
,
"language"
);
this
.
put
(
"语"
,
"language"
);
this
.
put
(
"数
学
"
,
"math"
);
this
.
put
(
"数"
,
"math"
);
this
.
put
(
"英
语
"
,
"english"
);
this
.
put
(
"英"
,
"english"
);
this
.
put
(
"政
治
"
,
"politics"
);
this
.
put
(
"政"
,
"politics"
);
this
.
put
(
"地
理
"
,
"geography"
);
this
.
put
(
"地"
,
"geography"
);
this
.
put
(
"历
史
"
,
"history"
);
this
.
put
(
"历"
,
"history"
);
this
.
put
(
"物
理
"
,
"physics"
);
this
.
put
(
"物"
,
"physics"
);
this
.
put
(
"化
学
"
,
"chemistry"
);
this
.
put
(
"化"
,
"chemistry"
);
this
.
put
(
"生
物
"
,
"biology"
);
this
.
put
(
"生"
,
"biology"
);
}};
}};
//排名
//排名
private
Map
<
String
,
String
>
ranKingMap
=
new
HashMap
<
String
,
String
>(){{
private
Map
<
String
,
String
>
ranKingMap
=
new
HashMap
<
String
,
String
>(){{
this
.
put
(
"语
文
"
,
"ywRanking"
);
this
.
put
(
"语"
,
"ywRanking"
);
this
.
put
(
"数
学
"
,
"sxRanking"
);
this
.
put
(
"数"
,
"sxRanking"
);
this
.
put
(
"英
语
"
,
"yyRanking"
);
this
.
put
(
"英"
,
"yyRanking"
);
this
.
put
(
"政
治
"
,
"zzRanking"
);
this
.
put
(
"政"
,
"zzRanking"
);
this
.
put
(
"地
理
"
,
"dlRanking"
);
this
.
put
(
"地"
,
"dlRanking"
);
this
.
put
(
"历
史
"
,
"lsRanking"
);
this
.
put
(
"历"
,
"lsRanking"
);
this
.
put
(
"物
理
"
,
"wlRanking"
);
this
.
put
(
"物"
,
"wlRanking"
);
this
.
put
(
"化
学
"
,
"hxRanking"
);
this
.
put
(
"化"
,
"hxRanking"
);
this
.
put
(
"生
物
"
,
"swRanking"
);
this
.
put
(
"生"
,
"swRanking"
);
}};
}};
...
@@ -288,7 +288,11 @@ public class StudentScoreServiceImpl extends ServiceImpl<StudentScoreMapper, Sch
...
@@ -288,7 +288,11 @@ public class StudentScoreServiceImpl extends ServiceImpl<StudentScoreMapper, Sch
SchoolClass
schoolClass
=
schoolClassMapper
.
selectById
(
info
.
getClassId
());
SchoolClass
schoolClass
=
schoolClassMapper
.
selectById
(
info
.
getClassId
());
//对比课程中文名
//对比课程中文名
String
section_type
=
dictDataService
.
selectDictLabel
(
"section_type"
,
selectedCourse
);
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
);
List
<
SchoolStudentScoreVo
>
schoolStudentScoreVos
=
this
.
selectStudentScoreList
(
studentId
);
for
(
SchoolStudentScoreVo
data
:
schoolStudentScoreVos
)
{
for
(
SchoolStudentScoreVo
data
:
schoolStudentScoreVos
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment