Important -> SQL keywords must go uppercase
Minor -> indentation, organize imports
This commit is contained in:
parent
7e0a2141bb
commit
ff6b2bff61
|
@ -16,9 +16,11 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
package org.compiere.model;
|
package org.compiere.model;
|
||||||
|
|
||||||
import java.sql.*;
|
import java.sql.ResultSet;
|
||||||
import java.util.*;
|
import java.util.List;
|
||||||
import org.compiere.util.*;
|
import java.util.Properties;
|
||||||
|
|
||||||
|
import org.compiere.util.Env;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -60,8 +62,8 @@ public class MShipper extends X_M_Shipper
|
||||||
*/
|
*/
|
||||||
public static List<MShipper> getShippersForFreightCategory(Properties ctx, int FreightCategory_ID, String trxName) {
|
public static List<MShipper> getShippersForFreightCategory(Properties ctx, int FreightCategory_ID, String trxName) {
|
||||||
Query q = new Query(ctx, MShipper.Table_Name,
|
Query q = new Query(ctx, MShipper.Table_Name,
|
||||||
"M_Shipper.AD_Client_ID=? and M_Shipper.AD_Org_ID in (0,?) and M_Shipper_ID " +
|
"M_Shipper.AD_Client_ID=? AND M_Shipper.AD_Org_ID IN (0,?) AND M_Shipper_ID " +
|
||||||
"in (select M_Shipper_ID from M_Freight where M_FreightCategory_ID=?)", trxName);
|
"IN (SELECT M_Shipper_ID FROM M_Freight WHERE M_FreightCategory_ID=?)", trxName);
|
||||||
q.setParameters(new Object[]{Env.getAD_Client_ID(ctx), Env.getAD_Org_ID(ctx), FreightCategory_ID});
|
q.setParameters(new Object[]{Env.getAD_Client_ID(ctx), Env.getAD_Org_ID(ctx), FreightCategory_ID});
|
||||||
List<MShipper> result = q.list();
|
List<MShipper> result = q.list();
|
||||||
return(result);
|
return(result);
|
||||||
|
|
Loading…
Reference in New Issue