CCN.Modules.CustRelations.DataAccess.CustRelationsDA.GetApplyNumber C# (CSharp) Method

GetApplyNumber() public method

获取当天已经申请添加好友人数
public GetApplyNumber ( string fromid ) : int
fromid string
return int
        public int GetApplyNumber(string fromid)
        {
            const string sql = "select count(1) as count from cust_relations_apply where fromid=@fromid and date(createdtime)=curdate();";
            try
            {
                return Helper.ExecuteScalar<int>(sql, new { fromid });
            }
            catch (Exception ex)
            {
                return 0;
            }
        }