作者 lyh

gx私有模块查询

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