Finish Hotfix-100
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-09-16 10:01:37 +02:00
2 changed files with 1 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ public class RequestDataDTO {
@PostConstruct
public void init() throws IOException, InterruptedException {
if (request != null && request.getQueryString() != null && request.getQueryString().contains(CommonConstants.PROFILE_DB)) {
if (request != null && request.getParameter(CommonConstants.PROFILE_DB) != null) {
profileDB = request.getParameter(CommonConstants.PROFILE_DB);
} else if (request != null && request.getHeader(CommonConstants.PROFILE_DB) != null) {
profileDB = request.getHeader(CommonConstants.PROFILE_DB);

View File

@@ -41,7 +41,6 @@ public class Slim2kLogisticController {
@RequestParam(value = "listcode", required = false) String listCode) {
List<ServiceRestResponse> list = new ArrayList<ServiceRestResponse>();
try {
multiDBTransactionManager.setPrimaryDB(configuration);
logger.debug(requestDataDTO.getUsername() + " " + requestDataDTO.getPassword() + " " + requestDataDTO.getProfileDB());
list.add(ServiceRestResponse.createEntityPositiveResponse(slim2kLogisticService.importListeDiScarico(listType, listCode)));
} catch (Exception e) {
@@ -64,7 +63,6 @@ public class Slim2kLogisticController {
List<ServiceRestResponse> list = new ArrayList<ServiceRestResponse>();
try {
logger.debug(requestDataDTO.getUsername() + " " + requestDataDTO.getPassword() + " " + requestDataDTO.getProfileDB());
multiDBTransactionManager.setPrimaryDB(configuration);
list.add(ServiceRestResponse.createEntityPositiveResponse(slim2kLogisticService.importListeDiCarico(scode, dcode, docdate, docnum, refdoc)));
} catch (Exception e) {
logger.error(request.getRequestURI(), e);