Commit e79fa81a by 吕明尚

Merge branch 'dev' into test

parents 774135af 05a3ee79
...@@ -350,8 +350,9 @@ public class RedisTask { ...@@ -350,8 +350,9 @@ public class RedisTask {
if (extracted(o, sOrders, sOrder)) return; if (extracted(o, sOrders, sOrder)) return;
//更改订单状态 //更改订单状态
sOrder.setStatus(OrderStatusEnum.USED.getCode()); sOrder.setStatus(OrderStatusEnum.USED.getCode());
// addNewConsumer(sOrder); addNewConsumer(sOrder);
isOrderService.updateById(sOrder); isOrderService.updateById(sOrder);
pointActivitiesService.joinPointActivities(sOrder);
// 修改房间状态 // 修改房间状态
SRoom room = roomService.getById(sOrder.getRoomId()); SRoom room = roomService.getById(sOrder.getRoomId());
if (ObjectUtil.isNotEmpty(room)) { if (ObjectUtil.isNotEmpty(room)) {
......
...@@ -2,6 +2,7 @@ package share.system.domain.vo; ...@@ -2,6 +2,7 @@ package share.system.domain.vo;
import lombok.Data; import lombok.Data;
import share.system.domain.ConsumerMember; import share.system.domain.ConsumerMember;
import share.system.domain.PointActivities;
import share.system.domain.SConsumer; import share.system.domain.SConsumer;
import java.util.List; import java.util.List;
...@@ -51,4 +52,6 @@ public class SConsumerVo extends SConsumer { ...@@ -51,4 +52,6 @@ public class SConsumerVo extends SConsumer {
private List<ConsumerSecondaryCardVo> secondaryCardList; private List<ConsumerSecondaryCardVo> secondaryCardList;
private PointActivities pointActivities;
} }
...@@ -573,7 +573,7 @@ public class SConsumerCouponServiceImpl extends ServiceImpl<SConsumerCouponMappe ...@@ -573,7 +573,7 @@ public class SConsumerCouponServiceImpl extends ServiceImpl<SConsumerCouponMappe
newSConsumerCoupon.setDuration(sCoupon.getDuration()); newSConsumerCoupon.setDuration(sCoupon.getDuration());
newSConsumerCoupon.setOrderType(sCoupon.getOrderType()); newSConsumerCoupon.setOrderType(sCoupon.getOrderType());
newSConsumerCoupon.setPackIds(sCoupon.getPackIds()); newSConsumerCoupon.setPackIds(sCoupon.getPackIds());
newSConsumerCoupon.setSourceType(SourceTypeEnum.GIVE.getCode()); newSConsumerCoupon.setSourceType(SourceTypeEnum.RECEIVE.getCode());
newSConsumerCoupon.setPlatformType(sCoupon.getPlatformType()); newSConsumerCoupon.setPlatformType(sCoupon.getPlatformType());
newSConsumerCoupon.setStartDate(sCoupon.getStartDate()); newSConsumerCoupon.setStartDate(sCoupon.getStartDate());
newSConsumerCoupon.setEndDate(DateUtils.addDays(new Date(), giveDay)); newSConsumerCoupon.setEndDate(DateUtils.addDays(new Date(), giveDay));
......
...@@ -66,8 +66,8 @@ public class SConsumerServiceImpl extends ServiceImpl<SConsumerMapper, SConsumer ...@@ -66,8 +66,8 @@ public class SConsumerServiceImpl extends ServiceImpl<SConsumerMapper, SConsumer
private ConsumerSecondaryCardService consumerSecondaryCardService; private ConsumerSecondaryCardService consumerSecondaryCardService;
@Autowired @Autowired
private ConsumerMonthlyCardService consumerMonthlyCardService; private ConsumerMonthlyCardService consumerMonthlyCardService;
@Autowired
private PointActivitiesService pointActivitiesService;
@Autowired @Autowired
private SConsumerService sConsumerService; private SConsumerService sConsumerService;
...@@ -264,6 +264,7 @@ public class SConsumerServiceImpl extends ServiceImpl<SConsumerMapper, SConsumer ...@@ -264,6 +264,7 @@ public class SConsumerServiceImpl extends ServiceImpl<SConsumerMapper, SConsumer
} }
vo.setConsumerWallet(consumerWalletVo); vo.setConsumerWallet(consumerWalletVo);
} }
vo.setPointActivities(pointActivitiesService.selectByConsumerId());
List<Long> longList = storeConsumerMapper.selectByConsumerId(currentUser.getId(), PositionEnum.CLEANER.getCode()); List<Long> longList = storeConsumerMapper.selectByConsumerId(currentUser.getId(), PositionEnum.CLEANER.getCode());
if (CollectionUtils.isEmpty(longList)) { if (CollectionUtils.isEmpty(longList)) {
vo.setIsCleaner(false); vo.setIsCleaner(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment