demand: 柬埔寨快递漏组批次扫描准确性适应修改
committer: heyu
This commit is contained in:
parent
6726c41c00
commit
87b4c2bc1e
@ -4960,14 +4960,19 @@ public class EmisBaseService {
|
|||||||
("24401".equals(waybill.getProductType()) || "24402".equals(waybill.getProductType()));
|
("24401".equals(waybill.getProductType()) || "24402".equals(waybill.getProductType()));
|
||||||
boolean isSpecialCustomsClear = "2".equals(waybill.getCustomsClear()) && "2".equals(waybill.getTransType());
|
boolean isSpecialCustomsClear = "2".equals(waybill.getCustomsClear()) && "2".equals(waybill.getTransType());
|
||||||
|
|
||||||
|
List<Long> filterIds = filterRules.stream().map(EmisTransPlanRule::getId).collect(Collectors.toList());
|
||||||
|
|
||||||
if (isSpecialTransLine || isSpecialCustomsClear) {
|
if (isSpecialTransLine || isSpecialCustomsClear) {
|
||||||
// 移除每个路径的最后一个元素
|
// 移除每个路径的最后一个元素
|
||||||
for (List<EmisTransPlanRule> path : allPaths) {
|
for (List<EmisTransPlanRule> path : allPaths) {
|
||||||
if (!path.isEmpty()) {
|
if (!path.isEmpty()) {
|
||||||
|
EmisTransPlanRule emisTransPlanRule = path.get(path.size() - 1);
|
||||||
|
if(!filterIds.contains(emisTransPlanRule.getId())){
|
||||||
path.remove(path.size() - 1);
|
path.remove(path.size() - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 2. 统计每条路径的匹配度
|
// 2. 统计每条路径的匹配度
|
||||||
Map<List<EmisTransPlanRule>, Integer> pathMatchCountMap = new HashMap<>();
|
Map<List<EmisTransPlanRule>, Integer> pathMatchCountMap = new HashMap<>();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user