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