Commit f460c0de by 王昆

gsb

parent db2e16b3
......@@ -27,7 +27,6 @@ class IproductprocessDao extends Dao {
}
async byProductPid(productPid) {
let result = {};
let sql = [];
sql.push("SELECT");
sql.push("*");
......@@ -38,9 +37,9 @@ class IproductprocessDao extends Dao {
let list = await this.customQuery(sql.join(" "), {productPid: productPid});
if (!list || list.length == 0) {
return result;
return [];
}
return result;
return list;
}
}
......
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