admin
2022-05-10 2922e51a7a8e657a8467c818ae16700e41ddac77
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package com.yeshi.makemoney.app.service.inter.goldcorn;
 
import com.ks.lib.common.exception.ParamsException;
import com.yeshi.makemoney.app.entity.SystemEnum;
import com.yeshi.makemoney.app.exception.goldcorn.GoldCornConsumeRecordException;
import com.yeshi.makemoney.app.exception.goldcorn.GoldCornMoneyExchangeRateRecordException;
import com.yeshi.makemoney.app.exception.goldcorn.GoldCornSettleRecordException;
import com.yeshi.makemoney.app.exception.money.UserMoneyRecordException;
import com.yeshi.makemoney.app.exception.user.UserInfoException;
 
import java.math.BigDecimal;
import java.util.Date;
 
/**
 * @author hxh
 * @title: GoldCornSettleService
 * @description: 金币结算服务
 * @date 2022/4/7 11:14
 */
public interface GoldCornSettleService {
    //获取结算的用户
 
    /**
     * @return void
     * @author hxh
     * @description 开始结算
     * @date 11:46 2022/4/7
     * @param: day
     **/
    public void startSettle(Date day, String remarks, SystemEnum system) throws GoldCornSettleRecordException, ParamsException;
 
 
    /**
     * @return void
     * @author hxh
     * @description 结算某个用户某天的资金
     * @date 11:47 2022/4/7
     * @param: uid
     * @param: day
     * @param: rate 汇率
     **/
    public void settle(Long uid, String day, BigDecimal rate,String settleId) throws GoldCornConsumeRecordException, UserMoneyRecordException;
 
 
    /**
     * @return void
     * @author hxh
     * @description 结算某个用户某天的资金
     * @date 11:47 2022/4/7
     * @param: uid
     * @param: day
     **/
    public void settle(Long uid, String day,String settleId) throws UserInfoException, GoldCornMoneyExchangeRateRecordException, UserMoneyRecordException, GoldCornConsumeRecordException;
 
 
}