作者 lyh

gx私有模块查询

... ... @@ -31,7 +31,7 @@ class BTemplateModuleProjectLogic extends BaseLogic
*/
public function ModuleList($map,$order = 'created_at',$filed = ['id','name','status','image','html','project_id']){
$map['deleted_status'] = 0;
$list = $this->model::whereRaw("FIND_IN_SET(?, project_id)", [$this->user['project_id']])->get()->toArray();
$list = $this->model::whereRaw("FIND_IN_SET(?, project_id)", [$this->user['project_id']])->orderBy($order,'desc')->select($filed)->get()->toArray();
$templateLabel = new TemplateLabel();
$label = [];
foreach ($list as $v){
... ...