|
@@ -21,9 +21,13 @@ use app\data\model\DataClassification;
|
|
|
use app\data\model\DataPoolTalent;
|
|
|
use app\data\model\DataUser;
|
|
|
use app\data\model\DataZhicheng;
|
|
|
+use app\data\model\ShopGoodsCate;
|
|
|
+use app\data\model\ShopGoodsMark;
|
|
|
+use app\data\service\GoodsService;
|
|
|
use Carbon\Carbon;
|
|
|
use think\admin\Controller;
|
|
|
use app\data\model\SystemUser;
|
|
|
+use think\admin\service\AdminService;
|
|
|
use think\db\Query;
|
|
|
|
|
|
/**
|
|
@@ -154,6 +158,13 @@ class BestKnowledge extends Controller
|
|
|
public function index2(){
|
|
|
$this->title='百知文库列表';
|
|
|
$name=input('name');
|
|
|
+ $title=input('title');
|
|
|
+ $class_id = input('class_id');
|
|
|
+ $where = [];
|
|
|
+ if($class_id != ''){
|
|
|
+ $where['class_id'] = $class_id;
|
|
|
+ }
|
|
|
+ $this->class = DataClassification::where('is_del',1)->select();
|
|
|
DataBestKnowledge::mQuery()
|
|
|
->when($name,function (Query $query) use ($name) {
|
|
|
$query->hasWhere('user',function (Query $query) use ($name) {
|
|
@@ -163,10 +174,13 @@ class BestKnowledge extends Controller
|
|
|
->with(['user','classTo'])
|
|
|
// ->whereIn('type','1,2')
|
|
|
->where('is_del',1)
|
|
|
+ ->where($where)
|
|
|
+ ->whereLike('title',"%{$title}%")
|
|
|
->order('id','desc')
|
|
|
->layTable();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* 百知文库添加
|
|
|
* @auth true
|