因为我使用了TP5框架,所以直接上语句吧
Db::table('fa_parkbean') ->where('deletetime', 'null') ->where('status', '=', '1') ->where("FIND_IN_SET($user_id,shoufei_user_ids) ") ->field('id,park_name') ->select();
因为我使用了TP5框架,所以直接上语句吧
Db::table('fa_parkbean') ->where('deletetime', 'null') ->where('status', '=', '1') ->where("FIND_IN_SET($user_id,shoufei_user_ids) ") ->field('id,park_name') ->select();