CCN.Modules.Customer.DataAccess.CustomerDA.GetCustAuthByCustid C# (CSharp) Method

GetCustAuthByCustid() public method

获取会员认证信息 by custid
public GetCustAuthByCustid ( string custid ) : CustAuthenticationModel
custid string 会员id
return CCN.Modules.Customer.BusinessEntity.CustAuthenticationModel
        public CustAuthenticationModel GetCustAuthByCustid(string custid)
        {
            const string sql = "select * from cust_authentication where custid=@custid;";

            try
            {
                var custModel = Helper.Query<CustAuthenticationModel>(sql, new { custid }).FirstOrDefault();
                return custModel;

            }
            catch (Exception ex)
            {
                return null;
            }
        }