更新任务关键字查询

This commit is contained in:
yaooo 2023-11-07 14:16:31 +08:00
parent c15f192361
commit c347014afb
1 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,9 @@ class ProjectTask extends Model
if (!empty($param['keywords'])) { if (!empty($param['keywords'])) {
$where[] = ['title|content', 'like', '%' . $param['keywords'] . '%']; $where[] = ['title|content', 'like', '%' . $param['keywords'] . '%'];
} }
if (!empty($param['keyword'])) {
$where[] = ['title|content', 'like', '%' . $param['keyword'] . '%'];
}
$where[] = ['delete_time', '=', 0]; $where[] = ['delete_time', '=', 0];