| | |
| | | @Service
|
| | | public class HongBaoV2CountServiceImpl implements HongBaoV2CountService {
|
| | |
|
| | | |
| | | |
| | | @Resource
|
| | | private HongBaoV2CountMapper hongBaoV2CountMapper;
|
| | |
|
| | |
| | |
|
| | | @Override
|
| | | public long countMyDirectOrderByCashArrival(Long uid, BigDecimal payment) {
|
| | | Long count = hongBaoV2CountMapper.countMyDirectOrderByCashArrival(uid, payment);
|
| | | Long count = hongBaoV2CountMapper.countMyDirectOrderByCashArrival(uid, payment, null);
|
| | | if (count == null) {
|
| | | count = 0L;
|
| | | }
|
| | |
| | |
|
| | |
|
| | | @Override
|
| | | public long countMyDirectOrderByCashArrival(Long uid, BigDecimal payment, Integer type) {
|
| | | Long count = hongBaoV2CountMapper.countMyDirectOrderByCashArrival(uid, payment, type);
|
| | | if (count == null) {
|
| | | count = 0L;
|
| | | }
|
| | | return count;
|
| | | }
|
| | | |
| | | @Override
|
| | | public long countMyDirectOrderByCashNotArrival(Long uid, BigDecimal payment, Integer type) {
|
| | | Long count = hongBaoV2CountMapper.countMyDirectOrderByCashNotArrival(uid, payment, type);
|
| | | if (count == null) {
|
| | | count = 0L;
|
| | | }
|
| | | return count;
|
| | | }
|
| | | |
| | | @Override
|
| | | public BigDecimal getRewardMoneyToCount(Long uid, Integer dateType, Integer hbType, List<Integer> listSource) {
|
| | | BigDecimal money = hongBaoV2CountMapper.getRewardMoneyByDate(uid, dateType, hbType, null, null, null, null, null, listSource);
|
| | | if (money == null)
|
| | |
| | | return money;
|
| | | }
|
| | |
|
| | | |
| | | @Override
|
| | | public BigDecimal geBonusByuid(Long uid, Integer dateType, Integer hbType, Integer moneyState) {
|
| | | BigDecimal money = hongBaoV2CountMapper.getRewardMoneyByDate(uid, dateType, hbType, null, null, moneyState, null, null, null);
|