| | |
| | | voList.forEach(x->{ |
| | | if (null == x.getShopId()){ |
| | | x.setCreateObject("平台创建"); |
| | | |
| | | }else { |
| | | //线下抽奖,获取门店名称 |
| | | x.setActivityType(6); |
| | | if(map.containsKey(Long.valueOf(x.getShopId()))){ |
| | | x.setCreateObject(map.get(Long.valueOf(x.getShopId())).getShopName()); |
| | | }else { |
| | |
| | | } |
| | | MgtLotteryEventDetailVO vo = new MgtLotteryEventDetailVO(); |
| | | BeanUtils.copyProperties(lotteryEvent, vo); |
| | | if (lotteryEvent.getActivityType()==6) { |
| | | //线下抽奖 取商户名称 |
| | | Shop data = remoteShopService.getShop(Long.valueOf(lotteryEvent.getShopId())).getData(); |
| | | if (null != data) { |
| | | vo.setShopName(data.getShopName()); |
| | | } |
| | | } |
| | | |
| | | if(lotteryEvent.getActivityType()==5){ |
| | | //题干数据 |
| | | List<TLotteryEventQuestions> questionsList = lotteryEventQuestionsService.getBaseMapper().selectList(new LambdaQueryWrapper<TLotteryEventQuestions>().eq(TLotteryEventQuestions::getLotteryEventId, lotteryEvent.getId())); |
| | |
| | | .eq(TLotteryEventPrize::getLotteryEventId, lotteryEvent.getId()));*/ |
| | | List<TLotteryEventPrize> prizeList = lotteryEventPrizeService.getPrizeListByLotteryEventId(lotteryEvent.getId()); |
| | | vo.setLotteryEventPrizeList(prizeList); |
| | | |
| | | if(null!=lotteryEvent.getShopId()){ |
| | | vo.setActivityType(6); |
| | | //线下抽奖 取商户名称 |
| | | Shop data = remoteShopService.getShop(Long.valueOf(lotteryEvent.getShopId())).getData(); |
| | | if (null != data) { |
| | | vo.setShopName(data.getShopName()); |
| | | } |
| | | } |
| | | return R.ok(vo); |
| | | } |
| | | |