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);
|
|
}
|