Aggiunto campo articolo in retrieveArts wms
Some checks failed
IntegryManagementSystem_Multi/pipeline/head There was a failure building this commit

This commit is contained in:
2025-10-15 11:51:19 +02:00
parent cd98c3884f
commit 5421cb12d2
3 changed files with 18 additions and 2 deletions

View File

@@ -77,8 +77,11 @@ public class UtilityQuery {
" TempCount.* " +
"FROM TempResult, " +
" TempCount " +
"ORDER BY row_number " +
"OFFSET (" + pageNumber + " - 1) * " + pageSize + " ROWS FETCH NEXT " + pageSize + " ROWS ONLY";
"ORDER BY row_number ";
if (pageNumber > 0 && pageSize > 0) {
sql += "OFFSET (" + pageNumber + " - 1) * " + pageSize + " ROWS FETCH NEXT " + pageSize + " ROWS ONLY";
}
return sql;
}

View File

@@ -14,6 +14,9 @@ public class ArticoloDTO {
@SqlField("mtb_aart.descrizione")
private String descrizione;
@SqlField("CONCAT(mtb_aart.cod_mart, ' - ', mtb_aart.descrizione)")
private String articolo;
@SqlField("mtb_aart.unt_mis")
private String untMis;
@@ -84,6 +87,15 @@ public class ArticoloDTO {
return this;
}
public String getArticolo() {
return articolo;
}
public ArticoloDTO setArticolo(String articolo) {
this.articolo = articolo;
return this;
}
public String getUntMis() {
return untMis;
}

View File

@@ -101,6 +101,7 @@ public class WMSArticoloService {
String query = "SELECT mtb_aart.cod_mart AS [mtb_aart.cod_mart], " +
" mtb_aart.descrizione AS [mtb_aart.descrizione], " +
" CONCAT(mtb_aart.cod_mart, ' - ', mtb_aart.descrizione) AS [CONCAT(mtb_aart.cod_mart, ' - ', mtb_aart.descrizione)], " +
" mtb_aart.descrizione_estesa AS [mtb_aart.descrizione_estesa], " +
" mtb_aart.unt_mis AS [mtb_aart.unt_mis], " +
" mtb_aart.cod_mgrp AS [mtb_aart.cod_mgrp], " +