尹峰
|
29ac61e2d5
|
修改风控规则操作权限
|
2026-06-30 19:44:20 +08:00 |
|
尹峰
|
f53ef95222
|
修改风控规则操作权限
|
2026-06-30 16:56:14 +08:00 |
|
尹峰
|
5caad4d0ff
|
修改URL地址
|
2026-06-30 15:05:34 +08:00 |
|
尹峰
|
10b08f8f21
|
优化字段类型
|
2026-06-29 18:34:46 +08:00 |
|
尹峰
|
94da9748a2
|
Merge branch 'feature/p132_74-risk-engine' of https://gitee.glmszq.com/gsty/onederiv/trs into feature/p132_74-risk-engine
|
2026-06-29 18:10:13 +08:00 |
|
尹峰
|
d7c09c793a
|
fix(risk-engine): 修复多个风控引擎问题
- ScopeIsGlobal 类型由 bool 改为 int 以兼容前端传输 0/1
- 修复 QueryApplicationList 中 Status 投影 EF Core enum 转换失败
- 新增 Scope 字段查询支持(逗号分隔集合精确匹配)
- 新增变量列表 DataType 筛选
- 修复审计日志日期查询范围(EndDate 纳入整天数据)
- 统一 Application 审计日志 OperationType 前缀(APP_xxx)
- 审计日志 OperationDetail 枚举值映射为中文
|
2026-06-29 18:09:19 +08:00 |
|
尹峰
|
04c01f2f47
|
Merge branch 'feature/p132_74-risk-engine' of https://gitee.glmszq.com/gsty/onederiv/trs into feature/p132_74-risk-engine
|
2026-06-26 17:15:29 +08:00 |
|
尹峰
|
e8ef5be862
|
优化调整规则管理
|
2026-06-26 17:14:53 +08:00 |
|
尹峰
|
3bf90e25ef
|
refactor(risk-engine): ConditionJson 改为 RuleCondition 数组格式,精简 DTO 命名
- 重命名 FormulaCondition → RuleCondition,删除 FormulaDefinition
- ValidateConditionJson 直接反序列化为 List<RuleCondition>,移除 LogicOperator 校验
- 新增 RiskRuleSimpleItem DTO
- 同步更新建表注释与种子数据
|
2026-06-25 20:44:30 +08:00 |
|
尹峰
|
193123a9bf
|
Merge branch 'feature/p132_74-risk-engine' of https://gitee.glmszq.com/gsty/onederiv/trs into feature/p132_74-risk-engine
|
2026-06-24 18:24:15 +08:00 |
|
尹峰
|
c2fc699e57
|
feat(risk-engine): 完善风控规则种子数据与 CRUD 接口优化
1. 新增 21 条通用风控规则及应用配置种子数据(seed_rules.sql / seed_applications.sql)
2. 新增 9 个风控变量(偏离度类、执行价、最低保证金率、参考价格)
3. DTO 字段重命名:ExpectedVersion → Version,Keyword → RuleName/VariableName
4. 规则列表返回 ConditionJson 和 RuleExpr 字段
5. 应用列表查询支持按规则名称数据库级筛选(替代内存过滤)
6. 启用/停用操作不再递增 Version 号
7. RiskEngineService 单例构造使用 SystemUser 替代 null
8. RiskRuleService 移除冗余实例字段,改用 GetInstance() 直接调用
|
2026-06-24 18:23:43 +08:00 |
|
尹峰
|
28ed20e527
|
feat: 规则双模式公式表达式(RuleExpr)& 字段精简重构
- 新增 RuleExpr 字段,支持结构化拼接和自由文本两种模式,二选一互斥
- 删除 RuleCode/FormulaText/ApplicationCode/SourceExpression/IsImplemented/VariableCode/TargetCode
- 重命名 FormulaJson→ConditionJson, FormulaExpr→RuleExpr, ImplementationScript→VariableExpr, RuleDescription→RuleText
- RuleId(bigint)→RuleIds(varchar) 多规则支持
- FormulaCondition: variableCode(string)→variableId(long), thresholdVariableCode→thresholdVariableId
- 新增 44 条变量池 seed 数据
- 设计文档同步更新
|
2026-06-24 09:44:13 +08:00 |
|
尹峰
|
5b77bbf53e
|
merge and fix conflict
|
2026-06-23 16:06:01 +08:00 |
|
尹峰
|
a259b745ce
|
feat(风控引擎): RiskRuleService/RiskRuleController 权限控制及需求对齐
【权限控制】
- FunctionRight.xml 注册 16 个风控引擎权限标识(规则/应用/变量/日志 四类 Tab+操作权限)
- RiskRuleController 28 个 Action 均添加 [MyAuthorize] 校验
- 权限管理员角色自动获得全部风控权限(UserInfo.cs)
【需求对齐】对照 v1.15 需求文档修复差异:
- 审计日志操作类型命名对齐:APPLICATION_* → APP_*,VARIABLE_* → VAR_*
- 规则列表新增按变量编码筛选(QueryRiskRuleReq.VariableCode → FormulaJson.Contains)
- 变量列表新增分页支持(QueryRiskVariableReq 继承 BaseSearchReq,QueryVariableList → SearchListResult)
- 需求文档同步至 v1.16
|
2026-06-23 16:01:31 +08:00 |
|
尹峰
|
5c8ab7ff7a
|
p132_32 新增标的资产默认启用
|
2026-04-29 16:48:48 +08:00 |
|