feat: 完善 Rock 发货异常闭环与绑定判定
This commit is contained in:
@@ -567,6 +567,9 @@ func (s *RockService) ListTokens(ctx context.Context, page, pageSize int, status
|
||||
if pageSize <= 0 {
|
||||
pageSize = 20
|
||||
}
|
||||
if pageSize > 100 {
|
||||
pageSize = 100
|
||||
}
|
||||
|
||||
cfg, err := s.GetConfig(ctx)
|
||||
if err != nil {
|
||||
@@ -593,6 +596,7 @@ func (s *RockService) ListTokens(ctx context.Context, page, pageSize int, status
|
||||
applyRockTokenOverdueFlags(tokens, now, warnDays, dangerDays, boundWarnDays)
|
||||
s.prepareRockTokenList(ctx, tokens)
|
||||
s.fillRockTokenAnomalyFlags(ctx, tokens)
|
||||
s.fillRockTokenIncidentFlags(ctx, tokens)
|
||||
|
||||
return tokens, total, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user