Commit 4ac51877 authored by Hsinli's avatar Hsinli

addd

parent 7e4999df
Pipeline #8707 passed with stage
in 9 seconds
......@@ -48,7 +48,7 @@ class OrderService extends Service {
* 获取预约列表 保留最近6个月的记录,条数不超过50条
*/
async getOrderList() {
const { ctx, service } = this;
const { ctx } = this;
if (!ctx.userId) {
return {
results: [],
......@@ -72,10 +72,10 @@ class OrderService extends Service {
//整理所有预约记录
let taskList = [];
for (let i in orderList) {
if (orderList[i].houseStyle === 1) {
taskList[i] = ctx.realestateModel.NewHouse.one({ where: { id: collectionList[i].connect_id } });
if (orderList[i].house_style === 1) {
taskList[i] = ctx.realestateModel.NewHouse.one({ where: { id: orderList[i].connect_id } });
} else {
taskList[i] = ctx.realestateModel.RentalHouse.one({ where: { id: collectionList[i].connect_id } });
taskList[i] = ctx.realestateModel.RentalHouse.one({ where: { id: orderList[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