|
@@ -194,7 +194,7 @@ class GoodsService extends CrudService {
|
|
|
async getGoodsSetList(data) {
|
|
|
const goods = _.get(data, 'goods');
|
|
|
if (!goods) return [];
|
|
|
- const goodsSetList = await this.setModel.find({ goods: goods._id, is_use: '0' }).lean();
|
|
|
+ const goodsSetList = await this.setModel.find({ 'set.goods': goods._id, is_use: '0' }).lean();
|
|
|
const arr = [];
|
|
|
for (const sd of goodsSetList) {
|
|
|
const { _id, set = [], sell_money, name } = sd;
|