feat: 新增员工行为画像算法与费用风险标签体系
后端新增员工行为画像算法模块,支持标签规则引擎和评分计算, 完善员工模型、银行信息、序列化和导入逻辑,优化报销审批流 和工作流常量,增强 Hermes 同步和知识同步能力,前端新增费 用画像详情弹窗、雷达图和风险卡片组件,完善登录页和工作台 样式,优化文档中心和归档中心交互,补充单元测试。
This commit is contained in:
@@ -37,7 +37,17 @@ def init_default_config():
|
||||
cron_expression="0 9 * * 1", # 每周一早9点(在简化版中暂时代表周报频率)
|
||||
is_enabled=True
|
||||
))
|
||||
|
||||
|
||||
# 初始化 employee_behavior_profile_scan:默认关闭,避免全员画像过频。
|
||||
existing_profile = db.query(HermesTaskConfig).filter_by(task_type="employee_behavior_profile_scan").first()
|
||||
if not existing_profile:
|
||||
logger.info("No employee_behavior_profile_scan config found. Initializing default config.")
|
||||
db.add(HermesTaskConfig(
|
||||
task_type="employee_behavior_profile_scan",
|
||||
cron_expression="0 8 * * 1",
|
||||
is_enabled=False
|
||||
))
|
||||
|
||||
db.commit()
|
||||
except Exception as e:
|
||||
logger.error(f"Failed to initialize default config: {e}")
|
||||
|
||||
Reference in New Issue
Block a user