$where['token']=$this->token;
$where['shortname']=$_GET['shortname'];
$where['isBranch']=$isBranch_v;
$where['id']=$_GET['id'];
$thisCompany=$this->company_model->where($where)->find();
print_r($this->company_model->getLastsql());
输出的是
SELECT * FROM `tp_company` WHERE ( `token` = 'wmgyie1417030908' ) AND ( `shortname` = 'medical' ) AND ( `id` = null ) LIMIT 1
最佳答案