Finish Hotfix-90
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);
|
||||
|
||||
if (!existDoc) {
|
||||
wdtbDoctList.add(wdtbDoct);
|
||||
index = wdtbDoctList.indexOf(wdtbDoct);
|
||||
insRow = true;
|
||||
} else {
|
||||
AnomalieDTO.info("Documento n. " + wdtbDoct.getNumDoc() + " del " + new SimpleDateFormat(CommonConstants.DATE_FORMAT_DMY).format(wdtbDoct.getDataDoc()) + " già importato");
|
||||
insRow = false;
|
||||
// if (!existDoc) {
|
||||
// wdtbDoctList.add(wdtbDoct);
|
||||
// index = wdtbDoctList.indexOf(wdtbDoct);
|
||||
// insRow = true;
|
||||
// } else {
|
||||
// AnomalieDTO.info("Documento n. " + wdtbDoct.getNumDoc() + " del " + new SimpleDateFormat(CommonConstants.DATE_FORMAT_DMY).format(wdtbDoct.getDataDoc()) + " già importato");
|
||||
// insRow = false;
|
||||
// }
|
||||
|
||||
if ( existDoc ) {
|
||||
wdtbDoct.setOperation(OperationType.UPDATE);
|
||||
}
|
||||
wdtbDoctList.add(wdtbDoct);
|
||||
index = wdtbDoctList.indexOf(wdtbDoct);
|
||||
insRow = true;
|
||||
|
||||
break;
|
||||
case 'B':
|
||||
|
||||
Reference in New Issue
Block a user