Merge branch 'master' into feature/RefactoringGestioneColli
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:
@@ -162,7 +162,7 @@ public class ProductionOrderDataHandlerService {
|
||||
}
|
||||
|
||||
String query;
|
||||
if (flagEvaso.equalsIgnoreCase("E")) {
|
||||
if ("E".equalsIgnoreCase(flagEvaso)) {
|
||||
query = (
|
||||
"WITH colli AS (SELECT mtb_colt.gestione,\n" +
|
||||
" mtb_colt.data_ord,\n" +
|
||||
@@ -220,6 +220,8 @@ public class ProductionOrderDataHandlerService {
|
||||
" ordl.riga_ord_rif riga_ord_prod,\n" +
|
||||
" ISNULL(mtb_aart.descrizione_estesa, mtb_aart.descrizione) AS descrizione_prod,\n" +
|
||||
" colli.data_scad,\n" +
|
||||
" jtb_comt.cod_jcom,\n" +
|
||||
" jtb_comt.descrizione as descrizione_commessa,\n" +
|
||||
" jl.id_lotto\n" +
|
||||
"FROM dtb_ordt\n" +
|
||||
" INNER JOIN dtb_ordt ordl ON dtb_ordt.gestione = ordl.gestione_rif\n" +
|
||||
@@ -232,6 +234,7 @@ public class ProductionOrderDataHandlerService {
|
||||
" INNER JOIN colli ON colli.gestione = ordl.gestione AND\n" +
|
||||
" ordl.data_ord = colli.data_ord AND\n" +
|
||||
" ordl.num_ord = colli.num_ord \n" +
|
||||
" LEFT OUTER JOIN jtb_comt ON ordl.cod_jcom = jtb_comt.cod_jcom\n" +
|
||||
" LEFT OUTER JOIN jtb_lotr jl\n" +
|
||||
" ON steps.cod_jfas = jl.cod_jfas AND\n" +
|
||||
" ordl.gestione = jl.gestione AND\n" +
|
||||
@@ -250,7 +253,7 @@ public class ProductionOrderDataHandlerService {
|
||||
.replace("[END_DATE]", UtilityDB.valueToString(endDate));
|
||||
|
||||
if (linee != null) {
|
||||
query = UtilityDB.addwhereCond(query, "ordl.cod_jfas IN (" + UtilityDB.listValueToString(linee) + ")", true);
|
||||
query = UtilityDB.addwhereCond(query, "steps.cod_jfas IN (" + UtilityDB.listValueToString(linee) + ")", true);
|
||||
}
|
||||
} else {
|
||||
query = "SELECT * FROM MES_GetWorkOrders(" +
|
||||
@@ -270,7 +273,7 @@ public class ProductionOrderDataHandlerService {
|
||||
if (ordiniLavorazioneList == null || ordiniLavorazioneList.isEmpty())
|
||||
return null;
|
||||
|
||||
if (flagEvaso.equalsIgnoreCase("E")) return ordiniLavorazioneList;
|
||||
if ("E".equalsIgnoreCase(flagEvaso)) return ordiniLavorazioneList;
|
||||
|
||||
//Filter by codJfas
|
||||
if (linee != null) {
|
||||
|
||||
@@ -558,6 +558,7 @@ public class MetalSistemImportService {
|
||||
colT.setNumCollo(0);
|
||||
colT.setCodMdep(codMdep);
|
||||
colT.setActivityId(activityID);
|
||||
colT.setBarcodeUl(null);
|
||||
colT.setMtbColr(new ArrayList<>());
|
||||
colT.setMtbCols(new ArrayList<>());
|
||||
colT.setPosizione(posizioneDefault);
|
||||
@@ -697,6 +698,7 @@ public class MetalSistemImportService {
|
||||
colTNew.setMtbColr(new ArrayList<>());
|
||||
colTNew.setMtbCols(new ArrayList<>());
|
||||
colTNew.setPosizione(posizioneDefault);
|
||||
colTNew.setBarcodeUl(null);
|
||||
colliMagaz.add(colTNew);
|
||||
|
||||
colTDelete = (MtbColt) colT.clone();
|
||||
|
||||
Reference in New Issue
Block a user