Commit 17d23305 by 孙亚楠

dd

parent 17f9b04e
......@@ -34,7 +34,7 @@ class OorderprocessDao extends Dao {
}
async listByOrderIdsAndStatus(orderIds, statuses) {
var result = {};
var result = [];
if (!orderIds || orderIds.length == 0 || !statuses || statuses.length == 0) {
return result;
}
......@@ -45,7 +45,8 @@ class OorderprocessDao extends Dao {
sql.push("WHERE order_id IN (:orderIds)");
sql.push("AND `status` IN (:statuses)");
return await this.customQuery(sql.join(" "), {orderIds: orderIds, statuses: statuses});
let res = await this.customQuery(sql.join(" "), {orderIds: orderIds, statuses: statuses});
return res;
}
async mapByOrderIdsAndStatus(orderIds, statuses) {
......
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