| | |
| | |
|
| | | import com.yeshi.fanli.entity.accept.AcceptData;
|
| | | import com.yeshi.fanli.entity.bus.clazz.GoodsSubClass;
|
| | | import com.yeshi.fanli.exception.goods.GoodsSubClassException;
|
| | |
|
| | |
|
| | | public interface GoodsSubClassService {
|
| | |
| | |
|
| | | public int updateByPrimaryKeySelective(GoodsSubClass record);
|
| | |
|
| | | public int updateByPrimaryKey(GoodsSubClass record);
|
| | |
|
| | | /**
|
| | | * 批量删除
|
| | |
| | | */
|
| | | public void deleteByPrimaryKeyBatch(List<String> recordIds) throws Exception ;
|
| | |
|
| | | /**
|
| | | * 保存分类信息
|
| | | * @param record
|
| | | * @param file
|
| | | * @throws Exception
|
| | | */
|
| | | public int save(GoodsSubClass record, MultipartFile file) throws Exception;
|
| | |
|
| | | |
| | | /**
|
| | | * 上传图片文件 并更新对象信息
|
| | | * @param file |
| | | * @param record
|
| | | * @return
|
| | | * @throws Exception
|
| | | */
|
| | | public int uploadPicture(GoodsSubClass record, MultipartFile file) throws Exception;
|
| | | |
| | |
|
| | | /**
|
| | | * 删除图片文件 并更新对象信息
|
| | |
| | | * @return
|
| | | * @throws Exception
|
| | | */
|
| | | public List<GoodsSubClass> getGoodsSecondClass(Long rootId, Integer state) throws Exception;
|
| | | public List<GoodsSubClass> getGoodsSecondClass(Long rootId, Integer state,Integer month) throws Exception;
|
| | |
|
| | | public List<GoodsSubClass> queryByRootIdAndWeight(Long rootId, int type, int weight) throws Exception;
|
| | |
|
| | |
| | |
|
| | | public int countByPid(Long pid);
|
| | |
|
| | | /**
|
| | | * 统计一级之下的所有二级分类最大权重
|
| | | * @param rootId 一级id
|
| | | * @returnL
|
| | | */
|
| | | public int getMaxWeightByRootId(Long rootId);
|
| | |
|
| | | /**
|
| | | * 统计二级分类之下其他分类最大权重
|
| | | * @param rootId 一级id
|
| | | * @return
|
| | | */
|
| | | public int getMaxWeightByPid(Long pid);
|
| | |
|
| | | /**
|
| | | * 获取二级分类+ 加入缓存
|
| | |
| | | * @return
|
| | | * @throws Exception
|
| | | */
|
| | | public List<GoodsSubClass> getSubClassCache(Long rootId, Integer state) throws Exception;
|
| | | public List<GoodsSubClass> getSubClassCache(Long rootId, Integer state,Integer month) throws Exception;
|
| | |
|
| | | /**
|
| | | * 统计前端 点击次数
|
| | |
| | | */
|
| | | public List<GoodsSubClass> queryByListCid(List<Long> list);
|
| | |
|
| | | /**
|
| | | * 保存分类信息
|
| | | * @param file
|
| | | * @param record
|
| | | * @param type
|
| | | * @param pid
|
| | | * @throws GoodsSubClassException
|
| | | * @throws Exception
|
| | | */
|
| | | public void saveObject(MultipartFile file,MultipartFile file2, GoodsSubClass record, Integer type, Long pid,Long labelId)
|
| | | throws GoodsSubClassException, Exception;
|
| | |
|
| | | /**
|
| | | * 状态切换
|
| | | * @param id
|
| | | * @throws GoodsSubClassException
|
| | | */
|
| | | public void switchState(Long id) throws GoodsSubClassException;
|
| | |
|
| | | }
|