|
@@ -110,12 +110,11 @@ public class Order extends Controller {
|
|
|
//查询订单列表(经销商)
|
|
//查询订单列表(经销商)
|
|
|
public QuerySQL queryList(String where) throws YosException {
|
|
public QuerySQL queryList(String where) throws YosException {
|
|
|
QuerySQL querySQL = SQLFactory.createQuerySQL(this, "sa_order",
|
|
QuerySQL querySQL = SQLFactory.createQuerySQL(this, "sa_order",
|
|
|
- "sa_orderid", "sonum", "status", "type", "billdate", "tradefield", "remarks","rec_contactsid","checkdate","closedate");
|
|
|
|
|
|
|
+ "sa_orderid", "sonum", "status", "type", "billdate", "tradefield", "remarks","rec_contactsid","checkdate","closedate","contact");
|
|
|
querySQL.setTableAlias("t1");
|
|
querySQL.setTableAlias("t1");
|
|
|
querySQL.addJoinTable(JOINTYPE.left, "sa_brand", "t3", "t3.sa_brandid = t1.sa_brandid",
|
|
querySQL.addJoinTable(JOINTYPE.left, "sa_brand", "t3", "t3.sa_brandid = t1.sa_brandid",
|
|
|
"brandname");
|
|
"brandname");
|
|
|
- querySQL.addJoinTable(JOINTYPE.left, "sys_enterprise_contacts", "t4", "t4.contactsid = t1.rec_contactsid and t4.siteid = t1.siteid",
|
|
|
|
|
- "name");
|
|
|
|
|
|
|
+
|
|
|
querySQL.setCondition("t1.sonum", "t4.name", "t1.remarks");
|
|
querySQL.setCondition("t1.sonum", "t4.name", "t1.remarks");
|
|
|
querySQL.setWhere("t1.siteid", siteid);
|
|
querySQL.setWhere("t1.siteid", siteid);
|
|
|
querySQL.setWhere(where);
|
|
querySQL.setWhere(where);
|