rev:入库策略
This commit is contained in:
@@ -33,7 +33,7 @@ public class ExecuteDecisionChainer extends DecisionerChain<List> {
|
||||
List list = transfers;
|
||||
for (String decisionerType : decisionerTypes) {
|
||||
Decisioner decisioner = decisionerMap.get(decisionerType);
|
||||
list = decisioner.handler(transfers, startPatam);
|
||||
list = decisioner.handler(list, startPatam);
|
||||
if (CollectionUtils.isEmpty(list)){
|
||||
throw new BadRequestException("当前策略"+decisioner.strategyConfig.getStrategy_name()+"无可用货位,分配前数量:"+transfers.size());
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ import java.util.stream.Collectors;
|
||||
* @author ZZQ
|
||||
* @Date 2024/7/31 15:19
|
||||
*/
|
||||
//@Service("depthPriority")
|
||||
@Service("depthPriority")
|
||||
public class DepthPriorityHandler extends Decisioner<StIvtStructattr, JSONObject> {
|
||||
//现场1/4排深位
|
||||
@Override
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.nl.wms.decision_manage.handler.decisioner.impl.base;
|
||||
package org.nl.wms.decision_manage.handler.decisioner.impl.diy;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
@@ -79,7 +79,6 @@ public class InventoryRuleHandler extends Decisioner<StIvtStructattr, JSONObject
|
||||
return list;
|
||||
}
|
||||
}
|
||||
list.sort(Comparator.comparingInt(i -> i.getRow_num() + i.getCol_num() + i.getLayer_num() + i.getBlock_num()));
|
||||
return list;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user