Finish Hotfix-51
This commit is contained in:
@@ -139,7 +139,7 @@ public class DocumentiMilkonExportService {
|
||||
}
|
||||
}
|
||||
|
||||
String queryPartita = "SELECT partita_mag, qta FROM dbo.getQtaXPartitaMag('" + document.getCodMdep() + "','" + document.getCodMart() + "','" + ordPartita + "'," + document.getQtaDoc().toString() + ", 0, null, format(getdate(), 'yyyy/mm/dd'))";
|
||||
String queryPartita = "SELECT partita_mag, qta FROM dbo.getQtaXPartitaMag('" + document.getCodMdep() + "','" + document.getCodMart() + "','" + ordPartita + "'," + document.getQtaDoc().toString() + ", 0, null, format(getdate(), 'yyyyMMdd'))";
|
||||
PreparedStatement psPartita = targetConnection.prepareStatement(queryPartita);
|
||||
ResultSet rsPartita = psPartita.executeQuery();
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ public class WMSColliService {
|
||||
+ "mtb_colt.num_collo, "
|
||||
+ "mtb_colr.cod_mart, "
|
||||
+ "mtb_colr.qta_cnf) colli "
|
||||
+ "CROSS APPLY dbo.getQtaXPartitaMag(colli.cod_mdep, colli.cod_mart, " + UtilityDB.valueToString(criterioAssegnaLotto) + ", colli.qta_col, 1 , null, format(getdate(), 'yyyy/mm/dd')) fifo "
|
||||
+ "CROSS APPLY dbo.getQtaXPartitaMag(colli.cod_mdep, colli.cod_mart, " + UtilityDB.valueToString(criterioAssegnaLotto) + ", colli.qta_col, 1 , null, format(getdate(), 'yyyyMMdd')) fifo "
|
||||
+ "union all "
|
||||
+ "SELECT mtb_colr.cod_mart, mtb_colr.partita_mag, mtb_colr.qta_col, mtb_colr.qta_cnf "
|
||||
+ "from mtb_colr "
|
||||
|
||||
Reference in New Issue
Block a user