Commit eb3d47d4 by wkliang

fix

parent d35cf2dc
......@@ -58,9 +58,9 @@ class ProductService extends ServiceBase {
async getByIds (ids) {
let result = await this.dao.getByIds(ids)
for (let i = 0; i < result.rows.length; ++i) {
if (result.rows[i].price) {
result.rows[i].setDataValue("price", result.rows[i].price / 100)
for (let i = 0; i < result.length; ++i) {
if (result[i].price) {
result[i].setDataValue("price", result[i].price / 100)
}
}
return result
......
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