feat: 大屏改为纯流式自适应布局,新增KPI带与产线动态拓扑地图
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user