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

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

@ -1,5 +0,0 @@
#Generated by Maven
#Wed Sep 24 16:46:40 CST 2025
version=2.0.4
groupId=com.geg
artifactId=itc-pcitc-demo-api

View File

@ -1,16 +0,0 @@
F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-api\src\main\java\com\xjrsoft\module\prdManage\vo\DemoApplianceVo.java
F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-api\src\main\java\com\xjrsoft\module\prdManage\client\IDemoApplianceClient.java
F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-api\src\main\java\com\xjrsoft\module\dev\vo\Testfrom4Vo.java
F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-api\src\main\java\com\xjrsoft\module\relationManage\dto\DemoCustomerPageDto.java
F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-api\src\main\java\com\xjrsoft\module\relationManage\dto\AddDemoCustomerDto.java
F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-api\src\main\java\com\xjrsoft\module\relationManage\dto\UpdateDemoCustomerDto.java
F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-api\src\main\java\com\xjrsoft\module\dev\dto\AddTestfrom4Dto.java
F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-api\src\main\java\com\xjrsoft\module\prdManage\dto\AddDemoApplianceDto.java
F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-api\src\main\java\com\xjrsoft\module\relationManage\vo\DemoCustomerVo.java
F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-api\src\main\java\com\xjrsoft\module\dev\vo\Testfrom4PageVo.java
F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-api\src\main\java\com\xjrsoft\module\prdManage\dto\DemoAppliancePageDto.java
F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-api\src\main\java\com\xjrsoft\module\prdManage\vo\DemoAppliancePageVo.java
F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-api\src\main\java\com\xjrsoft\module\dev\dto\Testfrom4PageDto.java
F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-api\src\main\java\com\xjrsoft\module\dev\dto\UpdateTestfrom4Dto.java
F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-api\src\main\java\com\xjrsoft\module\relationManage\vo\DemoCustomerPageVo.java
F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-api\src\main\java\com\xjrsoft\module\prdManage\dto\UpdateDemoApplianceDto.java

View File

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