|
@@ -1531,6 +1531,9 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
log.info("分销订单orderId:{}对应平台goodsId:{}不存在或已不参与分成比例", order.getId(), order.getGoodsId());
|
|
log.info("分销订单orderId:{}对应平台goodsId:{}不存在或已不参与分成比例", order.getId(), order.getGoodsId());
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (order.getSkuId() != null) {
|
|
|
|
|
+ goodsDonSku = goodsDonSkuMapper.selectById(order.getSkuId());
|
|
|
|
|
+ }
|
|
|
UserDistributeShared userDistributeShared = userDistributeSharedMapper.selectOne(Wrappers.lambdaQuery(UserDistributeShared.class).eq(UserDistributeShared::getUserId, order.getUserId()).last("limit 1"));
|
|
UserDistributeShared userDistributeShared = userDistributeSharedMapper.selectOne(Wrappers.lambdaQuery(UserDistributeShared.class).eq(UserDistributeShared::getUserId, order.getUserId()).last("limit 1"));
|
|
|
if (userDistributeShared != null) {
|
|
if (userDistributeShared != null) {
|
|
|
distributeWaitingSendPoints.setSharedId(userDistributeShared.getSharedId());
|
|
distributeWaitingSendPoints.setSharedId(userDistributeShared.getSharedId());
|
|
@@ -1554,7 +1557,6 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
rate = goodsDon.getRate();
|
|
rate = goodsDon.getRate();
|
|
|
//实物分销比例
|
|
//实物分销比例
|
|
|
if (goodsDon.getType() == 2) {
|
|
if (goodsDon.getType() == 2) {
|
|
|
- goodsDonSku = goodsDonSkuMapper.selectById(order.getSkuId());
|
|
|
|
|
if (goodsDonSku != null) {
|
|
if (goodsDonSku != null) {
|
|
|
//不包含套餐权益
|
|
//不包含套餐权益
|
|
|
if (!goodsDonSku.getIsBenefits()) {
|
|
if (!goodsDonSku.getIsBenefits()) {
|
|
@@ -2340,6 +2342,9 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
} else {
|
|
} else {
|
|
|
//修改车位状态并发送模板消息
|
|
//修改车位状态并发送模板消息
|
|
|
updateCarParkAndSendMsg(goodsDon, sku, orderDon);
|
|
updateCarParkAndSendMsg(goodsDon, sku, orderDon);
|
|
|
|
|
+ }
|
|
|
|
|
+ //同步车票是否重购 记录
|
|
|
|
|
+ TASK_POOL.execute(() -> {
|
|
|
if (goodsDon.getId() == 1) {
|
|
if (goodsDon.getId() == 1) {
|
|
|
//设置netflix座位号
|
|
//设置netflix座位号
|
|
|
GroupsRelation relation = groupsRelationMapper.selectById(orderDon.getRelationId());
|
|
GroupsRelation relation = groupsRelationMapper.selectById(orderDon.getRelationId());
|
|
@@ -2350,9 +2355,6 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
groupsRelationNetflixService.timingSetNetflix(relation.getNum(), user.getNickname(), account.getAccount(), account.getPassword(), relation.getExpiryTime());
|
|
groupsRelationNetflixService.timingSetNetflix(relation.getNum(), user.getNickname(), account.getAccount(), account.getPassword(), relation.getExpiryTime());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
- //同步车票是否重购 记录
|
|
|
|
|
- TASK_POOL.execute(() -> {
|
|
|
|
|
groupsRelationExpiryRecordService.syncGroupsRelationExpiryRecord(orderDon, goodsDon, sku);
|
|
groupsRelationExpiryRecordService.syncGroupsRelationExpiryRecord(orderDon, goodsDon, sku);
|
|
|
if (orderDon.getYhsId() == 0) {
|
|
if (orderDon.getYhsId() == 0) {
|
|
|
//发送下单后 若有手机 发送短信
|
|
//发送下单后 若有手机 发送短信
|