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