| | |
| | | package com.yeshi.fanli.service.inter.brand;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.brand.BrandClass;
|
| | | import com.yeshi.fanli.exception.brand.BrandClassException;
|
| | |
|
| | | /**
|
| | | * 品牌分类服务
|
| | | * |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | public interface BrandClassService {
|
| | |
|
| | | /**
|
| | | * 查询有效分类
|
| | | * @return
|
| | | */
|
| | | public List<BrandClass> listEffective();
|
| | | |
| | | /**
|
| | | * 查询有效分类
|
| | | * @return
|
| | | */
|
| | | public List<BrandClass> listBrandClassEffectiveCache();
|
| | |
|
| | | /**
|
| | | * 保存品牌信息
|
| | | * @param record
|
| | | * @throws BrandClassException
|
| | | * @throws Exception
|
| | | */
|
| | | public void saveObject(BrandClass record) throws BrandClassException, Exception;
|
| | |
|
| | | /**
|
| | | * 查询列表
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | public List<BrandClass> listQuery(long start, int count, String key, Integer state);
|
| | |
|
| | | public long countQuery(String key, Integer state);
|
| | |
|
| | | /**
|
| | | * 修改排序
|
| | | * @param id
|
| | | * @param moveType
|
| | | * @throws BrandClassException
|
| | | * @throws Exception
|
| | | */
|
| | | public void updateOrder(Long id, Integer moveType) throws BrandClassException, Exception;
|
| | |
|
| | | /**
|
| | | * 批量删除
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | public int deleteBatchByPrimaryKey(List<Long> list);
|
| | |
|
| | | /**
|
| | | * |
| | | * @param id
|
| | | * @return
|
| | | */
|
| | | public BrandClass selectByPrimaryKey(Long id);
|
| | |
|
| | | |
| | | }
|
| | | package com.yeshi.fanli.service.inter.brand; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.SystemEnum; |
| | | import com.yeshi.fanli.entity.brand.BrandClass; |
| | | import com.yeshi.fanli.exception.brand.BrandClassException; |
| | | |
| | | /** |
| | | * 品牌分类服务 |
| | | * |
| | | * @author Administrator |
| | | * |
| | | */ |
| | | public interface BrandClassService { |
| | | |
| | | /** |
| | | * 查询有效分类 |
| | | * @return |
| | | */ |
| | | public List<BrandClass> listEffective(SystemEnum system); |
| | | |
| | | /** |
| | | * 查询有效分类 |
| | | * @return |
| | | */ |
| | | public List<BrandClass> listBrandClassEffectiveCache(SystemEnum system); |
| | | |
| | | /** |
| | | * 保存品牌信息 |
| | | * @param record |
| | | * @throws BrandClassException |
| | | * @throws Exception |
| | | */ |
| | | public void saveObject(BrandClass record,List<SystemEnum> systemList) throws BrandClassException, Exception; |
| | | |
| | | /** |
| | | * 查询列表 |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @param state |
| | | * @return |
| | | */ |
| | | public List<BrandClass> listQuery(long start, int count, String key, Integer state,SystemEnum system); |
| | | |
| | | public long countQuery(String key, Integer state,SystemEnum system); |
| | | |
| | | /** |
| | | * 修改排序 |
| | | * @param id |
| | | * @param moveType |
| | | * @throws BrandClassException |
| | | * @throws Exception |
| | | */ |
| | | public void updateOrder(Long id, Integer moveType,SystemEnum system) throws BrandClassException, Exception; |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | public int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | /** |
| | | * 批量删除映射 |
| | | * @param list |
| | | * @param system |
| | | */ |
| | | public void deleteSystemMapBatch(List<Long> list,SystemEnum system); |
| | | |
| | | /** |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public BrandClass selectByPrimaryKey(Long id); |
| | | |
| | | /** |
| | | * 状态切换 |
| | | * @param id |
| | | * @throws BrandClassException |
| | | */ |
| | | public void switchState(Long id) throws BrandClassException; |
| | | |
| | | |
| | | } |