Skip to content

Commit

Permalink
fix(finance-management): 云账号创建同步历史12个月数据
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Aug 18, 2023
1 parent 349ac2e commit f852948
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
import com.fit2cloud.common.utils.SpringUtil;
import com.fit2cloud.provider.ICloudProvider;
import com.fit2cloud.service.SyncService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

import jakarta.annotation.Resource;
import java.util.List;

/**
Expand All @@ -37,7 +37,7 @@ public void createCloudAccount(String cloudAccountId) {
CloudAccount cloudAccount = baseCloudAccountService.getById(cloudAccountId);
if (ICloudProvider.support(cloudAccount.getPlatform())) {
// 创建云账号需要同步12个月数据
syncService.syncBill(cloudAccountId, MonthUtil.getMonths(12));
syncService.syncBill(cloudAccountId, MonthUtil.getHistoryMonth(12));
}
}

Expand Down

0 comments on commit f852948

Please sign in to comment.