From 81da61b828e29b7745e1382dfbbaeb685dc083ef Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 23 一月 2024 17:17:55 +0800 Subject: [PATCH] 抖音转链修改 --- fanli/src/main/java/com/yeshi/fanli/service/inter/lable/LabelGoodsService.java | 282 ++++++++++++++++++++++++-------------------------------- 1 files changed, 121 insertions(+), 161 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/lable/LabelGoodsService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/lable/LabelGoodsService.java index f644c73..a49ab07 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/lable/LabelGoodsService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/lable/LabelGoodsService.java @@ -1,161 +1,121 @@ -package com.yeshi.fanli.service.inter.lable; - -import java.util.List; - -import com.yeshi.fanli.entity.bus.lable.LabelGoods; -import com.yeshi.fanli.entity.common.AdminUser; -import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief; -import com.yeshi.fanli.exception.LabelClassException; -import com.yeshi.fanli.exception.LabelGoodsException; - -public interface LabelGoodsService { - - /** - * 鎻掑叆瀵硅薄 - * - * @param record - * @return - * @throws LabelGoodsException - */ - public int insert(LabelGoods record) throws LabelGoodsException; - - /** - * 鏇存柊褰撳墠瀵硅薄鎵�鏈夋暟鎹� - * - * @param record - * @return - * @throws LabelGoodsException - */ - public int updateByPrimaryKey(LabelGoods record) throws LabelGoodsException; - - /** - * 閫夋嫨鎬ф洿鏂板唴瀹光�斺�斾笉涓虹┖鍒欐洿鏂拌瀛楁 - * - * @param record - * @return - * @throws LabelGoodsException - */ - public int updateByPrimaryKeySelective(LabelGoods record) throws LabelGoodsException; - - /** - * 鏍规嵁id鍒犻櫎褰撳墠瀵硅薄 - * - * @param id - * @return - * @throws LabelGoodsException - */ - public int deleteByPrimaryKey(Long id) throws LabelGoodsException; - - /** - * 鏍规嵁id鏌ユ壘褰撳墠瀵硅薄 - * - * @param id - * @return - * @throws LabelGoodsException - */ - public LabelGoods selectByPrimaryKey(Long id) throws LabelGoodsException; - - - /** - * 鏍规嵁id鎵归噺鍒犻櫎 - * - * @param ids - */ - public int deleteBatchById(long[] ids) throws LabelGoodsException; - - /** - * 鍟嗗搧璐存爣绛� - * - * @param arrtitle - * @param ids - * @param admin - * @return - * @throws LabelGoodsException - */ - public void setGoodsLabel(String[] arrtitle, List<String> goodsIds, AdminUser admin) throws Exception; - - /** - * 鏍规嵁鍟嗗搧id 鍒犻櫎鍟嗗搧瀵瑰簲鐨勬墍鏈夋爣绛句俊鎭� - * - * @param ids - * @throws LabelGoodsException - */ - public void deleteByGoodsId(List<String> ids) throws LabelGoodsException; - - /** - * 鎵归噺娣诲姞鍟嗗搧鏍囩 - * - * @param label - * @param goodsIdList - * @param admin - * @param weight - * @param weightSmall - * @param weightLarge - */ - public void addBatchRandom(String[] lables, List<String> idList, AdminUser admin, Integer weight, - Integer weightSmall, Integer weightLarge) throws Exception; - - /** - * 鑾峰彇鏍囩鍟嗗搧鍏宠仈鏁伴噺 - * - * @param labelId - * @return - * @throws LabelGoodsException - */ - public Long getRelationNum(Long labelId) throws LabelGoodsException; - - - public Long isExistence(Long goodsId, Long labId); - - public int deleteByGoodsIdAndLabId(Long goodsId, Long labId); - - /** - * 鏌ヨ鍟嗗搧瀵瑰簲鏍囩 --鍒嗛〉 - * - * @param start - * @param count - * @param goodsId - * @return - * @throws LabelClassException - */ - public List<LabelGoods> queryByGoodsId(int start, int count, Long goodsId) throws LabelClassException; - - public int getCountQueryByGoodsId(Long goodsId); - - - /** - * 缁熻鍟嗗搧鐨勬爣绛炬暟閲� - * @param goodsId - * @return - */ - public int getCountByGoodsId(Long goodsId); - - - /** - * 鍟嗗搧閫夋嫨鏍囩娣诲姞鍏ュ簱 - * @param taoBaoGoodsBrief - * @param labIdList - * @param admin - * @throws Exception - */ - public void addBatchByLabId(TaoBaoGoodsBrief taoBaoGoodsBrief, List<String> labIdList, AdminUser admin) throws Exception; - - /** - * 鎵归噺鍟嗗搧璐翠笂鏍囩 - * @param goodsIdList 鍟嗗搧id - * @param labIdList 鏍囩id - * @param admin - * @throws Exception - */ - public void batchGoodsAddLables(List<Long> goodsIdList, List<Long> labIdList, AdminUser admin) throws Exception; - - /** - * 鍗曚釜鍟嗗搧璐存爣绛� - * @param goodsId - * @param labIdList - * @param admin - * @throws Exception - */ - public void singleGoodsAddLables(Long goodsId, List<Long> labIdList, AdminUser admin) throws Exception; - -} +package com.yeshi.fanli.service.inter.lable; + +import java.util.List; + +import com.yeshi.fanli.entity.bus.lable.LabelGoods; +import com.yeshi.fanli.entity.common.AdminUser; +import com.yeshi.goods.facade.entity.taobao.TaoBaoGoodsBrief; +import com.yeshi.fanli.exception.goods.quality.LabelClassException; +import com.yeshi.fanli.exception.goods.quality.LabelGoodsException; + +public interface LabelGoodsService { + + /** + * 鎻掑叆瀵硅薄 + * + * @param record + * @return + * @throws LabelGoodsException + */ + public int insertSelective(LabelGoods record) throws LabelGoodsException; + + /** + * 鏍规嵁id鍒犻櫎褰撳墠瀵硅薄 + * + * @param id + * @return + * @throws LabelGoodsException + */ + public int deleteByPrimaryKey(Long id) throws LabelGoodsException; + + /** + * 鏍规嵁id鏌ユ壘褰撳墠瀵硅薄 + * + * @param id + * @return + * @throws LabelGoodsException + */ + public LabelGoods selectByPrimaryKey(Long id) throws LabelGoodsException; + + + /** + * 鏍规嵁id鎵归噺鍒犻櫎 + * + * @param ids + */ + public int deleteBatchById(long[] ids) throws LabelGoodsException; + + + /** + * 鏍规嵁鍟嗗搧id 鍒犻櫎鍟嗗搧瀵瑰簲鐨勬墍鏈夋爣绛句俊鎭� + * + * @param ids + * @throws LabelGoodsException + */ + public void deleteByGoodsId(List<String> ids) throws LabelGoodsException; + + + /** + * 鑾峰彇鏍囩鍟嗗搧鍏宠仈鏁伴噺 + * + * @param labelId + * @return + * @throws LabelGoodsException + */ + public Long getRelationNum(Long labelId) throws LabelGoodsException; + + + public Long isExistence(String goodsId, Long labId); + + public int deleteByGoodsIdAndLabId(String goodsId, Long labId); + + /** + * 鏌ヨ鍟嗗搧瀵瑰簲鏍囩 --鍒嗛〉 + * + * @param start + * @param count + * @param goodsId + * @return + * @throws LabelClassException + */ + public List<LabelGoods> queryByGoodsId(int start, int count, String goodsId) throws LabelClassException; + + public int getCountQueryByGoodsId(String goodsId); + + + /** + * 缁熻鍟嗗搧鐨勬爣绛炬暟閲� + * @param goodsId + * @return + */ + public int getCountByGoodsId(String goodsId); + + + /** + * 鍟嗗搧閫夋嫨鏍囩娣诲姞鍏ュ簱 + * @param taoBaoGoodsBrief + * @param labIdList + * @param admin + * @throws Exception + */ + public void addBatchByLabId(TaoBaoGoodsBrief taoBaoGoodsBrief, List<String> labIdList, AdminUser admin) throws Exception; + + /** + * 鎵归噺鍟嗗搧璐翠笂鏍囩 + * @param goodsIdList 鍟嗗搧id + * @param labIdList 鏍囩id + * @param admin + * @throws Exception + */ + public void batchGoodsAddLables(List<String> goodsIdList, List<Long> labIdList, AdminUser admin) throws Exception; + + /** + * 鍗曚釜鍟嗗搧璐存爣绛� + * @param goodsId + * @param labIdList + * @param admin + * @throws Exception + */ + public void singleGoodsAddLables(String goodsId, List<Long> labIdList, AdminUser admin) throws Exception; + +} -- Gitblit v1.8.0