| | |
| | | memberGiftRecord.setGiftType(4); |
| | | memberGiftRecord.setGiftName(userLotteryEvent.getObjectName()); |
| | | memberGiftRecord.setGiftNumber(userLotteryEvent.getNumber()); |
| | | //添加待核销订单 |
| | | AddOrderVo orderVo1 = new AddOrderVo(); |
| | | orderVo1.setShopId(member.getRelationShopId()); |
| | | orderVo1.setUserId(member.getUserId()); |
| | | orderVo1.setId(userLotteryEvent.getId()); |
| | | orderVo1.setGoodsName(userLotteryEvent.getObjectName()); |
| | | orderVo1.setGoodsNum(userLotteryEvent.getNumber()); |
| | | remoteOrderService.addOrder(orderVo1); |
| | | break; |
| | | case 4: |
| | | memberGiftRecord.setGiftType(5); |
| | |
| | | } |
| | | memberGiftRecord.setPrizeFrom(2); |
| | | memberGiftRecord.setCreateTime(new Date()); |
| | | remoteMemberService.saveMemberGiftRecord(memberGiftRecord); |
| | | if(5 != lotteryEventPrize.getPrizeType()){ |
| | | remoteMemberService.saveMemberGiftRecord(memberGiftRecord); |
| | | } |
| | | return R.ok(lotteryEventPrize); |
| | | } |
| | | } catch (Exception e) { |