public void TestGetDepartmentAreaAvgRankViewModelByUser()
        {
            DateTime today = DateTime.Now;
            DepartmentAreaAvgRankService   service   = new DepartmentAreaAvgRankService();
            DepartmentAreaAvgRankViewModel ViewModel = service.GetViewModelByUserName("admin");

            Console.WriteLine(UtilTest.GetJson(ViewModel));
        }
 /// <summary>
 /// 部门 月份 单位面积能耗
 /// 初始加载:获取用户名查询建筑列表,第一栋建筑对应的分类,第一个分类对应的所有部门
 /// </summary>
 /// <param name="userName">用户名</param>
 /// <returns>包含建筑列表,能源按钮列表,部门单位面积能耗</returns>
 public object Get()
 {
     try
     {
         string userName = User.Identity.Name;
         return(service.GetViewModelByUserName(userName));
     }
     catch (Exception e)
     {
         return(e.Message);
     }
 }