正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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){ |
-
请 注册 或 登录 后发表评论