Commit 7e4999df authored by Hsinli's avatar Hsinli

addd

parent 64fa7ca1
Pipeline #8706 passed with stage
in 11 seconds
......@@ -118,9 +118,9 @@ class CollectionService extends Service {
let taskList = [];
for (let i in collectionList) {
if (collectionList[i].house_style === 1) {//1新房2租房 后续根据情况添加
taskList[i] = ctx.realestateModel.NewHouse.one(collectionList[i].connect_id);
taskList[i] = ctx.realestateModel.NewHouse.one({ where: { id: collectionList[i].connect_id } });
} else {
taskList[i] = ctx.realestateModel.RentalHouse.one(collectionList[i].connect_id);
taskList[i] = ctx.realestateModel.RentalHouse.one({ where: { id: collectionList[i].connect_id } });
}
}
let retList = await Promise.all(taskList).then(result => {
......
......@@ -73,9 +73,9 @@ class OrderService extends Service {
let taskList = [];
for (let i in orderList) {
if (orderList[i].houseStyle === 1) {
taskList[i] = ctx.realestateModel.NewHouse.one(orderList[i].connectId);
taskList[i] = ctx.realestateModel.NewHouse.one({ where: { id: collectionList[i].connect_id } });
} else {
taskList[i] = ctx.realestateModel.RentalHouse.one(orderList[i].connectId);
taskList[i] = ctx.realestateModel.RentalHouse.one({ where: { id: collectionList[i].connect_id } });
}
}
let retList = await Promise.all(taskList).then(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