| | |
| | | package com.panzhihua.service_community.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.raffle.ComActRafflePrizeCount; |
| | | import com.panzhihua.service_community.dao.ComActRafflePrizeDao; |
| | | import com.panzhihua.service_community.entity.ComActRaffleRecord; |
| | | import com.panzhihua.service_community.dao.ComActRaffleRecordDao; |
| | | import com.panzhihua.service_community.service.ComActRaffleRecordService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * 抽奖活动中奖记录表(ComActRaffleRecord)表服务实现类 |
| | |
| | | @Slf4j |
| | | @Service |
| | | public class ComActRaffleRecordServiceImpl extends ServiceImpl<ComActRaffleRecordDao, ComActRaffleRecord> implements ComActRaffleRecordService { |
| | | @Resource |
| | | private ComActRafflePrizeDao comActRafflePrizeDao; |
| | | |
| | | @Override |
| | | public R pageList(CommonPage commonPage) { |
| | | return null; |
| | | return R.ok(this.baseMapper.pageList(new Page(commonPage.getPage(),commonPage.getSize()),commonPage)); |
| | | } |
| | | |
| | | @Override |
| | | public R queryPrize(Long id) { |
| | | ComActRafflePrizeCount comActRafflePrizeCount= comActRafflePrizeDao.selectCount(id); |
| | | comActRafflePrizeCount.setComActRafflePrizeVOList(comActRafflePrizeDao.selectByRaffleId(id)); |
| | | return R.ok(comActRafflePrizeCount); |
| | | } |
| | | } |