master
cody 5 months ago
parent 9df18688c0
commit ac6a600062

@ -86,8 +86,8 @@ class CourseContentController extends BaseController
}
// notnull搜索
if ($op == 'notnull') {
// 不是null并且不是空数组
$query->whereNotNull($key)->where($key, '!=', []);
// 不是null并且不是空json这个是一个json字段
$query->whereNotNull($key)->where('json_length(' . $key . ') >', 0);
}
// 范围搜索
if ($op == 'range') {

Loading…
Cancel
Save