|
|
@@ -389,8 +389,16 @@ public class ExchangeCodeServiceImpl extends ServiceImpl<ExchangeCodeMapper, Exc
|
|
|
relation.setOrderId(orderDon.getId());
|
|
|
//邀请制代充平台
|
|
|
if ((goodsDon.getSpecialType() != null && goodsDon.getSpecialType() == GoodsDon.SpecialType.recharge) || Constant.RECHARGE_INVITE_GOODS_IDS.contains(goodsDon.getId())) {
|
|
|
+ relation.setStartTime(null);
|
|
|
+ relation.setExpiryTime(null);
|
|
|
relation.setRechargeStatus(GroupsRelation.RechargeStatus.waiting);
|
|
|
relation.setSubmitTime(DateTime.now());
|
|
|
+ //GPT代充
|
|
|
+ if (goodsDon.getId() == Constant.GPT_RECHARGE_GOODS_ID) {
|
|
|
+ //代充次数
|
|
|
+ relation.setRechargeNum(sku.getMonths());
|
|
|
+ relation.setRechargeRemainNum(relation.getRechargeNum());
|
|
|
+ }
|
|
|
groupsRelationMapper.updateById(relation);
|
|
|
}
|
|
|
return relation;
|