rev:修复fifo分配规则浅位优先
This commit is contained in:
@@ -61,7 +61,7 @@ public class FIFORuleHandler extends Decisioner<StructattrVechielDto, JSONObject
|
|||||||
, "stor_code", param.getString("stor_code")
|
, "stor_code", param.getString("stor_code")
|
||||||
, "plan_qty", plan_qty
|
, "plan_qty", plan_qty
|
||||||
, "is_lock", "false"
|
, "is_lock", "false"
|
||||||
, "order_by", "ABS(qty-#{plan_qty}) asc,update_time asc")
|
, "order_by","block_num asc,ABS(qty-#{plan_qty}) asc,update_time asc")
|
||||||
);
|
);
|
||||||
int finalPlan_qty = 0;
|
int finalPlan_qty = 0;
|
||||||
// vechielDtos.sort(Comparator.comparingInt(o -> (o.getQty().intValue() - finalPlan_qty)));
|
// vechielDtos.sort(Comparator.comparingInt(o -> (o.getQty().intValue() - finalPlan_qty)));
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ public class NearbyRuleHandler extends Decisioner<StIvtStructattr, JSONObject> {
|
|||||||
}
|
}
|
||||||
List<StIvtStructattr> before = list.subList(0, list.size()>10?10:list.size());
|
List<StIvtStructattr> before = list.subList(0, list.size()>10?10:list.size());
|
||||||
log.info("就近分配前:"+ before);
|
log.info("就近分配前:"+ before);
|
||||||
list.sort(Comparator.comparingInt(i -> i.getRow_num()+i.getCol_num()+i.getLayer_num()+i.getBlock_num()));
|
list.sort(Comparator.comparingInt(i -> i.getRow_num()+i.getCol_num()+i.getLayer_num()));
|
||||||
//就近分配区分出库还是入库策略
|
//就近分配区分出库还是入库策略
|
||||||
List<StIvtStructattr> subList = list.subList(0, list.size()>10?10:list.size());
|
List<StIvtStructattr> subList = list.subList(0, list.size()>10?10:list.size());
|
||||||
log.info("就近分配结果:"+ subList);
|
log.info("就近分配结果:"+ subList);
|
||||||
|
|||||||
Reference in New Issue
Block a user