李维 发表于 2025-12-16 11:34:09

后端微服务mgmtFieldInsertMappings中可以新增tenant_id字段赋值吗?

问题描述:
后端微服务mgmtFieldInsertMappings和mgmtFieldUpdateMappings中可以新增tenant_id字段赋值吗?这样在写入数据的时候就不需要每次都添加了。

mgmtFieldInsertMappings=create_by:userId,creator_name:userName,create_date:$DATETIME,modified_by:userId,modifier_name:userName,modified_date:$DATETIME

翁俊 发表于 2025-12-16 12:24:55

目前经过测试,系统参数数量固定,如果参数配置添加tenant_id字段,其他系统字段就会缺失,如下图

建议字段写入读取时放在业务代码中处理:
DWServiceContext context = DWServiceContext.getContext();
Map<String, Object> profile = context.getProfile();
Long userSid = (Long) profile.get("tenantSid");

页: [1]
查看完整版本: 后端微服务mgmtFieldInsertMappings中可以新增tenant_id字段赋值吗?