作者 lyh

未续费项目增加搜索

@@ -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();