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)
|
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();
|
|
}
|