| | |
| | | totalGoldCoin += record.getGoldCoin();
|
| | | }
|
| | |
|
| | | Integer goldCoin = userInfoExtra.getGoldCoin();
|
| | | if (goldCoin == null)
|
| | | goldCoin = 0;
|
| | |
|
| | | goldCoin = goldCoin + totalGoldCoin;
|
| | |
|
| | | // 更新金币
|
| | | userInfoExtraService.updateGoldCoin(userInfoExtra.getId(), goldCoin);
|
| | | userInfoExtraService.updateGoldCoin(userInfoExtra.getId(), totalGoldCoin);
|
| | |
|
| | | return goldCoin;
|
| | | return totalGoldCoin+(userInfoExtra.getGoldCoin()==null?0:userInfoExtra.getGoldCoin());
|
| | | }
|
| | |
|
| | | @Transactional
|
| | |
| | | FrequencyEnum frequency = integralTask.getFrequency();
|
| | | if (frequency == FrequencyEnum.everyday) {
|
| | | int num = integralTaskRecordMapper.countByTaskIdTodayNum(uid, taskId,
|
| | | TimeUtil.getWholeTime(record.getCreateTime().getTime()));
|
| | | TimeUtil.getWholeTime(record.getCreateTime().getTime()), record.getId());
|
| | | if (num <= 0)
|
| | | num = 1;
|
| | | String title = taskClass.getName() + "-" + integralTask.getName() + "-第" + num + "次";
|
| | |
| | | return integralTaskRecordMapper.listByUidAndTaskId(uid, taskId, (page - 1) * count, count);
|
| | | }
|
| | |
|
| | | |
| | | @Override
|
| | | public long getTotalGoldCoinByUid(Long uid) {
|
| | | return integralTaskRecordMapper.getTotalGoldCoinByUid(uid);
|
| | | }
|
| | | |
| | | |
| | | |
| | | @Async()
|
| | | @Override
|
| | | public void firstRebateOrderRewardBoss(Long uid, Long originUid, String beizu) {
|