当前位置: 代码迷 >> 综合 >> TP5.1 $WHERE和$MAP最佳写法
  详细解决方案

TP5.1 $WHERE和$MAP最佳写法

热度:59   发布时间:2023-10-17 21:24:06.0
$where = [];
$where = array_merge($where, [['id', '=', $id]]);
$where = array_merge($where, [['goodsId', 'in', $goodsIds ]]);Db::table('product')->where($where)->select();

 

  相关解决方案