fix: 【mall】找不到所在区域的运费收费模板和运费免费模板时(即:未配置所在区域的运费模板),不把模板对象put进result中。

Signed-off-by: 宝二爷 <zhangjianbao017@163.com>
This commit is contained in:
宝二爷 2025-10-11 16:28:30 +00:00 committed by Gitee
parent 8156e44f31
commit c0590e823d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -85,7 +85,8 @@ public interface DeliveryExpressTemplateConvert {
.setChargeMode(template.getChargeMode())
.setCharge(convertTemplateCharge(findFirst(templateIdChargeMap.get(template.getId()), charge -> charge.getAreaIds().contains(areaId))))
.setFree(convertTemplateFree(findFirst(templateIdFreeMap.get(template.getId()), free -> free.getAreaIds().contains(areaId))));
result.put(template.getId(), bo);
if (bo.getCharge() != null || bo.getFree() != null)
result.put(template.getId(), bo);
});
return result;
}