$filter->where(function ($query) {
// logger($this->input);
if ($this->input == 1)
$query->whereNull('jz_cx_gid');
else if ($this->input == 2)
$query->whereNotNull('jz_cx_gid');
}, 'gid是否为空')->radio([
'' => '不作选择',
1 => '为空',
2 => '不为空',
]);
网友评论