update:修改操作日志搜索
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace catchAdmin\system\model\search;
|
namespace catchAdmin\system\model\search;
|
||||||
|
|
||||||
|
use catchAdmin\permissions\model\Users;
|
||||||
|
|
||||||
trait OperateLogSearch
|
trait OperateLogSearch
|
||||||
{
|
{
|
||||||
public function searchModuleAttr($query, $value, $data)
|
public function searchModuleAttr($query, $value, $data)
|
||||||
@@ -16,7 +18,7 @@ trait OperateLogSearch
|
|||||||
|
|
||||||
public function searchCreatorAttr($query, $value, $data)
|
public function searchCreatorAttr($query, $value, $data)
|
||||||
{
|
{
|
||||||
return $query->where('username', $value);
|
return $query->whereLike(app(Users::class)->getTable() . '.username', $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function searchCreateAtAttr($query, $value, $data)
|
public function searchCreateAtAttr($query, $value, $data)
|
||||||
|
Reference in New Issue
Block a user