//查询符合条件的用户ID数组 $ids = UserModel::where('group_id',$id)->column("id"); //根据数组批量修改数据 UserWay::where("userid","in",$ids)->setField('ratio',95);
//查询符合条件的用户ID数组 $ids = UserModel::where('group_id',$id)->column("id"); //根据数组批量修改数据 UserWay::where("userid","in",$ids)->setField('ratio',95);
请登录之后再进行评论