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/activity/ActivityService.java | 520 ++++++++++++++++++++++++++++++--------------------------- 1 files changed, 271 insertions(+), 249 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/activity/ActivityService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/activity/ActivityService.java index 53e9a15..04e3e35 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/activity/ActivityService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/activity/ActivityService.java @@ -1,249 +1,271 @@ -package com.yeshi.fanli.service.inter.activity; - -import java.util.List; - -import net.sf.json.JSONObject; - -import com.yeshi.fanli.entity.bus.activity.ActivityShareResult; -import com.yeshi.fanli.entity.bus.activity.ActivityUser; -import com.yeshi.fanli.entity.bus.activity.RecommendActivity; -import com.yeshi.fanli.entity.bus.activity.RecommendActivityInviteInfo; -import com.yeshi.fanli.exception.ActivityException; - -/** - * 鍔ㄦ�佹湇鍔� - * - * @author Administrator - * - */ -public interface ActivityService { - - public int insert(RecommendActivity record); - - public int insertSelective(RecommendActivity record); - - public RecommendActivity selectByPrimaryKey(Long id); - - public int updateByPrimaryKeySelective(RecommendActivity record); - - public int updateByPrimaryKey(RecommendActivity record); - - /** - * 鑾峰彇娲诲姩鐢ㄦ埛鍒楄〃 - * - * @return - */ - public List<ActivityUser> getActivityUserList(); - - /** - * 娣诲姞鍟嗗搧鍒嗕韩鐨勫姩鎬� - * - * @param activityUid - * @param title - * @param goodsList - * @param top - * @return - */ - public RecommendActivity addShareGoodsRecommendActivity(Long activityUid, String title, List<Long> goodsList, - boolean top, int shareCount) throws ActivityException; - - /** - * 淇敼鍟嗗搧鍒嗕韩鍔ㄦ�� - * - * @param id - * @param activityUid - * @param title - * @param goodsList - * @param top - * @param shareCount - * @return - * @throws ActivityException - */ - public RecommendActivity updateShareGoodsRecommendActivity(Long id, Long activityUid, String title, - List<Long> goodsList, boolean top, int shareCount) throws ActivityException; - - /** - * 鏇存柊鍒嗕韩鍟嗗搧鍔ㄦ�佺殑鍟嗗搧 - * - * @param id - * @param activityUid - * @param title - * @param goodsList - * @param top - * @param shareCount - * @return - * @throws ActivityException - */ - public void upgradeShareGoodsRecommendActivity(Long id) throws ActivityException; - - /** - * 娣诲姞閭�璇峰浘鍔ㄦ�� - * - * @param activityUid - * @param title - * @param url - * @param top - * @param shareCount - * @param px - * -浜岀淮鐮佸潗鏍嘪 - * @param py - * -浜岀淮鐮佸潗鏍嘫 - * @param erCodeSize - * -浜岀淮鐮佸昂瀵� - * @return - * @throws ActivityException - */ - public RecommendActivity addInviteImgRecommendActivity(Long activityUid, String title, String url, boolean top, - int shareCount, int px, int py, int erCodeSize) throws ActivityException; - - /** - * 淇敼閭�璇峰浘鍔ㄦ�� - * - * @param id - * @param activityUid - * @param title - * @param url - * @param top - * @param shareCount - * @param px - * @param py - * @param erCodeSize - * @return - * @throws ActivityException - */ - public RecommendActivity updateInviteImgRecommendActivity(Long id, Long activityUid, String title, String url, - boolean top, int shareCount, int px, int py, int erCodeSize) throws ActivityException; - - /** - * 娣诲姞鍥炬枃鍔ㄦ�� - * - * @param activityUid - * @param title - * @param imgList - * @param top - * @return - */ - public RecommendActivity addTextAndImgRecommendActivity(Long activityUid, String title, List<String> imgList, - boolean top, int shareCount) throws ActivityException; - - /** - * 淇敼鍥炬枃鍔ㄦ�� - * - * @param id - * @param activityUid - * @param title - * @param imgList - * @param top - * @param shareCount - * @return - * @throws ActivityException - */ - public RecommendActivity updateTextAndImgRecommendActivity(Long id, Long activityUid, String title, - List<String> imgList, boolean top, int shareCount) throws ActivityException; - - /** - * 鑾峰彇鎺ㄨ崘娲诲姩鍒楄〃 - * - * @param page - * @param pageSize - * @return - */ - public List<RecommendActivity> getRecommendActivityList(int page, int pageSize); - - - public List<RecommendActivity> getRecommendActivityListCache(int page, int pageSize); - - /** - * 鑾峰彇鎺ㄨ崘娲诲姩鐨勬暟閲� - * - * @return - */ - public long getRecommendActivityCount(); - - - public long getRecommendActivityCountCache(); - - public List<RecommendActivity> getRecommendActivityList(int type, int page, int pageSize); - - public long getRecommendActivityCount(int type); - - /** - * 鍒嗕韩鍟嗗搧 - * - * @param uid - * @param activityId - * @return - */ - public ActivityShareResult shareActivityGoods(Long uid, Long activityId) throws ActivityException; - - /** - * 鍒嗕韩閭�璇峰浘鐗� - * - * @param uid - * @param activityId - * @return - * @throws ActivityException - */ - public ActivityShareResult shareInviteImg(Long uid, Long activityId) throws ActivityException; - - /** - * 鍔ㄦ�佸垪琛ㄦ煡璇� - * - * @param title - * @param page - * @param pageSize - * @return - */ - public List<RecommendActivity> queryRecommendActivityList(String title, int page, int pageSize); - - /** - * 鍔ㄦ�佸垪琛ㄥ垹闄� - * - * @param ids - */ - public void deleteRecommendActivity(long[] ids); - - /** - * 鑾峰彇鎺ㄨ崘璇︽儏 - * - * @param id - * @return - */ - public RecommendActivity getRecommendActivityById(Long id); - - /** - * 澧炲姞鍒嗕韩鐨勬鏁� - * - * @param activityId - * @param count - */ - public void addShareCount(Long activityId, int count); - - /** - * 鑾峰彇閭�璇蜂俊鎭� - * - * @param activityId - * @return - */ - public RecommendActivityInviteInfo getRecommendActivityInviteInfoByActivityId(Long activityId); - - /** - * 澶勭悊娣樺疂鐨勫晢鍝佷笅鏋堕棶棰� - * - * @param auctionId - */ - public void downTaoBaoGoods(Long auctionId); - - public RecommendActivity getRecommendActivityDetail(Long activityId); - - public ActivityUser selectActivityUserByPrimaryKey(Long id); - - /** - * 鍔ㄦ�佸垎浜� - * @param uid - * @param activityId - * @return - * @throws ActivityException - */ - public JSONObject shareGoodsV2(Long uid, Long activityId) throws ActivityException; -} +package com.yeshi.fanli.service.inter.activity; + +import java.util.List; + +import net.sf.json.JSONObject; + +import com.yeshi.fanli.entity.bus.activity.ActivityShareResult; +import com.yeshi.fanli.entity.bus.activity.ActivityUser; +import com.yeshi.fanli.entity.bus.activity.RecommendActivity; +import com.yeshi.fanli.entity.bus.activity.RecommendActivityInviteInfo; +import com.yeshi.goods.facade.entity.taobao.TaoBaoGoodsBrief; +import com.yeshi.fanli.exception.ActivityException; +import com.yeshi.fanli.exception.share.UserShareGoodsRecordException; + +/** + * 鍔ㄦ�佹湇鍔� + * + * @author Administrator + * + */ +public interface ActivityService { + + public int insert(RecommendActivity record); + + public int insertSelective(RecommendActivity record); + + public RecommendActivity selectByPrimaryKey(Long id); + + public int updateByPrimaryKeySelective(RecommendActivity record); + + public int updateByPrimaryKey(RecommendActivity record); + + /** + * 鑾峰彇娲诲姩鐢ㄦ埛鍒楄〃 + * + * @return + */ + public List<ActivityUser> getActivityUserList(); + + /** + * 娣诲姞鍟嗗搧鍒嗕韩鐨勫姩鎬� + * + * @param activityUid + * @param title + * @param goodsList + * @param top + * @return + */ + public RecommendActivity addShareGoodsRecommendActivity(Long activityUid, List<String> goodsList,RecommendActivity activity) throws ActivityException, Exception; + + /** + * 淇敼鍟嗗搧鍒嗕韩鍔ㄦ�� + * + * @param id + * @param activityUid + * @param title + * @param goodsList + * @param top + * @param shareCount + * @return + * @throws ActivityException + */ + public RecommendActivity updateShareGoodsRecommendActivity(Long activityUid, List<String> goodsList, + RecommendActivity activity) throws ActivityException, Exception; + + /** + * 鏇存柊鍒嗕韩鍟嗗搧鍔ㄦ�佺殑鍟嗗搧 + * + * @param id + * @param activityUid + * @param title + * @param goodsList + * @param top + * @param shareCount + * @return + * @throws ActivityException + */ + public void upgradeShareGoodsRecommendActivity(Long id) throws ActivityException; + + /** + * 娣诲姞閭�璇峰浘鍔ㄦ�� + * + * @param activityUid + * @param title + * @param url + * @param top + * @param shareCount + * @param px + * -浜岀淮鐮佸潗鏍嘪 + * @param py + * -浜岀淮鐮佸潗鏍嘫 + * @param erCodeSize + * -浜岀淮鐮佸昂瀵� + * @return + * @throws ActivityException + */ + public RecommendActivity addInviteImgRecommendActivity(Long activityUid, RecommendActivity activity, String url, + int px, int py, int erCodeSize) throws ActivityException, Exception; + + /** + * 淇敼閭�璇峰浘鍔ㄦ�� + * + * @param id + * @param activityUid + * @param title + * @param url + * @param top + * @param shareCount + * @param px + * @param py + * @param erCodeSize + * @return + * @throws ActivityException + */ + public RecommendActivity updateInviteImgRecommendActivity(Long activityUid, RecommendActivity activity, String url, + int px, int py, int erCodeSize) throws ActivityException, Exception; + + /** + * 娣诲姞鍥炬枃鍔ㄦ�� + * + * @param activityUid + * @param title + * @param imgList + * @param top + * @return + */ + public RecommendActivity addTextAndImgRecommendActivity(Long activityUid, List<String> imgList, + RecommendActivity activity) throws ActivityException, Exception; + + /** + * 淇敼鍥炬枃鍔ㄦ�� + * + * @param id + * @param activityUid + * @param title + * @param imgList + * @param top + * @param shareCount + * @return + * @throws ActivityException + */ + public RecommendActivity updateTextAndImgRecommendActivity(Long activityUid, List<String> imgList, + RecommendActivity activity) throws ActivityException, Exception; + + /** + * 鑾峰彇鎺ㄨ崘娲诲姩鍒楄〃 + * + * @param page + * @param pageSize + * @return + */ + public List<RecommendActivity> getRecommendActivityList(int page, int pageSize); + + + public List<RecommendActivity> getRecommendActivityListCache(int page, int pageSize); + + /** + * 鑾峰彇鎺ㄨ崘娲诲姩鐨勬暟閲� + * + * @return + */ + public long getRecommendActivityCount(String title); + + + public long getRecommendActivityCountCache(); + + public List<RecommendActivity> getRecommendActivityList(int type, int page, int pageSize); + + public long getRecommendActivityCount(int type); + + /** + * 鍒嗕韩鍟嗗搧 + * + * @param uid + * @param activityId + * @return + * @throws UserShareGoodsRecordException + */ + public ActivityShareResult shareActivityGoods(Long uid, Long activityId) throws ActivityException, UserShareGoodsRecordException; + + /** + * 鍒嗕韩閭�璇峰浘鐗� + * + * @param uid + * @param activityId + * @return + * @throws ActivityException + */ + public ActivityShareResult shareInviteImg(Long uid, Long activityId) throws ActivityException; + + /** + * 鍔ㄦ�佸垪琛ㄦ煡璇� + * + * @param title + * @param page + * @param pageSize + * @return + */ + public List<RecommendActivity> queryRecommendActivityList(String title, int page, int pageSize); + + /** + * 鍔ㄦ�佸垪琛ㄥ垹闄� + * + * @param ids + */ + public void deleteRecommendActivity(long[] ids); + + /** + * 鑾峰彇鎺ㄨ崘璇︽儏 + * + * @param id + * @return + */ + public RecommendActivity getRecommendActivityById(Long id); + + /** + * 澧炲姞鍒嗕韩鐨勬鏁� + * + * @param activityId + * @param count + */ + public void addShareCount(Long activityId, int count); + + /** + * 鑾峰彇閭�璇蜂俊鎭� + * + * @param activityId + * @return + */ + public RecommendActivityInviteInfo getRecommendActivityInviteInfoByActivityId(Long activityId); + + /** + * 澶勭悊娣樺疂鐨勫晢鍝佷笅鏋堕棶棰� + * + * @param auctionId + */ + public void downTaoBaoGoods(String auctionId); + + public RecommendActivity getRecommendActivityDetail(Long activityId); + + public ActivityUser selectActivityUserByPrimaryKey(Long id); + + /** + * 鍔ㄦ�佸垎浜� + * @param uid + * @param activityId + * @return + * @throws ActivityException + */ + public JSONObject shareGoodsV2(Long uid, Long activityId) throws ActivityException, UserShareGoodsRecordException; + + + /** + * 鏇存柊鍔ㄦ�佸晢鍝佽鎯� + * @param goods + */ + public void updateRecommendActivityGoods(TaoBaoGoodsBrief goods); + + /** + * 鏌ヨ闇�鍙戝竷鐨勫姩鎬� + * @return + */ + public List<RecommendActivity> getNeedPublish(); + + /** + * 鍔ㄦ�佸浘鐗� + * @param activityId + * @return + */ + public List<String> getImgByActivityId(Long activityId); +} -- Gitblit v1.8.0