--数据日志添加忽略字段

This commit is contained in:
2025-10-20 10:49:23 +08:00
parent fd6e2d8ce6
commit fcac1be7a1
4 changed files with 92 additions and 1 deletions

View File

@ -11,5 +11,6 @@ public interface ExceptionCommonCode {
* 数据中某个字段值唯一,不运行重复 * 数据中某个字段值唯一,不运行重复
*/ */
final BusinessCode DATA_FIELD_DUPLICATION = BusinessCode.of(10501,"字段【{}】不允许重复"); final BusinessCode DATA_FIELD_DUPLICATION = BusinessCode.of(10501,"字段【{}】不允许重复");
} }

View File

@ -122,7 +122,7 @@ public class DataLogTools {
public static final String SQL_LIST = "SELECT * FROM ${TBL_NAME} WHERE entity_id = ? ORDER BY operation_time DESC, flow_id DESC"; public static final String SQL_LIST = "SELECT * FROM ${TBL_NAME} WHERE entity_id = ? ORDER BY operation_time DESC, flow_id DESC";
public static final Set<String> excludeFields = SetUtils.of("tenantId"); public static final Set<String> excludeFields = SetUtils.of("tenantId","dataVersion","tenantId","tenantId","tenantId");
public static DataChangeLog createLog(Class<?> klazz,OperationType type) { public static DataChangeLog createLog(Class<?> klazz,OperationType type) {

View File

@ -0,0 +1,45 @@
spring:
cloud:
nacos: #nacos监控
config:
server-addr: 47.94.165.164:8848 # nacos 配置中心地址
namespace: ITC-MS
group: DNE
username: nacos
password: Lng@123
extension-configs:
- data-id: global-dev.yml
refresh: true
group: DNE
- data-id: discovery-dev.yml
refresh: true
group: DNE
- data-id: datasource-dev.yml
refresh: true
group: DNE
- data-id: seata-dev.yml
refresh: true
group: DNE
- data-id: redis-dev.yml
refresh: true
group: DNE
- data-id: magic-api.yml
refresh: true
group: DNE
- data-id: sa-token.yml
refresh: true
group: DNE
- data-id: camunda.yml
refresh: true
group: DNE
- data-id: sentinel-dev.yml
refresh: true
group: DNE

View File

@ -0,0 +1,45 @@
spring:
cloud:
nacos: #nacos监控
config:
server-addr: 47.94.165.164:8848 # nacos 配置中心地址
namespace: ITC-MS
group: DNE
username: nacos
password: Lng@123
extension-configs:
- data-id: global-dev.yml
refresh: true
group: DNE
- data-id: discovery-dev.yml
refresh: true
group: DNE
- data-id: datasource-dev.yml
refresh: true
group: DNE
- data-id: seata-dev.yml
refresh: true
group: DNE
- data-id: redis-dev.yml
refresh: true
group: DNE
- data-id: magic-api.yml
refresh: true
group: DNE
- data-id: sa-token.yml
refresh: true
group: DNE
- data-id: camunda.yml
refresh: true
group: DNE
- data-id: sentinel-dev.yml
refresh: true
group: DNE