|
|
@@ -11,6 +11,7 @@ import cn.hutool.core.util.ObjectUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.github.pagehelper.PageHelper;
|
|
|
import com.fs.common.BeanCopyUtils;
|
|
|
import com.fs.common.annotation.DataSource;
|
|
|
import com.fs.common.constant.LiveKeysConstant;
|
|
|
@@ -1119,6 +1120,20 @@ public class FsStoreProductScrmServiceImpl implements IFsStoreProductScrmService
|
|
|
return fsStoreProductMapper.selectFsStoreProductListQuery(param);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<FsStoreProductListQueryVO> selectFsStoreSeckillProductListQuery(Long storeId) {
|
|
|
+ List<Long> cateIds = fsStoreProductCategoryScrmMapper.selectSeckillCategoryIdsForProduct(storeId);
|
|
|
+ if (cateIds == null || cateIds.isEmpty()) {
|
|
|
+ return new ArrayList<>();
|
|
|
+ }
|
|
|
+ FsStoreProductQueryParam param = new FsStoreProductQueryParam();
|
|
|
+ param.setCateIds(cateIds);
|
|
|
+ param.setIsDisplay(1);
|
|
|
+ param.setStoreId(storeId);
|
|
|
+ PageHelper.startPage(1, 10);
|
|
|
+ return selectFsStoreProductListQuery(param);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public FsStoreProductQueryVO selectFsStoreProductByIdQuery(Long productId,String storeId) {
|
|
|
return fsStoreProductMapper.selectFsStoreProductByIdQuery(productId,storeId,medicalMallConfig);
|