|
|
@@ -98,6 +98,8 @@ public class FsStoreProductScrmServiceImpl implements IFsStoreProductScrmService
|
|
|
|
|
|
@Autowired
|
|
|
private CloudHostProper cloudHostProper;
|
|
|
+ @Autowired
|
|
|
+ private FsStoreProductCategoryScrmMapper fsStoreProductCategoryScrmMapper;
|
|
|
|
|
|
/**
|
|
|
* 查询商品
|
|
|
@@ -690,6 +692,22 @@ public class FsStoreProductScrmServiceImpl implements IFsStoreProductScrmService
|
|
|
public List<FsStoreProductListQueryVO> selectFsStoreProductListQuery(FsStoreProductQueryParam param) {
|
|
|
boolean stores = medicalMallConfig.isStores();
|
|
|
param.setIsStores(stores?1:0);
|
|
|
+ // 蒙一堂特殊产品展示
|
|
|
+ List<Long> cateIds;
|
|
|
+ if("1".equals(param.getProductFlag())){// 家庭应急
|
|
|
+ // fs_store_product_category_scrm
|
|
|
+ FsStoreProductCategoryScrm fsStoreProductCategoryScrm = new FsStoreProductCategoryScrm();
|
|
|
+ fsStoreProductCategoryScrm.setPid(0L);
|
|
|
+ fsStoreProductCategoryScrm.setCateName("家庭应急");
|
|
|
+ cateIds =fsStoreProductCategoryScrmMapper.selectCateIdsByName(fsStoreProductCategoryScrm);
|
|
|
+ if(cateIds!= null && !cateIds.isEmpty()){
|
|
|
+ param.setCateIds(cateIds);
|
|
|
+ }else {
|
|
|
+ // 不让查询出来
|
|
|
+ return new ArrayList<>();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
return fsStoreProductMapper.selectFsStoreProductListQuery(param);
|
|
|
}
|
|
|
|