店铺信息获取bug修复

This commit is contained in:
Jack 2026-01-06 17:29:13 +08:00
parent b7963b1972
commit 45d4d9905d

View File

@ -272,13 +272,9 @@ public class ShopStoreBaseServiceImpl extends BaseServiceImpl<ShopStoreBaseMappe
Integer store_grade_id = Convert.toInt(s.get("store_grade_id"));
Optional<ShopStoreInfo> shopStoreInfos = store_info_rows.stream().filter(r -> ObjectUtil.equal(r.getStore_id(), store_id)).findFirst();
if (shopStoreInfos.isPresent()) {
if (shopStoreInfos.isPresent()) { // 匹配到店铺信息
ShopStoreInfo shopStoreInfo = shopStoreInfos.orElseGet(ShopStoreInfo::new);
Map map = Convert.toMap(Object.class, Object.class, shopStoreInfo);
// 店铺是否自配送
// s.put("is_delivery_self", s.getOrDefault("is_delivery_self", CommonConstant.Disable2));
// // 店铺内部配送费
// s.put("shopping_fee_inner", s.getOrDefault("shopping_fee_inner", 0));
s.putAll(map);
}