no message

main
HUOJIN\92525 2026-02-10 17:14:06 +08:00
parent 67f8506fae
commit 836c951189
1 changed files with 2 additions and 2 deletions

View File

@ -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();