zoujiajian 8 meses atrás
pai
commit
03d7733748

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

@@ -2473,7 +2473,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 		OrderDon orderDon = orderDonMapper.selectById(relationView.getNfOriOrderId());
 		if (orderDon != null) {
 			//paypal 或者超过一年 联系客服退款
-			if (orderDon.getType() == OrderDon.Type.PAYPAL || (orderDon.getMoney().compareTo(BigDecimal.ZERO) > 0 && orderDon.getCreatedTime().after(DateUtil.offsetMonth(orderDon.getCreatedTime(), -12)))) {
+			if (orderDon.getType() == OrderDon.Type.PAYPAL || (orderDon.getMoney().compareTo(BigDecimal.ZERO) > 0 && orderDon.getCreatedTime().before(DateUtil.offsetMonth(DateTime.now(), -12)))) {
 				throw BusinessRuntimeException.getInstance("请联系客服退款");
 			}
 			GoodsDon goodsDon = goodsDonMapper.selectById(orderDon.getGoodsId());