|
|
@@ -6,9 +6,11 @@ import com.fs.common.core.redis.RedisCache;
|
|
|
import com.fs.common.utils.DateUtils;
|
|
|
import com.fs.live.domain.LiveLotteryConf;
|
|
|
import com.fs.live.domain.LiveLotteryRegistration;
|
|
|
+import com.fs.live.domain.LiveUserLotteryRecord;
|
|
|
import com.fs.live.mapper.LiveLotteryConfMapper;
|
|
|
import com.fs.live.mapper.LiveLotteryProductConfMapper;
|
|
|
import com.fs.live.mapper.LiveLotteryRegistrationMapper;
|
|
|
+import com.fs.live.mapper.LiveUserLotteryRecordMapper;
|
|
|
import com.fs.live.param.LiveLotteryProduct;
|
|
|
import com.fs.live.param.LiveLotteryProductSaveParam;
|
|
|
import com.fs.live.param.LotteryPO;
|
|
|
@@ -16,6 +18,7 @@ import com.fs.live.service.ILiveLotteryConfService;
|
|
|
import com.fs.live.vo.LiveLotteryConfVo;
|
|
|
import com.fs.live.vo.LiveLotteryProductListVo;
|
|
|
import com.fs.live.vo.LiveLotteryProductVO;
|
|
|
+import com.fs.live.vo.LiveUserLotteryRecordVo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
@@ -42,6 +45,8 @@ public class LiveLotteryConfServiceImpl implements ILiveLotteryConfService {
|
|
|
private RedisCache redisCache;
|
|
|
@Autowired
|
|
|
private LiveLotteryRegistrationMapper lotteryRegistrationMapper;
|
|
|
+ @Autowired
|
|
|
+ private LiveUserLotteryRecordMapper liveUserLotteryRecordMapper;
|
|
|
|
|
|
@Autowired
|
|
|
private LiveLotteryConfMapper baseMapper;
|
|
|
@@ -271,5 +276,10 @@ public class LiveLotteryConfServiceImpl implements ILiveLotteryConfService {
|
|
|
return baseMapper.selectLiveLotteryConfListOn(liveLotteryConf);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<LiveUserLotteryRecordVo> myLottery(long userId) {
|
|
|
+ return liveUserLotteryRecordMapper.selectLiveUserLotteryRecordByUserId(userId);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|