admin
2019-03-22 31c87f9868f01facd0c360ab49e3970beca9988d
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
package com.yeshi.fanli.service.impl.user;
 
import java.math.BigDecimal;
 
import javax.annotation.Resource;
 
import org.springframework.stereotype.Service;
 
import com.yeshi.fanli.dao.mybatis.share.ShareMapper;
import com.yeshi.fanli.service.inter.user.UserMoneyService;
 
@Service
public class UserMoneyServiceImpl implements UserMoneyService {
 
    @Resource
    private ShareMapper shareMapper;
 
    @Override
    public BigDecimal getMoneyToday(Long uid) {
        BigDecimal money = shareMapper.getMoneyToday(uid + "");
        return money == null ? new BigDecimal(0) : money;
    }
 
    @Override
    public BigDecimal getMoneyMonth(Long uid) {
        BigDecimal money = shareMapper.getMoneyMonth(uid + "");
        return money == null ? new BigDecimal(0) : money;
    }
 
    @Override
    public BigDecimal getMoneyLastMonth(Long uid) {
        BigDecimal money = shareMapper.getMoneyLastMonth(uid + "");
 
        return money == null ? new BigDecimal(0) : money;
    }
 
}