| | |
| | | package com.yeshi.fanli.service.inter.goods;
|
| | |
|
| | | import java.util.List;
|
| | | import java.util.Map;
|
| | |
|
| | | import org.springframework.web.multipart.MultipartFile;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.clazz.GoodsClass;
|
| | | import com.yeshi.fanli.exception.GoodsClassException;
|
| | |
|
| | | public interface GoodsClassService {
|
| | | |
| | | public GoodsClass getGoodsClass(long gcid);
|
| | | |
| | | |
| | | public GoodsClass getGoodsClassCache(long gcid);
|
| | |
|
| | |
|
| | | /**
|
| | | * 获取所有分类
|
| | | * @return
|
| | | */
|
| | | public List<GoodsClass> getGoodsClassAll();
|
| | |
|
| | | /**
|
| | | * |
| | | * 方法说明: 通过id获取商品类型的Key
|
| | | * @author mawurui
|
| | | * createTime 2018年4月26日 下午3:51:56
|
| | | * @param id
|
| | | * @return
|
| | | */
|
| | | public String getKeysById(Long id);
|
| | |
|
| | | /**
|
| | | * 上传图片
|
| | | * @param record
|
| | | * @param file
|
| | | * @return
|
| | | * @throws Exception
|
| | | */
|
| | | public void uploadPicture(GoodsClass record, MultipartFile file) throws Exception;
|
| | | |
| | |
|
| | | public void deleteGoodsClass(long id);
|
| | |
|
| | | public void removePicture(GoodsClass record) throws Exception;
|
| | | |
| | | |
| | | public List<GoodsClass> listquery() throws Exception;
|
| | | |
| | |
|
| | |
|
| | | /**
|
| | | * 选择性更新
|
| | | * @param record
|
| | | * @return
|
| | | */
|
| | | public int updateByPrimaryKeySelective(GoodsClass record);
|
| | |
|
| | | |
| | | int updateByPrimaryKey(GoodsClass record);
|
| | | |
| | | |
| | | public GoodsClass selectByPrimaryKey(Long gcid);
|
| | |
|
| | |
|
| | | /**
|
| | | * 查询所有有效分类-加入缓存
|
| | | * @param systemId 系统ID
|
| | | * @return
|
| | | * @throws Exception
|
| | | */
|
| | | public List<GoodsClass> getEffectiveClassCache();
|
| | |
|
| | | /**
|
| | | * 查询所有分类、主子类目
|
| | | * @param systemId
|
| | | * @return
|
| | | * @throws Exception
|
| | | */
|
| | | public List<Map<String, Object>> getClassListAllCache(boolean changePicture) throws Exception;
|
| | |
|
| | |
|
| | | /**
|
| | | * 保存分类信息
|
| | | * @param file
|
| | | * @param record
|
| | | * @throws GoodsClassException
|
| | | * @throws Exception
|
| | | */
|
| | | public void saveObject(MultipartFile file, GoodsClass record) throws GoodsClassException, Exception;
|
| | |
|
| | |
|
| | | /**
|
| | | * 后台顺序调整
|
| | | * @param id
|
| | | * @param moveType
|
| | | * @throws GoodsClassException
|
| | | */
|
| | | public void updateOrder(Long id, Integer moveType) throws GoodsClassException;
|
| | |
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.goods; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import com.yeshi.fanli.entity.bus.clazz.GoodsClass; |
| | | import com.yeshi.fanli.exception.goods.GoodsClassException; |
| | | |
| | | public interface GoodsClassService { |
| | | |
| | | public GoodsClass getGoodsClass(long gcid); |
| | | |
| | | |
| | | public GoodsClass getGoodsClassCache(long gcid); |
| | | |
| | | |
| | | /** |
| | | * 获取所有分类 |
| | | * @return |
| | | */ |
| | | public List<GoodsClass> getGoodsClassAll(); |
| | | |
| | | /** |
| | | * |
| | | * 方法说明: 通过id获取商品类型的Key |
| | | * @author mawurui |
| | | * createTime 2018年4月26日 下午3:51:56 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public String getKeysById(Long id); |
| | | |
| | | /** |
| | | * 上传图片 |
| | | * @param record |
| | | * @param file |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | public void uploadPicture(GoodsClass record, MultipartFile file) throws Exception; |
| | | |
| | | |
| | | public void deleteGoodsClass(long id); |
| | | |
| | | public void removePicture(GoodsClass record) throws Exception; |
| | | |
| | | |
| | | public List<GoodsClass> listquery(Integer sex) throws Exception; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 选择性更新 |
| | | * @param record |
| | | * @return |
| | | */ |
| | | public int updateByPrimaryKeySelective(GoodsClass record); |
| | | |
| | | |
| | | int updateByPrimaryKey(GoodsClass record); |
| | | |
| | | |
| | | public GoodsClass selectByPrimaryKey(Long gcid); |
| | | |
| | | |
| | | /** |
| | | * 查询所有有效分类-加入缓存 |
| | | * @param systemId 系统ID |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | public List<GoodsClass> getEffectiveClassCache(); |
| | | |
| | | /** |
| | | * 查询所有分类、主子类目 |
| | | * @param systemId |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | public List<Map<String, Object>> getClassListAllCache(boolean changePicture) throws Exception; |
| | | |
| | | |
| | | /** |
| | | * 保存分类信息 |
| | | * @param file |
| | | * @param record |
| | | * @throws GoodsClassException |
| | | * @throws Exception |
| | | */ |
| | | public void saveObject(MultipartFile file, GoodsClass record) throws GoodsClassException, Exception; |
| | | |
| | | |
| | | /** |
| | | * 后台顺序调整 |
| | | * @param id |
| | | * @param moveType |
| | | * @throws GoodsClassException |
| | | */ |
| | | public void updateOrder(Long id, Integer moveType) throws GoodsClassException; |
| | | |
| | | |
| | | /** |
| | | * 状态切换 |
| | | * @param id |
| | | * @throws GoodsClassException |
| | | */ |
| | | public void switchState(Long id) throws GoodsClassException; |
| | | |
| | | |
| | | } |