fix reports
This commit is contained in:
parent
56ec8d8b13
commit
c0399b30b0
@ -62,8 +62,7 @@ class ReportSearchForm extends Model
|
||||
{
|
||||
return Reports::find()->with('task')
|
||||
->where(['reports.user_card_id' => $this->user_card_id])
|
||||
// ->where(['between', 'reports.created_at', $this->fromDate, $this->toDate])
|
||||
->andWhere(['reports.created_at' => $this->date])
|
||||
->andWhere(['reports.created_at', 'reports.created_at', $this->fromDate, $this->toDate])
|
||||
->asArray()->all();
|
||||
}
|
||||
|
||||
@ -71,7 +70,7 @@ class ReportSearchForm extends Model
|
||||
{
|
||||
return Reports::find()->with('task')
|
||||
->where(['reports.user_card_id' => $this->user_card_id])
|
||||
->andWhere(['between', 'reports.created_at', $this->fromDate, $this->toDate])
|
||||
->andWhere(['reports.created_at' => $this->date])
|
||||
->asArray()->all();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user