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/LabelService.java | 404 ++++++++++++++++++++++++++++---------------------------- 1 files changed, 202 insertions(+), 202 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/lable/LabelService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/lable/LabelService.java index 6ea491c..3a2c4c8 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/lable/LabelService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/lable/LabelService.java @@ -1,202 +1,202 @@ -package com.yeshi.fanli.service.inter.lable; - - -import java.io.InputStream; -import java.util.List; -import java.util.Map; - -import org.springframework.web.multipart.MultipartFile; - -import com.yeshi.fanli.entity.bus.lable.Label; -import com.yeshi.fanli.entity.bus.lable.LabelGoods; -import com.yeshi.fanli.entity.common.AdminUser; -import com.yeshi.fanli.exception.goods.quality.LabelException; - -public interface LabelService { - - /** - * 鎻掑叆瀵硅薄 - * @param record - * @return - * @throws LabelException - */ - public int insertSelective(Label record) throws LabelException; - - /** - * 鏇存柊褰撳墠瀵硅薄鎵�鏈夋暟鎹� - * @param record - * @return - * @throws LabelException - */ - public int updateByPrimaryKey(Label record) throws LabelException; - - /** - * 閫夋嫨鎬ф洿鏂板唴瀹光�斺�斾笉涓虹┖鍒欐洿鏂拌瀛楁 - * @param record - * @return - * @throws LabelException - */ - public int updateByPrimaryKeySelective(Label record) throws LabelException; - - - - /** - * 鏍规嵁id鏌ユ壘褰撳墠瀵硅薄 - * @param id - * @return - * @throws LabelException - */ - public Label selectByPrimaryKey(Long id) throws LabelException; - - - - /** - * 鏍规嵁id鎵归噺鍒犻櫎 - * @param ids - */ - public int deleteBatchById(long[] ids) throws LabelException; - - /** - * 鏌ヨ鏍囩 - * @param pageIndex 椤电爜 - * @param pageSize 椤甸潰鏉℃暟 - * @param key 鎼滅储鏉′欢 - * @param startTime 璧峰鏃堕棿 - * @param endTime 缁撴潫鏃堕棿 - * @return - */ - public List<Label> query(int pageIndex, int pageSize, String key,String startTime, - String endTime, String orderMode) throws LabelException; - - public int getQueryCount(String key, String startTime, String endTime) throws LabelException; - - - /** - * excel涓婁紶 - * @param in - * @param admin - * @throws Exception - */ - public void analysisExcel(InputStream in, AdminUser admin) throws Exception; - - /** - * 鎵归噺鎻掑叆鏁版嵁 - * @param records - * @param admin - * @throws LabelException - */ - public void insertList(List<Label> records, AdminUser admin) throws LabelException; - - /** - * 涓婁紶鏍囩鍥剧墖 - * @param file - * @param admin - * @return - * @throws LabelException - */ - public int uploadPicture(MultipartFile file,Label label ) throws Exception; - - - /** - * 缁熻浠婃棩褰曞叆鎬绘暟 - * @return - */ - public long getCountToday() throws LabelException; - - - - - public List<Label> selectByTitle(String title) throws LabelException; - - - - - public void deleteBatchByPrimaryKey(List<Long> ids) throws LabelException; - - - - public void updateList(List<Label> records) throws LabelException; - - - public void insertSingle(Label label, AdminUser admin, MultipartFile file) - throws Exception; - - - /** - * 鍒犻櫎鍥剧墖 - * @param label - * @return - * @throws Exception - */ - public int deleteImg(Label label) throws LabelException; - - - /** - * 缁熻鎵�鏈� - * @return - */ - public long getCount(); - - - /** - * 鏌ヨ涓�绾у垎绫� 鏍囩鍊欓�夐」- 鍒嗛〉 - * @param classId - * @return - */ - public List<Label> queryClassCandidate(int start, int count, String key, Long classId) throws LabelException; - - public int getCountQueryClassCandidate(String key, Long classId) throws LabelException; - - - /** - * 鏌ヨ瀛愮骇鍒嗙被 鏍囩鍊欓�夐」- 鍒嗛〉 - * @param subClassId - * @return - */ - public List<Label> querySubClassCandidate(int start, int count, String key, Long subClassId) throws LabelException; - - public int getCountQuerySubClassCandidate(String key, Long subClassId) throws LabelException; - - /** - * 鍟嗗搧鏍囩娣诲姞鍊欓�夐」锛堝凡鎺掗櫎瀛樺湪鏍囩锛� - * @param goodsId - * @return - * @throws LabelException - */ - public List<Label> queryGoodsCandidate(int start, int count, String key, Long classId) throws LabelException; - - public int getCountQueryGoodsCandidate(String key, Long classId) throws LabelException; - - /** - * 鏍规嵁褰曞叆鏂瑰紡缁熻 - * @return - * @throws LabelException - */ - public Map<String, Object> getCountByEntryMode() throws LabelException; - - /** - * 鏌ヨ鍟嗗搧瀵瑰簲鏍囩 - * @param goodsId - * @return - */ - public List<LabelGoods> getByGoodsId(Long goodsId); - - - public Label getByTitleCache(String labKey, String title) throws LabelException; - - /** - * 鏂板缓鏍囩 - * @param lableNames 绌烘牸闅斿紑 - * @param admin - * @return - */ - public List<Label> addBatchByNames(String lableNames, AdminUser admin) throws LabelException; - - /** - * 澶氫釜鏍囩鏌ヨ - * @param list - * @return - */ - public List<Label> listByTitlesCache(List<String> list); - -} +package com.yeshi.fanli.service.inter.lable; + + +import java.io.InputStream; +import java.util.List; +import java.util.Map; + +import org.springframework.web.multipart.MultipartFile; + +import com.yeshi.fanli.entity.bus.lable.Label; +import com.yeshi.fanli.entity.bus.lable.LabelGoods; +import com.yeshi.fanli.entity.common.AdminUser; +import com.yeshi.fanli.exception.goods.quality.LabelException; + +public interface LabelService { + + /** + * 鎻掑叆瀵硅薄 + * @param record + * @return + * @throws LabelException + */ + public int insertSelective(Label record) throws LabelException; + + /** + * 鏇存柊褰撳墠瀵硅薄鎵�鏈夋暟鎹� + * @param record + * @return + * @throws LabelException + */ + public int updateByPrimaryKey(Label record) throws LabelException; + + /** + * 閫夋嫨鎬ф洿鏂板唴瀹光�斺�斾笉涓虹┖鍒欐洿鏂拌瀛楁 + * @param record + * @return + * @throws LabelException + */ + public int updateByPrimaryKeySelective(Label record) throws LabelException; + + + + /** + * 鏍规嵁id鏌ユ壘褰撳墠瀵硅薄 + * @param id + * @return + * @throws LabelException + */ + public Label selectByPrimaryKey(Long id) throws LabelException; + + + + /** + * 鏍规嵁id鎵归噺鍒犻櫎 + * @param ids + */ + public int deleteBatchById(long[] ids) throws LabelException; + + /** + * 鏌ヨ鏍囩 + * @param pageIndex 椤电爜 + * @param pageSize 椤甸潰鏉℃暟 + * @param key 鎼滅储鏉′欢 + * @param startTime 璧峰鏃堕棿 + * @param endTime 缁撴潫鏃堕棿 + * @return + */ + public List<Label> query(int pageIndex, int pageSize, String key,String startTime, + String endTime, String orderMode) throws LabelException; + + public int getQueryCount(String key, String startTime, String endTime) throws LabelException; + + + /** + * excel涓婁紶 + * @param in + * @param admin + * @throws Exception + */ + public void analysisExcel(InputStream in, AdminUser admin) throws Exception; + + /** + * 鎵归噺鎻掑叆鏁版嵁 + * @param records + * @param admin + * @throws LabelException + */ + public void insertList(List<Label> records, AdminUser admin) throws LabelException; + + /** + * 涓婁紶鏍囩鍥剧墖 + * @param file + * @param admin + * @return + * @throws LabelException + */ + public int uploadPicture(MultipartFile file,Label label ) throws Exception; + + + /** + * 缁熻浠婃棩褰曞叆鎬绘暟 + * @return + */ + public long getCountToday() throws LabelException; + + + + + public List<Label> selectByTitle(String title) throws LabelException; + + + + + public void deleteBatchByPrimaryKey(List<Long> ids) throws LabelException; + + + + public void updateList(List<Label> records) throws LabelException; + + + public void insertSingle(Label label, AdminUser admin, MultipartFile file) + throws Exception; + + + /** + * 鍒犻櫎鍥剧墖 + * @param label + * @return + * @throws Exception + */ + public int deleteImg(Label label) throws LabelException; + + + /** + * 缁熻鎵�鏈� + * @return + */ + public long getCount(); + + + /** + * 鏌ヨ涓�绾у垎绫� 鏍囩鍊欓�夐」- 鍒嗛〉 + * @param classId + * @return + */ + public List<Label> queryClassCandidate(int start, int count, String key, Long classId) throws LabelException; + + public int getCountQueryClassCandidate(String key, Long classId) throws LabelException; + + + /** + * 鏌ヨ瀛愮骇鍒嗙被 鏍囩鍊欓�夐」- 鍒嗛〉 + * @param subClassId + * @return + */ + public List<Label> querySubClassCandidate(int start, int count, String key, Long subClassId) throws LabelException; + + public int getCountQuerySubClassCandidate(String key, Long subClassId) throws LabelException; + + /** + * 鍟嗗搧鏍囩娣诲姞鍊欓�夐」锛堝凡鎺掗櫎瀛樺湪鏍囩锛� + * @param goodsId + * @return + * @throws LabelException + */ + public List<Label> queryGoodsCandidate(int start, int count, String key, Long classId) throws LabelException; + + public int getCountQueryGoodsCandidate(String key, Long classId) throws LabelException; + + /** + * 鏍规嵁褰曞叆鏂瑰紡缁熻 + * @return + * @throws LabelException + */ + public Map<String, Object> getCountByEntryMode() throws LabelException; + + /** + * 鏌ヨ鍟嗗搧瀵瑰簲鏍囩 + * @param goodsId + * @return + */ + public List<LabelGoods> getByGoodsId(Long goodsId); + + + public Label getByTitleCache(String labKey, String title) throws LabelException; + + /** + * 鏂板缓鏍囩 + * @param lableNames 绌烘牸闅斿紑 + * @param admin + * @return + */ + public List<Label> addBatchByNames(String lableNames, AdminUser admin) throws LabelException; + + /** + * 澶氫釜鏍囩鏌ヨ + * @param list + * @return + */ + public List<Label> listByTitlesCache(List<String> list); + +} -- Gitblit v1.8.0