Commit 23d23670 by 王昆

gsb

parent 0d37d48e
......@@ -238,9 +238,9 @@ class EsettleService extends ServiceBase {
async statSettleAmt(condition) {
var sql = "SELECT " +
"t1.`amt` " +
"FROM tbl_order t1 " +
"FROM tbl_order_item t1 " +
"INNER JOIN `tbl_busi` t2 ON t1.`busi_id` = t2.`id` " +
"WHERE 1 = 1 ";
"WHERE trade_status = '00' ";
if(condition.busi_id) {
sql = sql + " AND t2.`id` = '" + condition.busi_id + "' ";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment