|
@@ -180,16 +180,9 @@ public class OrderItems extends Controller {
|
|
|
}
|
|
|
|
|
|
//查询商品费用方案方法
|
|
|
- SQLFactory sqlFactory = new SQLFactory(this, "查询商品费用方案方法");
|
|
|
- sqlFactory.addParameter("siteid", siteid);
|
|
|
- sqlFactory.addParameter("sa_orderid", sa_orderid);
|
|
|
- Rows rows = dbConnect.runSqlQuery(sqlFactory);
|
|
|
- for (Row row : rows) {
|
|
|
- DataFunction df = DataFunction.get(this, row.getString("functionname"));
|
|
|
- df.addParameter("sa_orderid", sa_orderid);
|
|
|
- df.action();
|
|
|
- }
|
|
|
-
|
|
|
+ orderItemsHelper.executeDataFunction(sa_orderid);
|
|
|
+ //是否自动返利结算
|
|
|
+ orderItemsHelper.executeAutoRebate(sa_orderid,sys_enterpriseid);
|
|
|
|
|
|
return getSucReturnObject().toString();
|
|
|
}
|
|
@@ -920,9 +913,9 @@ public class OrderItems extends Controller {
|
|
|
//查询订单列表(管理端)
|
|
|
public QuerySQL queryAllListManage(String where) throws YosException {
|
|
|
|
|
|
- QuerySQL t11= SQLFactory.createQuerySQL(this,"sa_dispatch_items",
|
|
|
- "sa_orderitemsid","siteid");
|
|
|
- t11.addQueryFields("outwarehouseqty","sum(outwarehouseqty)");
|
|
|
+ QuerySQL t11 = SQLFactory.createQuerySQL(this, "sa_dispatch_items",
|
|
|
+ "sa_orderitemsid", "siteid");
|
|
|
+ t11.addQueryFields("outwarehouseqty", "sum(outwarehouseqty)");
|
|
|
t11.addGroupBy("sa_orderitemsid,siteid");
|
|
|
|
|
|
|
|
@@ -947,7 +940,7 @@ public class OrderItems extends Controller {
|
|
|
"areaname");
|
|
|
querySQL.addJoinTable(JOINTYPE.left, t11, "t11", "t11.sa_orderitemsid = t1.sa_orderitemsid and t11.siteid = t1.siteid");
|
|
|
querySQL.addQueryFields("orderremarks", "t5.remarks");
|
|
|
- querySQL.addQueryFields("outwarehouseqty","ifnull(t11.outwarehouseqty,0)");
|
|
|
+ querySQL.addQueryFields("outwarehouseqty", "ifnull(t11.outwarehouseqty,0)");
|
|
|
//querySQL.addQueryFields("accountclassinfos", "REPLACE(SUBSTRING(JSON_EXTRACT(t5.sa_accountclassinfos, '$[*].accountname'), 2, CHAR_LENGTH(JSON_EXTRACT(t5.sa_accountclassinfos, '$[*].accountname'))-2),'\"','')");
|
|
|
querySQL.setWhere("t1.siteid", siteid);
|
|
|
querySQL.setWhere(where);
|