From e75b0d79535a6bcd147cca4a54632b70b42afdb9 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 29 五月 2021 18:10:18 +0800 Subject: [PATCH] 特价完善 --- fanli/src/main/java/com/yeshi/fanli/service/inter/lable/LabelClassService.java | 272 +++++++++++++++++++++++++++--------------------------- 1 files changed, 136 insertions(+), 136 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/lable/LabelClassService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/lable/LabelClassService.java index b16204b..f708999 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/lable/LabelClassService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/lable/LabelClassService.java @@ -1,136 +1,136 @@ -package com.yeshi.fanli.service.inter.lable; - - - -import java.util.List; - -import org.springframework.cache.annotation.Cacheable; - -import com.yeshi.fanli.entity.bus.clazz.GoodsClass; -import com.yeshi.fanli.entity.bus.clazz.GoodsSubClass; -import com.yeshi.fanli.entity.bus.lable.LabelClass; -import com.yeshi.fanli.exception.goods.quality.LabelClassException; - -public interface LabelClassService { - - /** - * 鎻掑叆瀵硅薄 - * @param record - * @return - * @throws LabelClassException - */ - public int insert(LabelClass record) throws LabelClassException; - - /** - * 鏇存柊褰撳墠瀵硅薄鎵�鏈夋暟鎹� - * @param record - * @return - * @throws LabelClassException - */ - public int updateByPrimaryKey(LabelClass record) throws LabelClassException; - - /** - * 閫夋嫨鎬ф洿鏂板唴瀹光�斺�斾笉涓虹┖鍒欐洿鏂拌瀛楁 - * @param record - * @return - * @throws LabelClassException - */ - public int updateByPrimaryKeySelective(LabelClass record) throws LabelClassException; - - /** - * 鏍规嵁id鍒犻櫎褰撳墠瀵硅薄 - * @param id - * @return - * @throws LabelClassException - */ - public int deleteByPrimaryKey(Long id) throws LabelClassException; - - - /** - * 鏍规嵁id鏌ユ壘褰撳墠瀵硅薄 - * @param id - * @return - * @throws LabelClassException - */ - public LabelClass selectByPrimaryKey(Long id) throws LabelClassException; - - - /** - * 瀵瑰崟涓竴绾у垎绫昏繘琛屾壒閲忚创涓婃爣绛� - * @param goodsClass - * @param labIdList - * @throws Exception - */ - public void addBatchClass(GoodsClass goodsClass, List<Long> labIdList) throws Exception; - - - /** - * 瀵瑰崟涓瓙绾у垎绫昏繘琛屾壒閲忚创涓婃爣绛� - * @param goodsSubClass - * @param labIdList - * @throws Exception - */ - public void addBatchSubClass(GoodsSubClass goodsSubClass, List<Long> labIdList) throws Exception; - - /** - * 鏌ヨ涓�绾х被瀵瑰簲鏍囩 - * @param record - * @return - */ - public List<LabelClass> getByClassId(Long classId) throws LabelClassException; - - /** - * 鏌ヨ瀛愮被瀵瑰簲鏍囩 - * @param record - * @return - */ - public List<LabelClass> getBySubClassId(Long classId) throws LabelClassException; - - /** - * 鏌ヨ涓�绾х被瀵瑰簲鏍囩 -- 鍒嗛〉 - * @param record - * @return - */ - public List<LabelClass> queryByClassId(int start, int count, Long classId) throws LabelClassException; - - public int getCountQueryByClassId(Long classId) throws LabelClassException; - - /** - * 鏌ヨ瀛愮被瀵瑰簲鏍囩 -- 鍒嗛〉 - * @param record - * @return - */ - public List<LabelClass> queryBySubClassId(int start, int count, Long classId) throws LabelClassException; - - public int getCountQueryBySubClassId(Long subClassId) throws LabelClassException; - - /** - * 鏍规嵁涓�绾х被鍒獻D鍒犻櫎 - * @param recordId - * @throws Exception - */ - public int deleteByClassId(Long recordId) throws Exception; - - /** - * 鏍规嵁瀛愮被鍒獻D鍒犻櫎 - * @param recordId - * @return - * @throws Exception - */ - public int deleteBySubClassId(Long recordId) throws Exception; - - - public List<LabelClass> queryBySubClassIdCache(int start, int count, Long classId) throws LabelClassException; - - /** - * 鑾峰彇鍒嗙被鍏宠仈鏍囩id - * @param start - * @param count - * @param classId - * @return - * @throws LabelClassException - */ - public List<Long> getRelationLabIds(int start, int count, Long classId) throws LabelClassException; - - -} +package com.yeshi.fanli.service.inter.lable; + + + +import java.util.List; + +import org.springframework.cache.annotation.Cacheable; + +import com.yeshi.fanli.entity.bus.clazz.GoodsClass; +import com.yeshi.fanli.entity.bus.clazz.GoodsSubClass; +import com.yeshi.fanli.entity.bus.lable.LabelClass; +import com.yeshi.fanli.exception.goods.quality.LabelClassException; + +public interface LabelClassService { + + /** + * 鎻掑叆瀵硅薄 + * @param record + * @return + * @throws LabelClassException + */ + public int insert(LabelClass record) throws LabelClassException; + + /** + * 鏇存柊褰撳墠瀵硅薄鎵�鏈夋暟鎹� + * @param record + * @return + * @throws LabelClassException + */ + public int updateByPrimaryKey(LabelClass record) throws LabelClassException; + + /** + * 閫夋嫨鎬ф洿鏂板唴瀹光�斺�斾笉涓虹┖鍒欐洿鏂拌瀛楁 + * @param record + * @return + * @throws LabelClassException + */ + public int updateByPrimaryKeySelective(LabelClass record) throws LabelClassException; + + /** + * 鏍规嵁id鍒犻櫎褰撳墠瀵硅薄 + * @param id + * @return + * @throws LabelClassException + */ + public int deleteByPrimaryKey(Long id) throws LabelClassException; + + + /** + * 鏍规嵁id鏌ユ壘褰撳墠瀵硅薄 + * @param id + * @return + * @throws LabelClassException + */ + public LabelClass selectByPrimaryKey(Long id) throws LabelClassException; + + + /** + * 瀵瑰崟涓竴绾у垎绫昏繘琛屾壒閲忚创涓婃爣绛� + * @param goodsClass + * @param labIdList + * @throws Exception + */ + public void addBatchClass(GoodsClass goodsClass, List<Long> labIdList) throws Exception; + + + /** + * 瀵瑰崟涓瓙绾у垎绫昏繘琛屾壒閲忚创涓婃爣绛� + * @param goodsSubClass + * @param labIdList + * @throws Exception + */ + public void addBatchSubClass(GoodsSubClass goodsSubClass, List<Long> labIdList) throws Exception; + + /** + * 鏌ヨ涓�绾х被瀵瑰簲鏍囩 + * @param record + * @return + */ + public List<LabelClass> getByClassId(Long classId) throws LabelClassException; + + /** + * 鏌ヨ瀛愮被瀵瑰簲鏍囩 + * @param record + * @return + */ + public List<LabelClass> getBySubClassId(Long classId) throws LabelClassException; + + /** + * 鏌ヨ涓�绾х被瀵瑰簲鏍囩 -- 鍒嗛〉 + * @param record + * @return + */ + public List<LabelClass> queryByClassId(int start, int count, Long classId) throws LabelClassException; + + public int getCountQueryByClassId(Long classId) throws LabelClassException; + + /** + * 鏌ヨ瀛愮被瀵瑰簲鏍囩 -- 鍒嗛〉 + * @param record + * @return + */ + public List<LabelClass> queryBySubClassId(int start, int count, Long classId) throws LabelClassException; + + public int getCountQueryBySubClassId(Long subClassId) throws LabelClassException; + + /** + * 鏍规嵁涓�绾х被鍒獻D鍒犻櫎 + * @param recordId + * @throws Exception + */ + public int deleteByClassId(Long recordId) throws Exception; + + /** + * 鏍规嵁瀛愮被鍒獻D鍒犻櫎 + * @param recordId + * @return + * @throws Exception + */ + public int deleteBySubClassId(Long recordId) throws Exception; + + + public List<LabelClass> queryBySubClassIdCache(int start, int count, Long classId) throws LabelClassException; + + /** + * 鑾峰彇鍒嗙被鍏宠仈鏍囩id + * @param start + * @param count + * @param classId + * @return + * @throws LabelClassException + */ + public List<Long> getRelationLabIds(int start, int count, Long classId) throws LabelClassException; + + +} -- Gitblit v1.8.0