From cdcbed9af813b2a02cdc01eefa24db8bec6b51a9 Mon Sep 17 00:00:00 2001 From: yujian <yujian> Date: 星期三, 27 三月 2019 12:17:33 +0800 Subject: [PATCH] 主分类 + 子分类 DAO改造 --- fanli/src/main/java/com/yeshi/fanli/service/inter/goods/GoodsSubClassService.java | 45 +++++++++++++-------------------------------- 1 files changed, 13 insertions(+), 32 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/goods/GoodsSubClassService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/goods/GoodsSubClassService.java index fc29373..a753ea3 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/goods/GoodsSubClassService.java +++ b/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 涓�绾d - * @returnL - */ - public int getMaxWeightByRootId(Long rootId); - - /** - * 缁熻浜岀骇鍒嗙被涔嬩笅鍏朵粬鍒嗙被鏈�澶ф潈閲� - * @param rootId 涓�绾d - * @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; + } -- Gitblit v1.8.0