作者 lyh

gx

@@ -236,8 +236,6 @@ class ATemplateController extends BaseController @@ -236,8 +236,6 @@ class ATemplateController extends BaseController
236 public function getProjectPublicTemplate(ATemplateLogic $aTemplateLogic){ 236 public function getProjectPublicTemplate(ATemplateLogic $aTemplateLogic){
237 $filed = ['id','name','image','url','status','sort','deleted_status','test_model','created_at','project_id']; 237 $filed = ['id','name','image','url','status','sort','deleted_status','test_model','created_at','project_id'];
238 $this->map['project_id'] = ['!=',0]; 238 $this->map['project_id'] = ['!=',0];
239 - $this->map['deleted_status'] = 0;  
240 - $this->map['status'] = 0;  
241 $lists = $aTemplateLogic->aTemplateList($this->map,$this->page,$this->row,$this->order,$filed); 239 $lists = $aTemplateLogic->aTemplateList($this->map,$this->page,$this->row,$this->order,$filed);
242 if(!empty($lists) && !empty($lists['list'])){ 240 if(!empty($lists) && !empty($lists['list'])){
243 foreach ($lists['list'] as $k => $v){ 241 foreach ($lists['list'] as $k => $v){
@@ -28,7 +28,6 @@ class ATemplateLogic extends BaseLogic @@ -28,7 +28,6 @@ class ATemplateLogic extends BaseLogic
28 * @time :2023/6/28 17:03 28 * @time :2023/6/28 17:03
29 */ 29 */
30 public function aTemplateList($map,$page,$row,$order = ['created_at'],$filed = ['*']){ 30 public function aTemplateList($map,$page,$row,$order = ['created_at'],$filed = ['*']){
31 - $map['project_id'] = 0;  
32 $map['deleted_status'] = 0; 31 $map['deleted_status'] = 0;
33 $map['status'] = 0; 32 $map['status'] = 0;
34 $lists = $this->model->lists($map,$page,$row,$order,$filed); 33 $lists = $this->model->lists($map,$page,$row,$order,$filed);