Commit e6adcc4d authored by licc's avatar licc

fix

parent 99f1ee24
......@@ -247,16 +247,16 @@ public class SchemeServiceImpl extends ServiceImpl<SchemeMapper, SchemeInfo> imp
}
//6保存用户方案记录、志愿之间的关联关系,扣减查询次数
// R<Integer> bool = volunteerManager.saveUserVolunteer(user, list, scoreInfo, queryVo.getBigMajorNames());
// if (null != bool && bool.getCode() == 500) {
// return R.error(bool.getMessage());
// }
R<Integer> bool = volunteerManager.saveUserVolunteer(user, list, scoreInfo, queryVo.getBigMajorNames());
if (null != bool && bool.getCode() == 500) {
return R.error(bool.getMessage());
}
//排序
list.sort(Comparator.comparing(Volunteer::getLowestMark).reversed());
volunteerVo.setUserId(user.getId());
// assert bool != null;
// volunteerVo.setRecordId(bool.getData());
assert bool != null;
volunteerVo.setRecordId(bool.getData());
volunteerVo.setVolunteers(list);
volunteerVo.setTotal(list.size());
return R.ok(volunteerVo);
......
......@@ -46,9 +46,9 @@ spring:
redis:
database: 0
host: localhost
host: 192.168.110.165
port: 6379
password: root # 密码(默认为空)
password: adm4HYservice$ # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
......
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