注意别漏了$this->db->get();

/**
* 匹配用户手机号,返回匹配的用户列表
* @param $column_str 'user_id, user_name, user_avatar_src, user_mobile, user_title, user_department, user_hospital, user_audit_status '
* @param $mobile_array
*/
public function match_user_mobile($column_str, $mobile_array)
{
$this->db->select($column_str);
$this->db->from('xm_user');
$this->db->where_in('user_mobile', $mobile_array);
$query = $this->db->get();

//var_dump($query); 测试
//row_array取一行数据;result_array取多行数据
return $query->result();

}

相关文章:

  • 2022-01-21
  • 2021-09-14
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
猜你喜欢
  • 2021-11-20
  • 2021-10-31
  • 2021-05-20
  • 2022-12-23
  • 2021-11-22
  • 2021-12-13
  • 2022-12-23
相关资源
相似解决方案