| | |
| | | package com.yeshi.fanli.service.inter.brand;
|
| | |
|
| | | import java.util.Date;
|
| | | 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;
|
| | | import com.yeshi.fanli.vo.brand.BrandInfoVO;
|
| | |
|
| | | /**
|
| | | * 品牌信息
|
| | | * |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | public interface BrandInfoService {
|
| | |
|
| | | |
| | | /**
|
| | | * 保存品牌信息
|
| | | * @param record
|
| | | * @throws BrandClassException
|
| | | * @throws Exception
|
| | | */
|
| | | public void saveObject(MultipartFile file, BrandInfo record) throws BrandInfoException;
|
| | |
|
| | | |
| | | /**
|
| | | * 批量删除
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | public int deleteBatchByPrimaryKey(List<Long> list);
|
| | | |
| | | |
| | | /**
|
| | | * 查询列表
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | public List<BrandInfo> listQuery(long start, int count, List<String> keys, Long cid, Integer state, Integer showState);
|
| | |
|
| | | public long countQuery(List<String> keys, Long cid, Integer state, Integer showState);
|
| | |
|
| | | /**
|
| | | * 查询品牌返回前端
|
| | | * @param start
|
| | | * @param count
|
| | | * @param cid
|
| | | * @return
|
| | | * @throws BrandInfoException
|
| | | */
|
| | | public List<BrandInfoVO> listBrandInfoCache(long start, int count, Long cid);
|
| | |
|
| | |
|
| | | /**
|
| | | * 品牌数量
|
| | | * @param cid
|
| | | * @return
|
| | | * @throws BrandInfoException
|
| | | */
|
| | | public long countBrandInfo(Long cid);
|
| | |
|
| | | /**
|
| | | * 有效店铺
|
| | | * @param cid
|
| | | * @return
|
| | | */
|
| | | 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);
|
| | |
|
| | |
|
| | | /**
|
| | | * 删除之前的
|
| | | * @param date
|
| | | */
|
| | | public void removeAgoByDate(Date date);
|
| | |
|
| | |
|
| | | public void updateOrder(Long id, Integer moveType) throws BrandInfoException;
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.brand; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.SystemEnum; |
| | | 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; |
| | | import com.yeshi.fanli.vo.brand.BrandInfoVO; |
| | | |
| | | /** |
| | | * 品牌信息 |
| | | * |
| | | * @author Administrator |
| | | * |
| | | */ |
| | | public interface BrandInfoService { |
| | | |
| | | |
| | | /** |
| | | * 保存品牌信息 |
| | | * @param record |
| | | * @throws BrandClassException |
| | | * @throws Exception |
| | | */ |
| | | public void saveObject(MultipartFile file, BrandInfo record) throws BrandInfoException; |
| | | |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | public int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 查询列表 |
| | | * @param start |
| | | * @param count |
| | | * @param state |
| | | * @return |
| | | */ |
| | | public List<BrandInfo> listQuery(long start, int count, List<String> keys, Long cid, Integer state, Integer showState); |
| | | |
| | | public long countQuery(List<String> keys, Long cid, Integer state, Integer showState); |
| | | |
| | | /** |
| | | * 查询品牌返回前端 |
| | | * @param start |
| | | * @param count |
| | | * @param cid |
| | | * @return |
| | | * @throws BrandInfoException |
| | | */ |
| | | public List<BrandInfoVO> listBrandInfoCache(long start, int count, Long cid,String platform,String version,SystemEnum system); |
| | | |
| | | |
| | | /** |
| | | * 品牌数量 |
| | | * @param cid |
| | | * @return |
| | | * @throws BrandInfoException |
| | | */ |
| | | public long countBrandInfo(Long cid); |
| | | |
| | | /** |
| | | * 有效店铺 |
| | | * @param cid |
| | | * @return |
| | | */ |
| | | public List<BrandInfo> listValidBrandInfoCache(Long cid,SystemEnum system); |
| | | |
| | | /** |
| | | * 查询分类下品牌 |
| | | * @param cid |
| | | * @return |
| | | */ |
| | | public List<BrandInfo> listValidByCidToApp(Long cid, SystemEnum system); |
| | | |
| | | |
| | | /** |
| | | * 查询品牌以及对应商品 |
| | | * @param start |
| | | * @param count |
| | | * @param cid |
| | | * @return |
| | | */ |
| | | public List<BrandInfoVO> listValidToApp(long start, int count, Long cid,String platform,String version,SystemEnum system); |
| | | |
| | | |
| | | /** |
| | | * 新增商品或店铺信息 |
| | | * @param start |
| | | * @param count |
| | | */ |
| | | public void addShopAndGoods(long start, int count); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 检索有效的品牌信息,按更新时间排序 |
| | | * @param page |
| | | * @param pageSize |
| | | * @return |
| | | */ |
| | | public List<BrandInfo> listValidOrderByUpdateTime(int page,int pageSize); |
| | | |
| | | |
| | | /** |
| | | * 添加品牌商品 |
| | | * @param brandList |
| | | */ |
| | | public void addShopAndGoods(List<BrandInfo> brandList); |
| | | |
| | | |
| | | public long countValidByCidToApp(Long cid,SystemEnum system); |
| | | |
| | | |
| | | public long countValidByCid(Long cid); |
| | | |
| | | |
| | | /** |
| | | * 删除之前的 |
| | | * @param date |
| | | */ |
| | | public void removeAgoByDate(Date date); |
| | | |
| | | |
| | | public void updateOrder(Long id, Integer moveType) throws BrandInfoException; |
| | | |
| | | /** |
| | | * 搜索关键词匹配品牌 |
| | | * @param key |
| | | * @return |
| | | */ |
| | | public BrandInfoVO listByAlikeName(String key,String platform,String version,SystemEnum system); |
| | | |
| | | |
| | | /** |
| | | * 状态切换 |
| | | * @param id |
| | | * @throws BrandInfoException |
| | | */ |
| | | public void switchState(Long id) throws BrandInfoException; |
| | | |
| | | } |