feat: 大屏改为纯流式自适应布局,新增KPI带与产线动态拓扑地图

This commit is contained in:
SunYF
2026-10-28 10:10:17 +08:00
parent 1f10c3091e
commit 4d3c4e2c3a
131 changed files with 18118 additions and 1728 deletions
-12
View File
@@ -93,16 +93,4 @@ func (s *Service) ListAttachmentPage(ctx context.Context, fileType, bizType, biz
return total, list, nil
}
// ListArchivableAttachments 列出「未归档且未删除」的附件(归档任务用,年份判断在调用方)。
func (s *Service) ListArchivableAttachments(ctx context.Context) ([]*ent.Attachment, error) {
return s.ctx.EntClient.Attachment.Query().
Where(attachment.ArchivedEQ(false), attachment.DeletedEQ(false)).
All(ctx)
}
// MarkArchived 标记附件已归档(物理文件已移到外部备份目录)。
func (s *Service) MarkArchived(ctx context.Context, id int) error {
_, err := s.ctx.EntClient.Attachment.UpdateOneID(id).
SetArchived(true).SetArchivedAt(time.Now().Unix()).Save(ctx)
return err
}