Commit 59eab300 authored by wangtao's avatar wangtao

管理后台 看板

parent 38d5f154
...@@ -7,6 +7,7 @@ use app\api\service\UtilService; ...@@ -7,6 +7,7 @@ use app\api\service\UtilService;
use app\api\validate\ShCourseValidate; use app\api\validate\ShCourseValidate;
use app\BaseController; use app\BaseController;
use app\model\CertTag; use app\model\CertTag;
use app\model\CourseCategory;
use app\model\ShCourse as ShCourseModel; use app\model\ShCourse as ShCourseModel;
use app\Request; use app\Request;
use think\facade\Db; use think\facade\Db;
...@@ -27,7 +28,7 @@ class ShCourse extends BaseController ...@@ -27,7 +28,7 @@ class ShCourse extends BaseController
if (isset($parm['searchKeyWords']) && $parm['searchKeyWords']) { if (isset($parm['searchKeyWords']) && $parm['searchKeyWords']) {
$map[] = ['sh_course.title', 'like', '%' . $parm['searchKeyWords'] . '%']; $map[] = ['sh_course.title', 'like', '%' . $parm['searchKeyWords'] . '%'];
} }
if (isset($parm['status']) && $parm['status'] || $parm['status'] === '0') { if (isset($parm['status']) && ($parm['status'] || $parm['status'] === '0')) {
$map[] = ['status', '=', $parm['status']]; $map[] = ['status', '=', $parm['status']];
} }
$hasmap = []; $hasmap = [];
...@@ -155,5 +156,12 @@ class ShCourse extends BaseController ...@@ -155,5 +156,12 @@ class ShCourse extends BaseController
} }
//课程分类
public function ShCourseCategory()
{
$list = (new CourseCategory)->getCourseCategoryList();
return $this->returnMsg('操作成功', 1, $list);
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment