ThinkPHP 5.0 组合多条件whereOr查询
$where = [
'name'=> 'aaa'
];
$whereOr = [
'phone' => 12345678999,
'email' => '11@qq.com',
];
$this->
->name('user')
->field('id,name,phone,email')
->where($where)
->whereOr(function($query) use ($whereOr){
$query-&
原创
2020-07-31 15:03:42 ·
1169 阅读 ·
0 评论