no message
parent
67f8506fae
commit
836c951189
|
|
@ -624,9 +624,9 @@ public class AllocateProcessor {
|
|||
// 1. 总分高优先
|
||||
.comparing(InventoryScore::getTotalScore).reversed()
|
||||
// 2. 完全匹配优先(这是关键业务逻辑)
|
||||
.thenComparing(InventoryScore::isPerfectMatch).reversed()
|
||||
.thenComparing(Comparator.comparing(InventoryScore::isPerfectMatch).reversed())
|
||||
// 3. 匹配度高的优先
|
||||
.thenComparing(InventoryScore::getMatchScore, Comparator.reverseOrder())
|
||||
//.thenComparing(Comparator.comparing(InventoryScore::getMatchScore).reversed())
|
||||
// 4. 移位次数少的优先
|
||||
.thenComparingInt(score -> score.getMovePoints().size()))
|
||||
.toList();
|
||||
|
|
|
|||
Loading…
Reference in New Issue