thinkphp5通过上传字段和关系自动生成sql
用法:$aliaField=array("pic_url","product_id"); list ( $where, $sort, $order, $offset, $limit ) = $this->mybuildparams (null,null,$aliaField,"tableName"); $total = $this->model->where ( $where )->order ( $sort, $order )->count (); $list = $this->model->alias('a')->join('tableName b','a.product_id=b.pro
下载地址
用户评论