|
|
@@ -2401,7 +2401,13 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
if (expiryTime == null) {
|
|
|
//用订单时间
|
|
|
GoodsDonSku sku = goodsDonSkuMapper.selectById(orderDon.getSkuId());
|
|
|
- expiryTime = DateUtil.offsetMonth(orderDon.getCreatedTime(), sku.getMonths());
|
|
|
+ if (expiryTime == null) {
|
|
|
+ if (sku.getDays() != null) {
|
|
|
+ expiryTime = DateUtil.offsetDay(orderDon.getCreatedTime(), sku.getDays());
|
|
|
+ } else {
|
|
|
+ expiryTime = DateUtil.offsetMonth(orderDon.getCreatedTime(), sku.getMonths());
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
betweenDay= DateUtil.betweenDay(DateTime.now(), expiryTime, false) + 1;
|
|
|
|