yujian
2019-03-27 cdcbed9af813b2a02cdc01eefa24db8bec6b51a9
fanli/src/main/java/com/yeshi/fanli/service/inter/goods/GoodsSubClassService.java
@@ -7,6 +7,7 @@
import com.yeshi.fanli.entity.accept.AcceptData;
import com.yeshi.fanli.entity.bus.clazz.GoodsSubClass;
import com.yeshi.fanli.exception.GoodsSubClassException;
public interface  GoodsSubClassService {
@@ -21,7 +22,6 @@
   public int updateByPrimaryKeySelective(GoodsSubClass record);
   public int updateByPrimaryKey(GoodsSubClass record);
   
   /**
    * 批量删除
@@ -30,24 +30,6 @@
    */
   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;
   /**
    * 删除图片文件  并更新对象信息
@@ -99,19 +81,6 @@
   public int countByPid(Long pid);
   /**
    *  统计一级之下的所有二级分类最大权重
    * @param rootId  一级id
    * @returnL
    */
   public int getMaxWeightByRootId(Long rootId);
   /**
    *  统计二级分类之下其他分类最大权重
    * @param rootId  一级id
    * @return
    */
   public int getMaxWeightByPid(Long pid);
   /**
    * 获取二级分类+ 加入缓存
@@ -145,4 +114,16 @@
    */
   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;
}