$map = [ 'status' => 1, 'is_show' => 1, ]; $result = Db::name('coupon') ->where($map) ->where('total_number','exp',Db::raw('>`send_number`')) ->whereTime('end_time','>=',time()) ->limit('2') ->select();
09-01
323
$map = [ 'status' => 1, 'is_show' => 1, ]; $result = Db::name('coupon') ->where($map) ->where('total_number','exp',Db::raw('>`send_number`')) ->whereTime('end_time','>=',time()) ->limit('2') ->select();