标签:style blog color 使用 io ar cti div
select * from `wxm_ticket` where `wxm_ticket`.`deleted_at` is null and `user_id` = ? and `sell_status` = ? and (`stop_sell` is null or `stop_sell` >= ?)
$query = TicketModel::user($admin_id)->sellStatus(1)->where(function($query){ $query->orWhereNull(‘stop_sell‘)->orWhere(‘stop_sell‘, ‘>=‘, \Carbon\Carbon::now()); });;
使用laravel 生成 带括号的sql,布布扣,bubuko.com
标签:style blog color 使用 io ar cti div
原文地址:http://www.cnblogs.com/langhao2010/p/3910495.html