* Modify 0000 to notZeroDate.

This commit is contained in:
songchenxuan
2023-06-12 09:25:27 +08:00
parent f8f7419706
commit 5a8803fdad
+1 -1
View File
@@ -863,7 +863,7 @@ class screenModel extends model
case 'year':
$component->option->value = $this->filter->year;
$begin = $this->dao->select('YEAR(MIN(date)) year')->from(TABLE_ACTION)->where('date')->ne('0000-00-00')->fetch('year');
$begin = $this->dao->select('YEAR(MIN(date)) year')->from(TABLE_ACTION)->where('date')->notZeroDate()->fetch('year');
if($begin < 2009) $begin = 2009;
$options = array();