yujian
2019-10-21 d085ca89e39b4cda025a9a53d3797fbe8b242ae7
fanli/src/main/java/com/yeshi/fanli/service/inter/brand/BrandInfoService.java
@@ -2,6 +2,8 @@
import java.util.List;
import org.springframework.web.multipart.MultipartFile;
import com.yeshi.fanli.entity.brand.BrandInfo;
import com.yeshi.fanli.exception.brand.BrandClassException;
import com.yeshi.fanli.exception.brand.BrandInfoException;
@@ -22,7 +24,7 @@
    * @throws BrandClassException
    * @throws Exception
    */
   public void saveObject(BrandInfo record) throws BrandInfoException;
   public void saveObject(MultipartFile file, BrandInfo record) throws BrandInfoException;
   
   /**
@@ -41,9 +43,9 @@
    * @param state
    * @return
    */
   public List<BrandInfo> listQuery(long start, int count, String key, Integer state);
   public List<BrandInfo> listQuery(long start, int count, String key, Long cid, Integer state);
   public long countQuery(String key, Integer state);
   public long countQuery(String key, Long cid, Integer state);
   /**
    * 查询品牌返回前端
@@ -71,4 +73,35 @@
    */
   public  List<BrandInfo> listValidBrandInfoCache(Long cid);
   /**
    * 查询分类下品牌
    * @param cid
    * @return
    */
   public List<BrandInfo> listValidByCidToApp(Long cid);
   /**
    * 查询品牌以及对应商品
    * @param start
    * @param count
    * @param cid
    * @return
    */
   public List<BrandInfoVO> listValidToApp(long start, int count, Long cid);
   /**
    * 新增商品或店铺信息
    * @param start
    * @param count
    */
   public void addShopAndGoods(long start, int count);
   public long countValidByCidToApp(Long cid);
   public long countValidByCid(Long cid);
}