Commit af3fadfb by wkliang

增加查询property

parent 820e1316
...@@ -13,7 +13,7 @@ class ProductService extends ServiceBase { ...@@ -13,7 +13,7 @@ class ProductService extends ServiceBase {
async getAllDic (type = [1, 2]) { async getAllDic (type = [1, 2]) {
let query = { let query = {
where: { product_type: { [this.db.Op.in]: type }, source_id: 10001 }, where: { product_type: { [this.db.Op.in]: type }, source_id: 10001 },
attributes: ['id', 'product_type', 'product_name', 'price'], attributes: ['id', 'product_type', 'product_name', 'price', 'product_property'],
include: [{ include: [{
model: this.itemDao.model, model: this.itemDao.model,
attributes: [['product_id', 'id']], attributes: [['product_id', '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