Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
方斌
51business
Commits
4ac51877
Commit
4ac51877
authored
Jun 11, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addd
parent
7e4999df
Pipeline
#8707
passed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
order.js
app/service/house/v2/order.js
+4
-4
No files found.
app/service/house/v2/order.js
View file @
4ac51877
...
@@ -48,7 +48,7 @@ class OrderService extends Service {
...
@@ -48,7 +48,7 @@ class OrderService extends Service {
* 获取预约列表 保留最近6个月的记录,条数不超过50条
* 获取预约列表 保留最近6个月的记录,条数不超过50条
*/
*/
async
getOrderList
()
{
async
getOrderList
()
{
const
{
ctx
,
service
}
=
this
;
const
{
ctx
}
=
this
;
if
(
!
ctx
.
userId
)
{
if
(
!
ctx
.
userId
)
{
return
{
return
{
results
:
[],
results
:
[],
...
@@ -72,10 +72,10 @@ class OrderService extends Service {
...
@@ -72,10 +72,10 @@ class OrderService extends Service {
//整理所有预约记录
//整理所有预约记录
let
taskList
=
[];
let
taskList
=
[];
for
(
let
i
in
orderList
)
{
for
(
let
i
in
orderList
)
{
if
(
orderList
[
i
].
house
S
tyle
===
1
)
{
if
(
orderList
[
i
].
house
_s
tyle
===
1
)
{
taskList
[
i
]
=
ctx
.
realestateModel
.
NewHouse
.
one
({
where
:
{
id
:
collection
List
[
i
].
connect_id
}
});
taskList
[
i
]
=
ctx
.
realestateModel
.
NewHouse
.
one
({
where
:
{
id
:
order
List
[
i
].
connect_id
}
});
}
else
{
}
else
{
taskList
[
i
]
=
ctx
.
realestateModel
.
RentalHouse
.
one
({
where
:
{
id
:
collection
List
[
i
].
connect_id
}
});
taskList
[
i
]
=
ctx
.
realestateModel
.
RentalHouse
.
one
({
where
:
{
id
:
order
List
[
i
].
connect_id
}
});
}
}
}
}
let
retList
=
await
Promise
.
all
(
taskList
).
then
(
result
=>
{
let
retList
=
await
Promise
.
all
(
taskList
).
then
(
result
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment