fix【资源库-成果推荐】任务成果推荐修改
This commit is contained in:
parent
fa41454534
commit
8b70cf3815
|
@ -268,7 +268,7 @@ public class TalentReferralService {
|
|||
public List<Achievements> taskAchievementTalentReferral(Long taskId) {
|
||||
TaskVo task = talentReferralMapper.selectTaskById(taskId);
|
||||
Achievements tCond = new Achievements();
|
||||
tCond.setSourceId(taskId);
|
||||
// tCond.setSourceId(taskId);
|
||||
tCond.setSource("2");
|
||||
tCond.setStatus("1");
|
||||
List<Achievements> taskAchievements = achievementsMapper.selectAchievementsList(tCond);
|
||||
|
@ -294,7 +294,7 @@ public class TalentReferralService {
|
|||
}
|
||||
|
||||
step1Map.forEach((k, v) -> step2Map.merge(k, v, Double::sum));
|
||||
step2Map.keySet().removeIf(step -> Double.compare(step2Map.get(step), 0.0D) > 0);
|
||||
step2Map.keySet().removeIf(step -> Double.compare(step2Map.get(step), 0.0D) <= 0.0D);
|
||||
|
||||
List<Map.Entry<Long, Double>> entryList = new ArrayList<>(step2Map.entrySet());
|
||||
entryList.sort((entry1, entry2) -> Double.compare(entry2.getValue(), entry1.getValue()));
|
||||
|
|
Loading…
Reference in New Issue