From 30d8e227e8d823b6c38c3b9c90ac2df03b63befe Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 25 二月 2025 16:41:22 +0800 Subject: [PATCH] 淘宝转链接口更新 --- fanli/src/main/java/com/yeshi/fanli/service/inter/order/config/HongBaoManageService.java | 362 +++++++++++++++++++++++++------------------------- 1 files changed, 181 insertions(+), 181 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/order/config/HongBaoManageService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/order/config/HongBaoManageService.java index ef9f80b..0c11899 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/order/config/HongBaoManageService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/order/config/HongBaoManageService.java @@ -1,181 +1,181 @@ -package com.yeshi.fanli.service.inter.order.config; - -import java.math.BigDecimal; -import java.util.List; -import java.util.Map; - -import org.springframework.cache.annotation.CacheEvict; - -import com.yeshi.fanli.dto.order.OrderHongBaoRateParams; -import com.yeshi.fanli.entity.bus.user.HongBaoManage; -import com.yeshi.fanli.exception.order.HongBaoException; - -public interface HongBaoManageService { - - @CacheEvict(value = "homeBaoManage", allEntries = true) - public void update(List<HongBaoManage> hongBaoManageList); - - public String get(String key); - - public Map<String, String> convertMap(); - - /** - * 鑾峰彇杩斿埄璁㈠崟杩斿埄姣斾緥 - * - * @param time - * @return - */ - public BigDecimal getFanLiRate(long time); - - /** - * VIP鐢ㄦ埛杩斿埄姣斾緥 - * - * @param time - * @return - */ - public BigDecimal getVIPFanLiRate(long time); - - /** - * 鑾峰彇鍒嗕韩璁㈠崟杩斿埄姣斾緥 - * - * @param time - * @return - */ - public BigDecimal getShareRate(long time); - - /** - * 鑾峰彇VIP鐢ㄦ埛鐨勫垎浜瘮渚� - * - * @param time - * @return - */ - public BigDecimal getVIPShareRate(long time); - - /** - * 鑾峰彇杩斿埄璁㈠崟杩斿埄姣斾緥 - * - * @return - */ - public BigDecimal getFanLiRate(); - - /** - * 鑾峰彇鍒嗕韩璁㈠崟杩斿埄姣斾緥 - * - * @return - */ - public BigDecimal getShareRate(); - - /** - * 鑾峰彇VIP杩斿埄璁㈠崟杩斿埄姣斾緥 - * - * @return - */ - public BigDecimal getVIPFanLiRate(); - - /** - * 鑾峰彇VIP鍒嗕韩璁㈠崟杩斿埄姣斾緥 - * - * @return - */ - public BigDecimal getVIPShareRate(); - - /** - * 鑾峰彇绗竴绾х殑閭�璇疯禋姣斾緥 - * - * @return - */ - public BigDecimal getFirstInviteRate(int urank); - - /** - * 鑾峰彇绗竴绾х殑閭�璇疯禋姣斾緥 - * - * @param time - * @return - */ - public BigDecimal getFirstInviteRate(int urank, long time); - - /** - * 鑾峰彇绗簩绾х殑閭�璇疯禋姣斾緥 - * - * @return - */ - public BigDecimal getSecondInviteRate(int urank); - - /** - * 鑾峰彇绗簩绾х殑閭�璇疯禋姣斾緥 - * - * @param time - * @return - */ - public BigDecimal getSecondInviteRate(int urank, long time); - - /** - * 鑾峰彇绗竴绾х殑鍒嗕韩璧氭瘮渚� - * - * @return - */ - public BigDecimal getFirstShareRate(int urank); - - /** - * 鑾峰彇绗竴绾х殑鍒嗕韩璧氭瘮渚� - * - * @param time - * @return - */ - public BigDecimal getFirstShareRate(int urank, long time); - - /** - * 鑾峰彇绗簩绾х殑鍒嗕韩璧氭瘮渚� - * - * @return - */ - public BigDecimal getSecondShareRate(int urank); - - /** - * 鑾峰彇绗簩绾х殑鍒嗕韩璧氭瘮渚� - * - * @param time - * @return - */ - public BigDecimal getSecondShareRate(int urank, long time); - - /** - * 娣樼ぜ閲戣繑鍒╂瘮渚� - * - * @return - */ - public BigDecimal getTLJFanLiRate(); - - /** - * 娣樼ぜ閲戝垎浜瘮渚� - * - * @return - */ - public BigDecimal getTLJShareRate(long time); - - /** - * 鑾峰彇閭�璇蜂竴绾цˉ璐存瘮渚� - * - * @param time - * @return - */ - public BigDecimal getInviteFirstLevelSubsidyRate(Long time); - - /** - * 鑾峰彇閭�璇蜂簩绾цˉ璐存瘮渚� - * - * @param time - * @return - */ - public BigDecimal getInviteSecondLevelSubsidyRate(Long time); - - /** - * 鑾峰彇杩斿埄姣斾緥锛堣鍗曞鐞嗘椂浣跨敤锛� - * - * @param params - * @return - * @throws HongBaoException - */ - public BigDecimal getRate(OrderHongBaoRateParams params) throws HongBaoException; - -} +package com.yeshi.fanli.service.inter.order.config; + +import java.math.BigDecimal; +import java.util.List; +import java.util.Map; + +import com.yeshi.fanli.entity.SystemEnum; +import org.springframework.cache.annotation.CacheEvict; + +import com.yeshi.fanli.dto.GoodsMoneyConfigParamsDTO; +import com.yeshi.fanli.entity.bus.user.HongBaoManage; +import com.yeshi.fanli.entity.bus.user.vip.UserLevelEnum; + +public interface HongBaoManageService { + + @CacheEvict(value = "homeBaoManage", allEntries = true) + public void update(List<HongBaoManage> hongBaoManageList); + + public String get(String key, SystemEnum system); + + public BigDecimal getByKeyAndMaxTime(String key, Long time, SystemEnum system); + + public BigDecimal getByKeyAndMaxTimeCache(String key, Long time, SystemEnum system); + + public Map<String, String> convertMap( SystemEnum system); + + /** + * 鑾峰彇杩斿埄璁㈠崟杩斿埄姣斾緥 + * + * @param time + * @return + */ + public BigDecimal getFanLiRate(UserLevelEnum level, long time, SystemEnum system); + + /** + * 鑾峰彇鍒嗕韩璁㈠崟杩斿埄姣斾緥 + * + * @param time + * @return + */ + public BigDecimal getShareRate(UserLevelEnum level, long time, SystemEnum system); + + /** + * 鑾峰彇杩斿埄璁㈠崟杩斿埄姣斾緥 + * + * @return + */ + public BigDecimal getFanLiRate(UserLevelEnum level, SystemEnum system); + + + public BigDecimal getFanLiRate(SystemEnum system); + + /** + * 鑾峰彇鍒嗕韩璁㈠崟杩斿埄姣斾緥 + * + * @return + */ + public BigDecimal getShareRate(UserLevelEnum level, SystemEnum system); + + public BigDecimal getShareRate(SystemEnum system); + + /** + * 鑾峰彇绗竴绾х殑閭�璇疯禋姣斾緥 + * + * @return + */ + public BigDecimal getFirstInviteRate(int urank, SystemEnum system); + + /** + * 鑾峰彇绗竴绾х殑閭�璇疯禋姣斾緥 + * + * @param time + * @return + */ + public BigDecimal getFirstInviteRate(int urank, long time, SystemEnum system); + + /** + * 鑾峰彇绗簩绾х殑閭�璇疯禋姣斾緥 + * + * @return + */ + public BigDecimal getSecondInviteRate(int urank, SystemEnum system); + + /** + * 鑾峰彇绗簩绾х殑閭�璇疯禋姣斾緥 + * + * @param time + * @return + */ + public BigDecimal getSecondInviteRate(int urank, long time, SystemEnum system); + + /** + * 鑾峰彇绗竴绾х殑鍒嗕韩璧氭瘮渚� + * + * @return + */ + public BigDecimal getFirstShareRate(int urank, SystemEnum system); + + /** + * 鑾峰彇绗竴绾х殑鍒嗕韩璧氭瘮渚� + * + * @param time + * @return + */ + public BigDecimal getFirstShareRate(int urank, long time, SystemEnum system); + + /** + * 鑾峰彇绗簩绾х殑鍒嗕韩璧氭瘮渚� + * + * @return + */ + public BigDecimal getSecondShareRate(int urank, SystemEnum system); + + /** + * 鑾峰彇绗簩绾х殑鍒嗕韩璧氭瘮渚� + * + * @param time + * @return + */ + public BigDecimal getSecondShareRate(int urank, long time, SystemEnum system); + + /** + * 娣樼ぜ閲戣繑鍒╂瘮渚� + * + * @return + */ + public BigDecimal getTLJFanLiRate(SystemEnum system); + + /** + * 娣樼ぜ閲戝垎浜瘮渚� + * + * @return + */ + public BigDecimal getTLJShareRate(long time, SystemEnum system); + + /** + * 鑾峰彇閭�璇蜂竴绾цˉ璐存瘮渚� + * + * @param time + * @return + */ + public BigDecimal getInviteFirstLevelSubsidyRate(Long time, SystemEnum system); + + /** + * 鑾峰彇閭�璇蜂簩绾цˉ璐存瘮渚� + * + * @param time + * @return + */ + public BigDecimal getInviteSecondLevelSubsidyRate(Long time, SystemEnum system); + + /** + * 鑾峰彇闇�瑕佹樉绀鸿绠楃殑姣斾緥瀹炰綋 + * + * @param platform + * @param version + * @return + */ + public GoodsMoneyConfigParamsDTO getShowComputeRate(String platform, String version, UserLevelEnum userLevel, SystemEnum system); + + + public GoodsMoneyConfigParamsDTO getShowComputeRate(String platform, String version, SystemEnum system); + + /** + * 鑾峰彇鍩虹鐨勮繑鍒╂瘮渚� + * + * @param time + * @return + */ + public BigDecimal getBaseFanliRate(long time, SystemEnum system); + + /** + * 鑾峰彇鍩虹鐨勮繑鍒╂瘮渚� + * + * @return + */ + public BigDecimal getBaseFanliRate( SystemEnum system); + + public BigDecimal getBaseFanliRateCache(long time, SystemEnum system); + +} -- Gitblit v1.8.0