zoujiajian 10 달 전
부모
커밋
9a82703e41
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      netflix-service/src/main/java/com/cyksj/service/claude/impl/ClaudeCodeServiceImpl.java

+ 5 - 0
netflix-service/src/main/java/com/cyksj/service/claude/impl/ClaudeCodeServiceImpl.java

@@ -1212,6 +1212,11 @@ public class ClaudeCodeServiceImpl implements ClaudeCodeService {
 			GoodsDonSku sku = skuMapper.selectById(skuId);
 			BigDecimal thisOrderMoney = orderDon.getMoney().add(Optional.ofNullable(orderDon.getBalance()).orElse(BigDecimal.ZERO)).subtract(Optional.ofNullable(orderDon.getRefundMoney()).orElse(BigDecimal.ZERO));
 			if (thisOrderMoney.compareTo(BigDecimal.ZERO) == 0) {
+				if (sku.getDays() != null) {
+					relationExpiryTime = DateUtil.offsetMonth(relationExpiryTime, -sku.getDays());
+				} else {
+					relationExpiryTime = DateUtil.offsetMonth(relationExpiryTime, -sku.getMonths());
+				}
 				continue;
 			}
 			totalOrderMoney = totalOrderMoney.add(thisOrderMoney);