mirror of
https://gitee.com/zhijiantianya/ruoyi-vue-pro.git
synced 2025-12-26 08:26:44 +08:00
fix: 【mall】找不到所在区域的运费收费模板和运费免费模板时(即:未配置所在区域的运费模板),不把模板对象put进result中。
Signed-off-by: 宝二爷 <zhangjianbao017@163.com>
This commit is contained in:
parent
8156e44f31
commit
c0590e823d
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user