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
bbc0eaef
Commit
bbc0eaef
authored
Sep 27, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e71db4a3
Pipeline
#14365
passed with stage
in 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
institution.js
app/service/course/institution.js
+5
-5
No files found.
app/service/course/institution.js
View file @
bbc0eaef
...
...
@@ -13,8 +13,8 @@ class InstitutionService extends Service {
const
{
ctx
}
=
this
;
const
user_uuid
=
ctx
.
userUuid
;
const
{
cat
,
age
,
institution
,
lat
,
lng
,
address
}
=
input
;
const
{
cat
s
,
ages
,
lat
,
lng
,
address
}
=
input
;
const
where_institutions
=
input
.
institutions
;
//保存定位记录
if
(
address
&&
lat
&&
lng
)
{
ctx
.
classModel
.
CourseLogUserGps
.
add
({
user_uuid
,
address
,
lat
,
lng
});
...
...
@@ -36,10 +36,10 @@ class InstitutionService extends Service {
where
.
id
=
{
$in
:
R
.
pluck
(
'institution_id'
,
institutions
)
};
}
if
(
ages
)
{
where
.
max_age
=
{
$gte
:
age
};
where
.
min_age
=
{
$lte
:
age
};
where
.
max_age
=
{
$gte
:
age
s
};
where
.
min_age
=
{
$lte
:
age
s
};
}
if
(
institutions
)
{
if
(
where_
institutions
)
{
where
.
corner
=
{
$ne
:
''
};
}
...
...
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