master
cody 5 months ago
parent 9754c9729e
commit 5f42b62ded

@ -87,7 +87,7 @@ class CourseContentController extends BaseController
// notnull搜索 // notnull搜索
if ($op == 'notnull') { if ($op == 'notnull') {
// 不是null并且不是空json这个是一个json字段 // 不是null并且不是空json这个是一个json字段
$query->whereNotNull($key)->whereRaw('json_length(' . $key . ') >', 0); $query->whereNotNull($key)->whereRaw("json_length($key) > 0");
} }
// 范围搜索 // 范围搜索
if ($op == 'range') { if ($op == 'range') {

Loading…
Cancel
Save