标签:style blog color io 使用 ar sp div on
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()); });;
此处只是抛砖引玉 小举一例 根据不同的情况大家各自实现 如有问题 可以留言!
标签:style blog color io 使用 ar sp div on
原文地址:http://www.cnblogs.com/langhao2010/p/3910495.html