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;
}
}