| | |
| | |
|
| | | import com.yeshi.fanli.entity.accept.AcceptData;
|
| | | import com.yeshi.fanli.entity.bus.clazz.GoodsSubClass;
|
| | | import com.yeshi.fanli.exception.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;
|
| | | |
| | |
|
| | | /**
|
| | | * 删除图片文件 并更新对象信息
|
| | |
| | |
|
| | | public int countByPid(Long pid);
|
| | |
|
| | | /**
|
| | | * 统计一级之下的所有二级分类最大权重
|
| | | * @param rootId 一级id
|
| | | * @returnL
|
| | | */
|
| | | public int getMaxWeightByRootId(Long rootId);
|
| | |
|
| | | /**
|
| | | * 统计二级分类之下其他分类最大权重
|
| | | * @param rootId 一级id
|
| | | * @return
|
| | | */
|
| | | public int getMaxWeightByPid(Long pid);
|
| | |
|
| | | /**
|
| | | * 获取二级分类+ 加入缓存
|
| | |
| | | */
|
| | | public List<GoodsSubClass> queryByListCid(List<Long> list);
|
| | |
|
| | | /**
|
| | | * 保存分类信息
|
| | | * @param file
|
| | | * @param record
|
| | | * @param type
|
| | | * @param pid
|
| | | * @throws GoodsSubClassException
|
| | | * @throws Exception
|
| | | */
|
| | | public void saveObject(MultipartFile file, GoodsSubClass record, Integer type, Long pid)
|
| | | throws GoodsSubClassException, Exception;
|
| | |
|
| | | }
|