--修复主数据转换刷新数据时,保存的数据格式问题

This commit is contained in:
2026-01-21 14:39:58 +08:00
parent 989dd66a20
commit f2b874fceb
8 changed files with 16 additions and 16 deletions

View File

@ -137,7 +137,7 @@ public class BankController {
}
codeRuleClient.useEncode(BANK_CODE);
UpdateLngBBankDto obj = content.getObj();
tranProvider.saveData(obj.getCode(), obj.getFullName());
tranProvider.saveData(obj.getCode(),obj);
return obj;
}
}));
@ -162,7 +162,7 @@ public class BankController {
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
}
UpdateLngBBankDto obj =content.getObj();
tranProvider.saveData(obj.getCode(), obj.getFullName());
tranProvider.saveData(obj.getCode(), obj);
return obj;
}
}));

View File

@ -141,7 +141,7 @@ public class CountryRegionController {
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
}
UpdateLngBRegionDto obj = content.getObj();
tranProvider.saveData(obj.getCode(), obj.getFullName());
tranProvider.saveData(obj.getCode(), obj);
return content.getObj();
}
}));
@ -177,7 +177,7 @@ public class CountryRegionController {
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
}
UpdateLngBRegionDto obj = content.getObj();
tranProvider.saveData(obj.getCode(), obj.getFullName());
tranProvider.saveData(obj.getCode(), obj);
return content.getObj();
}
}));

View File

@ -48,7 +48,7 @@ public class CurrencyServiceImpl extends ServiceImpl<LngBCurrencyMapper, LngBCur
this.checkParams(dto);
UpdateLngBCurrencyDto res = DataLogTools.insert(dto);
this.addOrUpdateAfter(res.getId());
tranProvider.saveData(dto.getCode(), dto.getFullName());
tranProvider.saveData(dto.getCode(), dto);
return res.getId();
}
@ -92,7 +92,7 @@ public class CurrencyServiceImpl extends ServiceImpl<LngBCurrencyMapper, LngBCur
this.checkParams(dto);
DataLogTools.update(dto);
this.addOrUpdateAfter(dto.getId());
tranProvider.saveData(dto.getCode(), dto.getFullName());
tranProvider.saveData(dto.getCode(), dto);
return true;
}

View File

@ -52,7 +52,7 @@ public class LNGStationServiceImpl extends ServiceImpl<LngBStationLngMapper, Lng
UpdateLngBStationLngDto res = DataLogTools.insert(dto);
codeRuleClient.useEncode(STATIONCODE);
this.addOrUpdateAfter(res.getId());
tranProvider.saveData(dto.getCode(), dto.getFullName());
tranProvider.saveData(dto.getCode(), dto);
return res.getId();
}
@ -86,7 +86,7 @@ public class LNGStationServiceImpl extends ServiceImpl<LngBStationLngMapper, Lng
this.checkParams(dto);
DataLogTools.update(dto);
this.addOrUpdateAfter(dto.getId());
tranProvider.saveData(dto.getCode(), dto.getFullName());
tranProvider.saveData(dto.getCode(), dto);
return true;
}

View File

@ -126,7 +126,7 @@ public class CustomerController {
}
codeRuleClient.useEncode(CUSTOMER_CODE);
UpdateLngCustomerDto obj =content.getObj();
tranProvider.saveData(obj.getCuCode(), obj.getCuName());
tranProvider.saveData(obj.getCuCode(), obj);
return obj;
}
}));
@ -153,7 +153,7 @@ public class CustomerController {
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
}
UpdateLngCustomerDto obj =content.getObj();
tranProvider.saveData(obj.getCuCode(), obj.getCuName());
tranProvider.saveData(obj.getCuCode(), obj);
return obj;
}
}));

View File

@ -124,7 +124,7 @@ public class GradeSystemController {
}
codeRuleClient.useEncode(GS_CODE);
UpdateLngGradeSystemDto obj =content.getObj();
tranProvider.saveData(obj.getId().toString(), obj.getGsName());
tranProvider.saveData(obj.getId().toString(), obj);
return obj;
}
});
@ -152,7 +152,7 @@ public class GradeSystemController {
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
}
UpdateLngGradeSystemDto obj =content.getObj();
tranProvider.saveData(obj.getId().toString(), obj.getGsName());
tranProvider.saveData(obj.getId().toString(), obj);
return obj;
}
}));

View File

@ -123,7 +123,7 @@ public class SupplierController {
}
codeRuleClient.useEncode(SUPPLIER_CODE);
UpdateLngSupplierDto obj =content.getObj();
tranProvider.saveData(obj.getSuCode(), obj.getSuName());
tranProvider.saveData(obj.getSuCode(), obj);
return obj;
}
}));
@ -149,7 +149,7 @@ public class SupplierController {
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
}
UpdateLngSupplierDto obj =content.getObj();
tranProvider.saveData(obj.getSuCode(), obj.getSuName());
tranProvider.saveData(obj.getSuCode(), obj);
return obj;
}
}));

View File

@ -7,7 +7,7 @@ spring:
main:
allow-bean-definition-overriding: true
profiles:
active: local
active: dev
cloud:
nacos: #nacos监控
config: