Commit 28133348 authored by licc's avatar licc

优化方案查询

parent 2d0cf026
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
#{id} #{id}
</foreach> </foreach>
</if> </if>
order by lowest_mark desc order by major_name,lowest_mark desc
limit #{number} limit #{number}
</where> </where>
</select> </select>
......
...@@ -241,11 +241,11 @@ public class SchemeServiceImpl extends ServiceImpl<SchemeMapper, SchemeInfo> imp ...@@ -241,11 +241,11 @@ public class SchemeServiceImpl extends ServiceImpl<SchemeMapper, SchemeInfo> imp
list = getVolunteerList(list, totalResult); list = getVolunteerList(list, totalResult);
} }
//6保存用户方案记录、志愿之间的关联关系,扣减查询次数 // //6保存用户方案记录、志愿之间的关联关系,扣减查询次数
boolean bool = volunteerManager.saveUserVolunteer(user, list, scoreInfo, queryVo.getBigMajorNames()); // boolean bool = volunteerManager.saveUserVolunteer(user, list, scoreInfo, queryVo.getBigMajorNames());
if (!bool) { // if (!bool) {
return R.error("保存方案查询记录失败!"); // return R.error("保存方案查询记录失败!");
} // }
//排序 //排序
list.sort(Comparator.comparing(Volunteer::getLowestMark).reversed()); list.sort(Comparator.comparing(Volunteer::getLowestMark).reversed());
......
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