Showing
1 changed file
with
1 additions
and
1 deletions
@@ -129,7 +129,7 @@ module.exports = class extends global.yoho.BaseModel { | @@ -129,7 +129,7 @@ module.exports = class extends global.yoho.BaseModel { | ||
129 | 129 | ||
130 | let where = ''; | 130 | let where = ''; |
131 | 131 | ||
132 | - if (extra.type) { | 132 | + if (+extra.type) { |
133 | where = '(p.status = 2 or (p.is_full = 0 and p.end_time <= :now))'; | 133 | where = '(p.status = 2 or (p.is_full = 0 and p.end_time <= :now))'; |
134 | } else { | 134 | } else { |
135 | where = 'p.status < 2 and (p.is_full > 0 != p.end_time > :now)'; | 135 | where = 'p.status < 2 and (p.is_full > 0 != p.end_time > :now)'; |
-
Please register or login to post a comment