...
|
...
|
@@ -129,7 +129,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
|
|
|
let where = '';
|
|
|
|
|
|
if (extra.type) {
|
|
|
if (+extra.type) {
|
|
|
where = '(p.status = 2 or (p.is_full = 0 and p.end_time <= :now))';
|
|
|
} else {
|
|
|
where = 'p.status < 2 and (p.is_full > 0 != p.end_time > :now)';
|
...
|
...
|
|