modifiche su slim
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.IntegryCustomer;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20250912152309 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
createSetupQuery("SI_NO", "SI_NO", "SELECT 'S' UNION ALL SELECT 'N'");
|
||||
createSetup("w_ddocu_rc", "SETUP", "INVIO_EMAIL", "N",
|
||||
"Attiva invio email direttamente dalla gestione", false, "SI_NO", false, false,
|
||||
false, false, false, null, false, "SELECT 'S' UNION ALL SELECT 'N'");
|
||||
|
||||
if (isCustomer(IntegryCustomer.RossoGargano))
|
||||
updateSetupValue("w_ddocu_rc", "SETUP", "INVIO_EMAIL", "S");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -43,7 +43,7 @@ public class Slim2kLogisticController {
|
||||
try {
|
||||
multiDBTransactionManager.setPrimaryDB(configuration);
|
||||
logger.debug(requestDataDTO.getUsername() + " " + requestDataDTO.getPassword() + " " + requestDataDTO.getProfileDB());
|
||||
list = slim2kLogisticService.importListeDiScarico(listType, listCode);
|
||||
list.add(ServiceRestResponse.createEntityPositiveResponse(slim2kLogisticService.importListeDiScarico(listType, listCode)));
|
||||
} catch (Exception e) {
|
||||
logger.error(request.getRequestURI(), e);
|
||||
list.add(new ServiceRestResponse(EsitoType.KO, configuration, e));
|
||||
@@ -63,9 +63,8 @@ public class Slim2kLogisticController {
|
||||
@RequestParam(value = "doctype", required = false) String doctype) {
|
||||
List<ServiceRestResponse> list = new ArrayList<ServiceRestResponse>();
|
||||
try {
|
||||
multiDBTransactionManager.setPrimaryDB(configuration);
|
||||
logger.debug(requestDataDTO.getUsername() + " " + requestDataDTO.getPassword() + " " + requestDataDTO.getProfileDB());
|
||||
list = slim2kLogisticService.importListeDiCarico(scode, dcode, docdate, docnum, refdoc);
|
||||
list.add(ServiceRestResponse.createEntityPositiveResponse(slim2kLogisticService.importListeDiCarico(scode, dcode, docdate, docnum, refdoc)));
|
||||
} catch (Exception e) {
|
||||
logger.error(request.getRequestURI(), e);
|
||||
list.add(new ServiceRestResponse(EsitoType.KO, configuration, e));
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user