|
...
|
...
|
@@ -26,6 +26,11 @@ class ATemplateController extends BaseController |
|
|
|
* @time :2023/6/28 16:34
|
|
|
|
*/
|
|
|
|
public function lists(ATemplateLogic $aTemplateLogic,TemplateLabel $templateLabel){
|
|
|
|
if(isset($this->map['label_name']) && !empty($this->map['label_name'])){
|
|
|
|
$id_arr = $templateLabel->formatQuery(['name'=>['like','%'.$this->map['label_name'].'%']])->pluck('template_id')->toArray();
|
|
|
|
$this->map['id'] = ['in',$id_arr];
|
|
|
|
unset($this->map['label_name']);
|
|
|
|
}
|
|
|
|
$filed = ['id','name','image','url','status','sort','deleted_status','test_model','created_at','project_id'];
|
|
|
|
$lists = $aTemplateLogic->aTemplateList($this->map,$this->page,$this->row,$this->order,$filed);
|
|
|
|
if(!empty($lists) && !empty($lists['list'])){
|
...
|
...
|
|