Aggiunto campo articolo in retrieveArts wms
Some checks failed
IntegryManagementSystem_Multi/pipeline/head There was a failure building this commit
Some checks failed
IntegryManagementSystem_Multi/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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], " +
|
||||
|
||||
Reference in New Issue
Block a user