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

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,"字段【{}】不允许重复");
}

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 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) {