demand: 柬埔寨快递漏组批次扫描准确性适应修改

committer: heyu
This commit is contained in:
aike 2025-08-04 19:22:37 +08:00
parent 3814a1f315
commit 6200b39c3e

View File

@ -4963,11 +4963,16 @@ public class EmisBaseService {
("24401".equals(waybill.getProductType()) || "24402".equals(waybill.getProductType()));
boolean isSpecialCustomsClear = "2".equals(waybill.getCustomsClear()) && "2".equals(waybill.getTransType());
List<Long> filterIds = filterRules.stream().map(EmisTransPlanRule::getId).collect(Collectors.toList());
if (isSpecialTransLine || isSpecialCustomsClear) {
// 移除每个路径的最后一个元素
for (List<EmisTransPlanRule> path : allPaths) {
if (!path.isEmpty()) {
path.remove(path.size() - 1);
EmisTransPlanRule emisTransPlanRule = path.get(path.size() - 1);
if(!filterIds.contains(emisTransPlanRule.getId())){
path.remove(path.size() - 1);
}
}
}
}