$list = $this->model->whereIn('id',$ids)->select();
foreach ($list as $index => $item) {
$pid = $this->model->where('id',$item->pid)->value('pid');
if($pid != $agent_id){
$item->pid = $agent_id;
$item->save();
}
}
tp批量提交修改数据
$list = $this->model->whereIn(‘id’,$ids)->sele…
本文来自网络,不代表MuKe网站资源立场,转载请注明出处:https://www.somke.cn/archives/44