Commit bed41b79 by 任晓松

根据产品类型获取产品

parent d60d6dd4
......@@ -65,12 +65,7 @@ class ProductService extends ServiceBase {
attributes:["name"],
where:{product_type_id:type.id},raw:true
});
let names = '';
products.forEach(item =>{
names += item.name +','
})
names = names.substring(0,names.length-1);
return system.getResult(names)
return system.getResult(products)
}
}
module.exports = ProductService;
\ No newline at end of file
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