---修复禁用通用接口错误
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user