where(['userId'=>$userId])->field('cartId')->select(); $count = count($cartNum); return $count; }