feat: integrate OA activation workflows and business migration
This commit is contained in:
@@ -13,6 +13,7 @@ type DashboardMetrics struct {
|
||||
Pay string
|
||||
}
|
||||
type DashboardData struct {
|
||||
EventsIncomplete bool
|
||||
Current, Previous DashboardMetrics
|
||||
Available bool
|
||||
EventsAvailable bool
|
||||
@@ -84,8 +85,7 @@ func (uc *DashboardUsecase) Overview(ctx context.Context, sources []string, peri
|
||||
}
|
||||
r.Cards[card.key] = value
|
||||
}
|
||||
// The imported SDK channel table has only current state; historical event
|
||||
// counts must stay unavailable until a timestamped event source is connected.
|
||||
// OA 在渠道更新事务中记录事件;按事件发生时间统计,不读取当前锁定状态。
|
||||
for _, card := range []struct {
|
||||
key string
|
||||
current, previous int64
|
||||
@@ -93,6 +93,9 @@ func (uc *DashboardUsecase) Overview(ctx context.Context, sources []string, peri
|
||||
label := "较上一同期"
|
||||
if !data.EventsAvailable {
|
||||
label = "事件数据未接入"
|
||||
if data.EventsIncomplete {
|
||||
label = "所选区间事件历史不完整"
|
||||
}
|
||||
}
|
||||
value, err := workbenchCard(num(card.current), num(card.previous), label, data.Available && data.EventsAvailable)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user