strSql.Append(" AND ( t.ApplyTime >= @startTime AND t.ApplyTime <= @endTime ) ");
}
var userLogin = LoginUserInfo.Get();
//校长
var PrincipalRole = Config.GetValue("PrincipalRoleId");
//按角色查询是否有查看的权限
var FundsApplyRole = Config.GetValue("FundsApplyRoleId");
var loginInfoRoleIds = LoginUserInfo.Get().roleIds;
if (!userLogin.Description.Contains("管理员") && !loginInfoRoleIds.Split(',').Contains(PrincipalRole))
if (!userLogin.Description.Contains("管理员") && !loginInfoRoleIds.Split(',').Contains(PrincipalRole)&& !loginInfoRoleIds.Split(',').Contains(FundsApplyRole))
{
strSql.Append(" AND t.ApplyUser = '" + userLogin.userId + "' ");