Browse Source

Merge branch 'dev/2024/0408/update-product' of Harper/feifan-backend-zx-business into master

过滤店铺只能选择自己的运费模板
Yangzw 1 year ago
parent
commit
270ced6013

+ 4 - 1
feifan-module-mall/feifan-module-trade-biz/src/main/java/cn/newfeifan/mall/module/trade/service/delivery/DeliveryExpressTemplateServiceImpl.java

@@ -16,6 +16,7 @@ import cn.newfeifan.mall.module.trade.dal.mysql.delivery.DeliveryExpressTemplate
 import cn.newfeifan.mall.module.trade.dal.mysql.delivery.DeliveryExpressTemplateMapper;
 import cn.newfeifan.mall.module.trade.service.delivery.bo.DeliveryExpressTemplateRespBO;
 import com.alibaba.fastjson.JSONObject;
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
@@ -205,7 +206,9 @@ public class DeliveryExpressTemplateServiceImpl implements DeliveryExpressTempla
 
     @Override
     public List<DeliveryExpressTemplateDO> getDeliveryExpressTemplateList() {
-        return expressTemplateMapper.selectList();
+        ShopBO shop = getShop();
+        return expressTemplateMapper.selectList(new LambdaQueryWrapper<DeliveryExpressTemplateDO>()
+                .eq(DeliveryExpressTemplateDO::getShopId,shop.getShopId()));
     }
 
     @Override