zoujiajian před 8 měsíci
rodič
revize
4245d3ee79

+ 7 - 1
netflix-service/src/main/java/com/cyksj/service/relation/impl/GroupRelationFrontServiceImpl.java

@@ -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;