求助 版主:官方研发技术组
where_list 这个怎么样使用多判断
类型:迅睿CMS 更新时间:2021-11-17 12:07:58 table类
    $this->_init([
            'table' => $table.'_comment',
            'select_list' => $table.'_comment.*,'.$table.'.title,'.$table.'.url',
            'order_by' => $table.'_comment.inputtime desc',
            'join_list' => [$table, $table.'.id='.$table.'_comment.cid', 'left'],
	'where_list2' =>$table.'_comment.cid='.$this->cid.'',
       'where_list' =>$table.'_comment.id='.$this->id.'',

请教下一下:

where_list  这个怎么样使用多判断。adn 方法不可用

用增加了一个list2 也是不可用。

回帖
  • 官方研发技术-小卡
    #1楼    官方研发技术-小卡
    2021-11-17 12:03:43
    Chrome 0
           'where_list' =>$table.'_comment.id='.$this->id.' and '.$table.'_comment.cid='.$this->cid.'',
    满意答案
  • 旅行者
    #2楼    旅行者
    2021-11-17 12:07:58
    Chrome 0
    @官方研发技术-小卡:谢谢您 。完美的解决了我的问题。