---修复禁用通用接口错误

This commit is contained in:
2025-10-23 15:46:19 +08:00
parent f9b9b2bbd2
commit 2a9ca5b784
4 changed files with 3 additions and 24 deletions

View File

@ -322,7 +322,7 @@ public class DataLogTools {
T dto = (T)tabInfo.toDto(entity);
DataChangeLog datalog = createLog(klazz,OperationType.UPDATE);
datalog.setEntityId(id);
buildFields(datalog,tabInfo,dto,null);
buildFields(datalog,tabInfo,dto,tabInfo.toDto(old));
logs.add(datalog);
saveLogs(tabInfo,logs);
return dto;
@ -330,7 +330,7 @@ public class DataLogTools {
public static boolean disable(Class<?> klazz, @Valid List<Long> ids) {
for (Long id : ids) {
enableById(klazz, id);
disableById(klazz, id);
}
return true;
}
@ -348,7 +348,7 @@ public class DataLogTools {
T dto = (T)tabInfo.toDto(entity);
DataChangeLog datalog = createLog(klazz,OperationType.UPDATE);
datalog.setEntityId(id);
buildFields(datalog,tabInfo,dto,null);
buildFields(datalog,tabInfo,dto,tabInfo.toDto(old));
logs.add(datalog);
saveLogs(tabInfo,logs);
return dto;