admin
2024-10-16 62a447d89331aee1feae7724c7616aa1bb2cfe79
fanli/src/main/java/com/yeshi/fanli/service/inter/brand/BrandClassShopService.java
@@ -1,100 +1,133 @@
package com.yeshi.fanli.service.inter.brand;
import java.util.List;
import org.springframework.web.multipart.MultipartFile;
import com.yeshi.fanli.entity.brand.BrandClassShop;
import com.yeshi.fanli.exception.brand.BrandClassShopException;
import net.sf.json.JSONObject;
/**
 * 品牌店铺服务
 *
 * @author Administrator
 *
 */
public interface BrandClassShopService {
   /**
    * 是否存在
    * @param list
    * @return
    */
   public List<BrandClassShop> getExistByShopIds(List<Long> list);
   /**
    * 添加店铺信息
    * @param cid
    * @param list
    * @throws BrandClassShopException
    */
   public String saveShopInfo(Long cid, List<Long> list) throws BrandClassShopException;
   /**
    * 查询列表
    * @param start
    * @param count
    * @param key
    * @param cid
    * @param state
    * @return
    */
   public List<BrandClassShop> listQuery(long start, int count, String key, Long cid, Integer state);
   public long countQuery(String key, Long cid, Integer state);
   /**
    * 更新店铺信息
    * @param file
    * @param id
    * @param cid
    * @param shopName
    * @param state
    * @throws BrandClassShopException
    */
   public void changeShopInfo(MultipartFile file, Long id, Long cid, String shopName, Integer state, Integer top,String key)
         throws BrandClassShopException;
   /**
    * 批量删除
    * @param list
    * @return
    */
   public void deleteBatchByPrimaryKey(List<Long> list);
   /*
    * 排序
    */
   public void updateOrder(Long id, Integer moveType) throws BrandClassShopException, Exception;
   /**
    * 前端查询并缓存
    * @param page
    * @param cid
    * @return
    */
   public JSONObject listEffectiveCache(int page, Long cid);
   /**
    * 点击次数
    * @param shopId
    */
   public void addClick(Long shopId);
   /**
    * 根据分类id进行删除
    * @param list
    */
   public void deleteBatchByClassId(List<Long> list);
   /**
    * 更新品牌商品
    */
   public void updateShopGoods();
}
package com.yeshi.fanli.service.inter.brand;
import java.util.List;
import com.yeshi.fanli.entity.SystemEnum;
import org.springframework.web.multipart.MultipartFile;
import com.yeshi.fanli.entity.brand.BrandClassShop;
import com.yeshi.common.entity.taobao.TaoBaoShop;
import com.yeshi.fanli.exception.brand.BrandClassShopException;
import com.yeshi.fanli.vo.brand.TaoBaoShopVO;
import net.sf.json.JSONObject;
/**
 * 品牌店铺服务
 *
 * @author Administrator
 *
 */
public interface BrandClassShopService {
   /**
    * 是否存在
    * @param list
    * @return
    */
   public List<BrandClassShop> getExistByShopIds(List<Long> list);
   /**
    * 添加店铺信息
    * @param cid
    * @param list
    * @throws BrandClassShopException
    */
   public String saveShopInfo(Long cid, List<Long> list) throws BrandClassShopException;
   /**
    * 查询列表
    * @param start
    * @param count
    * @param key
    * @param cid
    * @param state
    * @return
    */
   public List<BrandClassShop> listQuery(long start, int count, String key, Long cid, Integer state);
   public long countQuery(String key, Long cid, Integer state);
   /**
    * 更新店铺信息
    * @param file
    * @param id
    * @param cid
    * @param shopName
    * @param state
    * @throws BrandClassShopException
    */
   public void changeShopInfo(MultipartFile file, Long id, Long cid, String shopName, Integer state, Integer top,String key)
         throws BrandClassShopException;
   /**
    * 批量删除
    * @param list
    * @return
    */
   public void deleteBatchByPrimaryKey(List<Long> list);
   /*
    * 排序
    */
   public void updateOrder(Long id, Integer moveType) throws BrandClassShopException, Exception;
   /**
    * 前端查询并缓存
    * @param page
    * @param cid
    * @return
    */
   public JSONObject listEffectiveCache(int page, Long cid,SystemEnum system);
   /**
    * 点击次数
    * @param shopId
    */
   public void addClick(Long shopId);
   /**
    * 根据分类id进行删除
    * @param list
    */
   public void deleteBatchByClassId(List<Long> list);
   /**
    * 更新品牌商品
    */
   public void updateShopGoods();
   /**
    * 店铺列表
    * @param page
    * @param cid
    * @return
    */
   public JSONObject listEffectiveCacheV2(int page, Long cid,String platform,String version,SystemEnum system);
   /**
    *  兼容2.0
    * @param start
    * @param count
    * @param cid
    * @return
    */
   public List<TaoBaoShopVO> listEffectiveShop(long start, int count, Long cid,String platform,String version,SystemEnum system);
   public long countBrandShopinfo(Long cid);
   /**
    * 分类下店铺
    * @param cid
    * @return
    */
   public List<TaoBaoShop> listEffectiveClassShop(Long cid,SystemEnum system);
}