Commit bbc0eaef authored by 李尚科's avatar 李尚科

fix

parent e71db4a3
Pipeline #14365 passed with stage
in 6 seconds
......@@ -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 { cats, 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: ages };
where.min_age = { $lte: ages };
}
if (institutions) {
if (where_institutions) {
where.corner = { $ne: '' };
}
......
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