| | |
| | | birthdayGift.setGiftName(dto.getGiftName()); |
| | | birthdayGift.setGiftNumber(dto.getGiftNumber()); |
| | | birthdayGift.setMoney(dto.getMoney()); |
| | | birthdayGift.setWinningProbability(dto.getWinningProbability()); |
| | | birthdayGift.setWinningProbability(new BigDecimal("100.00")); |
| | | birthdayGiftList.add(birthdayGift); |
| | | }); |
| | | // 批量保存生日礼物 |
| | |
| | | break; |
| | | case 4: |
| | | // 礼物类型为4,即礼品 |
| | | appBirthdayGiftVo.setGiftName(birthdayGift.getCouponName()); |
| | | appBirthdayGiftVo.setGiftNumber(birthdayGift.getCouponNumber()); |
| | | appBirthdayGiftVo.setGiftName(birthdayGift.getGiftName()); |
| | | appBirthdayGiftVo.setGiftNumber(birthdayGift.getGiftNumber()); |
| | | memberGiftRecord.setGiftName(birthdayGift.getGiftName()); |
| | | memberGiftRecord.setGiftNumber(birthdayGift.getGiftNumber()); |
| | | break; |
| | |
| | | } |
| | | return memberPrizePageVoList; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * @description 判断生日卡开启状态 |
| | | * @author jqs |
| | | * @date 2023/8/1 15:43 |
| | | * @param |
| | | * @return void |
| | | */ |
| | | @Override |
| | | public Integer checkBirthdayCard(Long shopId){ |
| | | // 获取平台生日卡信息 |
| | | BirthdayCard plBirthdayCard = birthdayCardMapper.getPlatformBirthdayCard(shopId); |
| | | // 如果生日卡存在 |
| | | if (plBirthdayCard == null || plBirthdayCard.getCardStatus()!=1) { |
| | | return 0; |
| | | } |
| | | Integer marketingStatus = remoteShopService.getShopMarketingStatus(shopId).getData(); |
| | | if(marketingStatus<=1){ |
| | | return 0; |
| | | } |
| | | return 1; |
| | | } |
| | | } |