mirror of
https://gitee.com/zhijiantianya/ruoyi-vue-pro.git
synced 2025-12-26 08:26:44 +08:00
!1441 fix: 【mall】找不到所在区域的运费收费模板和运费免费模板时(即:未配置所在区域的运费模板),不把模板对象put进result中。
Merge pull request !1441 from 宝二爷/N/A
This commit is contained in:
commit
4ebbe4dd35
@ -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