/// <summary>
        /// 导入部门
        /// </summary>
        /// <param name="storeId"></param>
        public void ImportDepartment(int storeId)
        {
            var permanentCode = WorkWeChats.GetAccessToken(storeId);
            var list          = WorkWeiXinSDK.GetDepartmentList(permanentCode.access_token, string.Empty);

            var oldList = DepartmentManager.GetList(storeId);

            //导入微信通讯录的部门
            foreach (var item in list.department)
            {
                //部门不存在,创建部门
                var old = oldList.Find(x => x.Name.ToLower().Equals(item.name.ToLower()));
                if (old == null)
                {
                    var newModel = new Department()
                    {
                        StoreId = storeId, Name = item.name, Parentid = item.parentid, Sort = item.order, wxDepartmentId = item.id, AddTime = DateTime.Now
                    };
                    DepartmentManager.Add(newModel);
                    //Response.Write($"{item.name} 导入成功 (新增)<br/>");
                }
                else
                {
                    old.Name           = item.name;
                    old.Parentid       = item.parentid;
                    old.Sort           = item.order;
                    old.wxDepartmentId = item.id;
                    DepartmentManager.Update(old);
                    //Response.Write($"{item.name} 导入成功 (更新)<br/>");
                }
            }
        }
        /// <summary>
        /// 部门列表
        /// </summary>
        /// <param name="storeId"></param>
        public void DepartmentList(int storeId)
        {
            var permanentCode = WorkWeChats.GetAccessToken(storeId);
            var list          = WorkWeiXinSDK.GetDepartmentList(permanentCode.access_token, string.Empty);

            foreach (var item in list.department)
            {
                Response.Write(item.name + "<br/>");
            }
        }