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
ea7fc96e
Commit
ea7fc96e
authored
Apr 26, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
house fi
parent
be9de83e
Pipeline
#6550
passed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
21 deletions
+24
-21
rental_house.js
app/service/house/rental_house.js
+24
-21
No files found.
app/service/house/rental_house.js
View file @
ea7fc96e
...
...
@@ -198,30 +198,33 @@ class RentalHouseService extends Service {
}
const
{
ctx
}
=
this
;
let
house_types_tmp
=
{};
let
house_type_image_filter
=
{
pageSize
:
10000
,
queryConditions
:
[
{
key
:
'state'
,
value
:
1
,
operator
:
'equal'
},
{
key
:
'type'
,
value
:
3
,
operator
:
'equal'
,
},
],
};
for
(
let
i
in
house_types
)
{
const
house_type
=
house_types
[
i
];
house_type_image_filter
.
queryConditions
.
push
({
key
:
'connectId'
,
value
:
house_type
.
id
,
operator
:
'equal'
,
});
const
house_type_image_filter
=
{
pageSize
:
10000
,
queryConditions
:
[
{
key
:
'state'
,
value
:
1
,
operator
:
'equal'
},
{
key
:
'type'
,
value
:
3
,
operator
:
'equal'
,
},
{
key
:
'connectId'
,
value
:
house_type
.
id
,
operator
:
'equal'
,
}
],
};
const
house_type_images_results
=
await
ctx
.
service
.
houseCommon
.
houseImage
.
all
(
house_type_image_filter
);
console
.
info
(
'1111111111111111111111111111111111111111111'
)
console
.
info
(
house_type_images_results
);
const
type
=
house_type
.
type
||
1
;
const
house_type_value
=
HOUSE_TYPE
[
type
];
if
(
!
house_types_tmp
[
type
])
{
...
...
@@ -242,7 +245,7 @@ class RentalHouseService extends Service {
}
const
ret
=
[];
for
(
let
i
in
house_types_tmp
)
{
const
item
=
ret
.
push
(
house_types_tmp
[
i
])
}
for
(
let
i
in
house_types_tmp
)
{
ret
.
push
(
house_types_tmp
[
i
])
}
return
ret
;
}
...
...
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