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

committer: heyu
This commit is contained in:
aike 2025-08-04 19:18:09 +08:00
parent 6726c41c00
commit 87b4c2bc1e

View File

@ -4960,11 +4960,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);
}
}
}
}