|
|
@@ -18,7 +18,7 @@ public class Custorder extends Controller {
|
|
|
@API(title = "美大CRM_经销商_客户订单列表查询", type = API.Type.PageQuery, apiversion = R.ID2026031410293201.v1.class)
|
|
|
public String sa_custorder_querylist() throws YosException {
|
|
|
QuerySQL querySQL = SQLFactory.createQuerySQL(this, "sa_custorder").setTableAlias("t1");
|
|
|
- querySQL.addJoinTable(JOINTYPE.left, "sa_customers", "t2", "t1.sa_customersid=t2.sa_customersid", "name", "phonenumber", "address");
|
|
|
+ querySQL.addJoinTable(JOINTYPE.left, "sa_customers", "t2", "t1.sa_customersid=t2.sa_customersid", "address");
|
|
|
querySQL.addJoinTable(JOINTYPE.left, "sa_store", "t3", "t1.sa_storeid=t3.sa_storeid", "storeno", "storename");
|
|
|
|
|
|
querySQL.setWhere("sys_enterpriseid", sys_enterpriseid);
|
|
|
@@ -48,7 +48,7 @@ public class Custorder extends Controller {
|
|
|
public String sa_custorder_querymain() throws YosException {
|
|
|
long sa_custorderid = content.getLongValue("sa_custorderid");
|
|
|
QuerySQL querySQL = SQLFactory.createQuerySQL(this, "sa_custorder", "sa_custorderid").setTableAlias("t1");
|
|
|
- querySQL.addJoinTable(JOINTYPE.left, "sa_customers", "t2", "t1.sa_customersid=t2.sa_customersid", "name", "phonenumber", "address", "community");
|
|
|
+ querySQL.addJoinTable(JOINTYPE.left, "sa_customers", "t2", "t1.sa_customersid=t2.sa_customersid", "address", "community");
|
|
|
querySQL.addJoinTable(JOINTYPE.left, "sa_store", "t3", "t1.sa_storeid=t3.sa_storeid", "storeno", "storename");
|
|
|
querySQL.setWhere("sys_enterpriseid", sys_enterpriseid);
|
|
|
querySQL.setUniqueid(sa_custorderid);
|