KKSU
2024-05-23 bc5265e2bc4d6a7da6f2dd5d6af6037d05761187
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package cc.mrbird.febs.dapp.service;
 
import cc.mrbird.febs.common.entity.FebsConstant;
import cc.mrbird.febs.dapp.entity.DappAchieve;
import cc.mrbird.febs.dapp.entity.DappFundFlowEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.scheduling.annotation.Async;
 
import java.math.BigDecimal;
import java.util.List;
 
public interface AsyncCjService extends IService<DappAchieve> {
    /**
     * 缓存redis数据
     */
    @Async(FebsConstant.ASYNC_POOL)
    void redisCacheUpdate(String key, Object value, long time);
 
    @Async(FebsConstant.ASYNC_POOL)
    void updateDataDicEnumRedis(List<String> nameList);
 
    @Async(FebsConstant.ASYNC_POOL)
    void updateAmount(Integer type, Long memberId, BigDecimal amount);
 
    @Async(FebsConstant.ASYNC_POOL)
    void insertTeamPerk(Long flowId, Long achieveId);
 
//    @Async(FebsConstant.ASYNC_POOL)
    void tradeProfitDistribute();
 
    @Async(FebsConstant.ASYNC_POOL)
    void confirmOrder(DappFundFlowEntity dappFundFlowEntity);
 
    @Async(FebsConstant.ASYNC_POOL)
    void confirmCancel(DappFundFlowEntity dappFundFlowEntity);
 
    @Async(FebsConstant.ASYNC_POOL)
    void calculateAchieve(DappAchieve dappAchieve);
}