Migliorata query di retrieve barcodes in posizione
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:
@@ -734,10 +734,11 @@ public class WMSUtility {
|
|||||||
|
|
||||||
public static List<String> retrieveBarcodesInPosizione(Connection connection, String posizione) throws SQLException {
|
public static List<String> retrieveBarcodesInPosizione(Connection connection, String posizione) throws SQLException {
|
||||||
String sql = "SELECT * FROM (" +
|
String sql = "SELECT * FROM (" +
|
||||||
"SELECT barcode_ul FROM mtb_colt WHERE posizione = " + UtilityDB.valueToString(posizione) +
|
"SELECT barcode_ul FROM mtb_colt WHERE posizione = " + UtilityDB.valueToString(posizione) + "\n" +
|
||||||
" UNION " +
|
" WHERE segno = 1\n" +
|
||||||
|
" UNION \n" +
|
||||||
" SELECT barcode_ul FROM mvw_sitart_udc_det_inventario WHERE posizione = " + UtilityDB.valueToString(posizione) +
|
" SELECT barcode_ul FROM mvw_sitart_udc_det_inventario WHERE posizione = " + UtilityDB.valueToString(posizione) +
|
||||||
") tmp" +
|
") tmp\n" +
|
||||||
" WHERE tmp.barcode_ul IS NOT NULL";
|
" WHERE tmp.barcode_ul IS NOT NULL";
|
||||||
|
|
||||||
return UtilityDB.executeSimpleQueryOnlyFirstColumn(connection, sql);
|
return UtilityDB.executeSimpleQueryOnlyFirstColumn(connection, sql);
|
||||||
|
|||||||
Reference in New Issue
Block a user