Merge branch 'develop' into feature/JDK11
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:
@@ -462,6 +462,10 @@ public class MesProductionServiceV2 {
|
||||
}
|
||||
|
||||
public void closeStep(Date dataOrd, Integer numOrd, String gestioneOrd, String codJfas, Integer idStep, Integer idRiga, Date closeDate) throws Exception {
|
||||
closeStep(dataOrd, numOrd, gestioneOrd, codJfas, idStep, idRiga, closeDate, false);
|
||||
}
|
||||
|
||||
public void closeStep(Date dataOrd, Integer numOrd, String gestioneOrd, String codJfas, Integer idStep, Integer idRiga, Date closeDate, Boolean skipCommit) throws Exception {
|
||||
String whereCondCodJfas = "";
|
||||
String whereCondIdStep = "";
|
||||
|
||||
@@ -506,7 +510,7 @@ public class MesProductionServiceV2 {
|
||||
}
|
||||
}
|
||||
|
||||
entityProcessor.processEntityList(dtbOrdtList, false);
|
||||
entityProcessor.processEntityList(dtbOrdtList, skipCommit);
|
||||
UtilityEntity.throwEntitiesException(UtilityEntity.toEntityBaseList(dtbOrdtList));
|
||||
}
|
||||
|
||||
@@ -1315,9 +1319,9 @@ public class MesProductionServiceV2 {
|
||||
CheckMaterialeBarcodeInOrdineResponseDTO response = new CheckMaterialeBarcodeInOrdineResponseDTO();
|
||||
|
||||
MtbColt collo;
|
||||
try{
|
||||
try {
|
||||
collo = pvmService.getColloByBarcode(dto.getBarcode(), true);
|
||||
}catch (Exception e){
|
||||
} catch (Exception e) {
|
||||
collo = null;
|
||||
}
|
||||
|
||||
@@ -2198,7 +2202,7 @@ public class MesProductionServiceV2 {
|
||||
|
||||
entityProcessor.processEntity(ordProd, true, multiDBTransactionManager);
|
||||
|
||||
this.closeStep(ordine.getDataOrd(), ordine.getNumOrd(), ordine.getGestione(), ordine.getCodJfas(), null, null);
|
||||
this.closeStep(ordine.getDataOrd(), ordine.getNumOrd(), ordine.getGestione(), ordine.getCodJfas(), null, null, new Date(), true);
|
||||
|
||||
// CaricoProdFinLavDTO caricoProdFinLavDTO = new CaricoProdFinLavDTO();
|
||||
//
|
||||
@@ -2213,8 +2217,6 @@ public class MesProductionServiceV2 {
|
||||
ordiniSalvati.addAll(ordLav.getOrdLav());
|
||||
}
|
||||
|
||||
multiDBTransactionManager.commitAll();
|
||||
|
||||
if (!ordiniSalvati.isEmpty()) {
|
||||
sql = String.format(
|
||||
"SELECT gestione,\n" +
|
||||
@@ -2238,10 +2240,12 @@ public class MesProductionServiceV2 {
|
||||
|
||||
if (dtbOrdStepsToOpen != null && !dtbOrdStepsToOpen.isEmpty()) {
|
||||
for (DtbOrdSteps dtbOrdSteps : dtbOrdStepsToOpen) {
|
||||
this.openStep(dtbOrdSteps.getDataOrd(), dtbOrdSteps.getNumOrd(), dtbOrdSteps.getGestione(), dtbOrdSteps.getCodJfas(), dtbOrdSteps.getHrNum());
|
||||
this.openStep(dtbOrdSteps.getDataOrd(), dtbOrdSteps.getNumOrd(), dtbOrdSteps.getGestione(), dtbOrdSteps.getCodJfas(), dtbOrdSteps.getHrNum(), null, null, null, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
multiDBTransactionManager.commitAll();
|
||||
} catch (Exception e) {
|
||||
multiDBTransactionManager.rollbackAll();
|
||||
throw e;
|
||||
|
||||
Reference in New Issue
Block a user