Merge branch 'master' into develop
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -650,14 +650,21 @@ public class DocumentiAcquistoImportService {
|
|||||||
|
|
||||||
boolean existDoc = UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(multiDBTransactionManager.getPrimaryConnection(), sql);
|
boolean existDoc = UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(multiDBTransactionManager.getPrimaryConnection(), sql);
|
||||||
|
|
||||||
if (!existDoc) {
|
// if (!existDoc) {
|
||||||
wdtbDoctList.add(wdtbDoct);
|
// wdtbDoctList.add(wdtbDoct);
|
||||||
index = wdtbDoctList.indexOf(wdtbDoct);
|
// index = wdtbDoctList.indexOf(wdtbDoct);
|
||||||
insRow = true;
|
// insRow = true;
|
||||||
} else {
|
// } else {
|
||||||
AnomalieDTO.info("Documento n. " + wdtbDoct.getNumDoc() + " del " + new SimpleDateFormat(CommonConstants.DATE_FORMAT_DMY).format(wdtbDoct.getDataDoc()) + " già importato");
|
// AnomalieDTO.info("Documento n. " + wdtbDoct.getNumDoc() + " del " + new SimpleDateFormat(CommonConstants.DATE_FORMAT_DMY).format(wdtbDoct.getDataDoc()) + " già importato");
|
||||||
insRow = false;
|
// insRow = false;
|
||||||
|
// }
|
||||||
|
|
||||||
|
if ( existDoc ) {
|
||||||
|
wdtbDoct.setOperation(OperationType.UPDATE);
|
||||||
}
|
}
|
||||||
|
wdtbDoctList.add(wdtbDoct);
|
||||||
|
index = wdtbDoctList.indexOf(wdtbDoct);
|
||||||
|
insRow = true;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 'B':
|
case 'B':
|
||||||
|
|||||||
Reference in New Issue
Block a user