| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查看最新的十条中奖记录 |
| | | */ |
| | | @ApiOperation(value = "查看最新的十条中奖记录") |
| | | @ApiResponses({@ApiResponse( code = 200, message = "success", response = CannonWinRecordVo.class)}) |
| | | @GetMapping(value = "/getListAwards") |
| | | public Result getListAwards() { |
| | | return memberCannonService.getListAwards(); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | CannonSetting selectCannonSettingByCannonCode(@Param("cannonCode")String cannonCode); |
| | | |
| | | IPage<CannonWinRecordVo> findCannonWinRecordInPage(Page<CannonWinRecordVo> page, @Param("cannonWinRecord")CannonWinRecord cannonWinRecord); |
| | | |
| | | List<CannonWinRecordVo> findCannonWinRecordList(); |
| | | } |
| | |
| | | Result lotteryDraw(LotteryDrawDto lotteryDrawDto); |
| | | |
| | | Result getOwnAwards(CannonWinRecordDto cannonWinRecordDto); |
| | | |
| | | Result getListAwards(); |
| | | } |
| | |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | @Override |
| | | public Result getListAwards() { |
| | | Long memberId = LoginUserUtils.getAppLoginUser().getId(); |
| | | List<CannonWinRecordVo> list = cannonSettingDao.findCannonWinRecordList(); |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | private CannonAwardVo getAward(Long memberId) { |
| | | CannonAwardVo cannonAwardVo = new CannonAwardVo(); |
| | | //获取所有的奖品列表 |
| | |
| | | order by a.id asc |
| | | </select> |
| | | |
| | | <select id="findCannonWinRecordList" resultType="com.xcong.excoin.modules.fish.vo.CannonWinRecordVo"> |
| | | select a.* from cannon_win_record a |
| | | order by a.create_time desc limit 0,10 |
| | | </select> |
| | | |
| | | </mapper> |