feat(health,ai): 后端服务优化 + 媒体文件处理
- erp-health: article/banner/consultation/media 服务层优化 - erp-ai: analysis/insight/prompt 服务增强 - erp-auth: auth/role/token 服务改进 - erp-workflow: executor 执行引擎修复 - erp-plugin: 服务层改进 - 新增媒体上传文件样例
This commit is contained in:
@@ -170,6 +170,7 @@ impl AnalysisService {
|
||||
active.result_content = Set(Some(content));
|
||||
active.result_metadata = Set(Some(metadata));
|
||||
active.updated_at = Set(chrono::Utc::now());
|
||||
active.version_lock = Set(active.version_lock.unwrap() + 1);
|
||||
active.update(&self.db).await?;
|
||||
Ok(())
|
||||
}
|
||||
@@ -185,6 +186,7 @@ impl AnalysisService {
|
||||
active.status = Set("failed".into());
|
||||
active.error_message = Set(Some(error));
|
||||
active.updated_at = Set(chrono::Utc::now());
|
||||
active.version_lock = Set(active.version_lock.unwrap() + 1);
|
||||
active.update(&self.db).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user