正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -103,7 +103,7 @@ class TicketCount extends Command | @@ -103,7 +103,7 @@ class TicketCount extends Command | ||
| 103 | ->whereColumn('plan_end_at', '<', 'end_at'); | 103 | ->whereColumn('plan_end_at', '<', 'end_at'); |
| 104 | })->orWhere(function ($q) { | 104 | })->orWhere(function ($q) { |
| 105 | $q->whereNull('end_at') | 105 | $q->whereNull('end_at') |
| 106 | - ->where('plan_end_at', '>', now()); | 106 | + ->where('plan_end_at', '<', now()); |
| 107 | }); | 107 | }); |
| 108 | }) | 108 | }) |
| 109 | ->count(); | 109 | ->count(); |
| @@ -169,7 +169,7 @@ class TicketCount extends Command | @@ -169,7 +169,7 @@ class TicketCount extends Command | ||
| 169 | ->whereColumn('plan_end_at', '<', 'end_at'); | 169 | ->whereColumn('plan_end_at', '<', 'end_at'); |
| 170 | })->orWhere(function ($q) { | 170 | })->orWhere(function ($q) { |
| 171 | $q->whereNull('end_at') | 171 | $q->whereNull('end_at') |
| 172 | - ->where('plan_end_at', '>', now()); | 172 | + ->where('plan_end_at', '<', now()); |
| 173 | }); | 173 | }); |
| 174 | }) | 174 | }) |
| 175 | ->count(); | 175 | ->count(); |
| @@ -227,10 +227,10 @@ class TicketCount extends Command | @@ -227,10 +227,10 @@ class TicketCount extends Command | ||
| 227 | ->where(function ($query) { | 227 | ->where(function ($query) { |
| 228 | $query->where(function ($q) { | 228 | $query->where(function ($q) { |
| 229 | $q->whereNotNull('end_at') | 229 | $q->whereNotNull('end_at') |
| 230 | - ->whereColumn('plan_end_at', '<>>', 'end_at'); | 230 | + ->whereColumn('plan_end_at', '<', 'end_at'); |
| 231 | })->orWhere(function ($q) { | 231 | })->orWhere(function ($q) { |
| 232 | $q->whereNull('end_at') | 232 | $q->whereNull('end_at') |
| 233 | - ->where('plan_end_at', '>', now()); | 233 | + ->where('plan_end_at', '<', now()); |
| 234 | }); | 234 | }); |
| 235 | }) | 235 | }) |
| 236 | ->count(); | 236 | ->count(); |
-
请 注册 或 登录 后发表评论