Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
志
志愿填报
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
单欣鑫
志愿填报
Commits
2d022282
Commit
2d022282
authored
Jun 27, 2025
by
Wzp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加分数限制/api/school/matchSchoolList
parent
2a5c988d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
MallSchoolServiceImpl.java
...va/com/ruoyi/mall/service/impl/MallSchoolServiceImpl.java
+14
-1
No files found.
ruoyi-system/src/main/java/com/ruoyi/mall/service/impl/MallSchoolServiceImpl.java
View file @
2d022282
...
@@ -1142,6 +1142,16 @@ public class MallSchoolServiceImpl implements IMallSchoolService {
...
@@ -1142,6 +1142,16 @@ public class MallSchoolServiceImpl implements IMallSchoolService {
// List<MallSchoolTag> allTag = mallSchoolTagMapper.selectTagList();
// List<MallSchoolTag> allTag = mallSchoolTagMapper.selectTagList();
// 学校录取率计算
// 学校录取率计算
try
{
try
{
boolean
flag
=
false
;
if
(
subjectType
.
equals
(
"0"
)
&&
majorScore
>=
193
&&
cultureScore
>=
331
){
flag
=
true
;
}
else
if
(
subjectType
.
equals
(
"1"
)
&&
majorScore
>=
193
&&
cultureScore
>=
328
){
flag
=
true
;
}
boolean
finalFlag
=
flag
;
CountDownLatch
countDownLatch
=
new
CountDownLatch
(
schoolVOS
.
size
());
CountDownLatch
countDownLatch
=
new
CountDownLatch
(
schoolVOS
.
size
());
for
(
SchoolVO
schoolVO
:
schoolVOS
)
{
for
(
SchoolVO
schoolVO
:
schoolVOS
)
{
...
@@ -1161,7 +1171,7 @@ public class MallSchoolServiceImpl implements IMallSchoolService {
...
@@ -1161,7 +1171,7 @@ public class MallSchoolServiceImpl implements IMallSchoolService {
result
.
put
(
"acceptRate"
,
BigDecimal
.
ZERO
);
result
.
put
(
"acceptRate"
,
BigDecimal
.
ZERO
);
result
.
put
(
"rateType"
,
-
2
);
result
.
put
(
"rateType"
,
-
2
);
}
}
}
else
{
}
else
if
(
finalFlag
)
{
// 本科
// 本科
mallSchoolAccept
=
mallSchoolAcceptMapper
.
selectMinReferenceBySchoolId
(
schoolVO
.
getSchoolId
(),
batchId
,
subjectType
);
mallSchoolAccept
=
mallSchoolAcceptMapper
.
selectMinReferenceBySchoolId
(
schoolVO
.
getSchoolId
(),
batchId
,
subjectType
);
// 计算
// 计算
...
@@ -1171,6 +1181,9 @@ public class MallSchoolServiceImpl implements IMallSchoolService {
...
@@ -1171,6 +1181,9 @@ public class MallSchoolServiceImpl implements IMallSchoolService {
result
.
put
(
"acceptRate"
,
"0"
);
result
.
put
(
"acceptRate"
,
"0"
);
result
.
put
(
"rateType"
,
-
2
);
result
.
put
(
"rateType"
,
-
2
);
}
}
}
else
{
result
.
put
(
"acceptRate"
,
"0"
);
result
.
put
(
"rateType"
,
-
2
);
}
}
...
...
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