$where = "('1=1')";
$where .= 'and FIND_IN_SET(' . intval($request->get('city')) . ',city)';
$uids = CompanyArea::whereRaw($where)->get();
return $uids;
处理特殊情况用,一般情况下性能较差,不建议使用

相关文章:

  • 2018-07-03
  • 2021-11-18
  • 2021-11-22
  • 2021-11-16
  • 2021-12-12
  • 2021-10-19
  • 2021-11-26
  • 2021-09-29
猜你喜欢
  • 2021-10-06
  • 2021-11-22
  • 2021-11-17
  • 2018-11-12
  • 2021-10-31
  • 2021-06-10
  • 2020-12-20
  • 2021-09-07
相关资源
相似解决方案