/// <summary> /// 更新部门 /// </summary> /// <param name="name"></param> /// <param name="parentid"></param> /// <param name="order"></param> /// <param name="id"></param> /// <returns></returns> public BaseRes Department_Update(string name, int?parentid, int order, int id) { var rel = QyAPI.Department_Update(access_token, name, parentid, order, id); if (IsAccessTokenError(rel)) { rel = QyAPI.Department_Update(access_token, name, parentid, order, id); IsAccessTokenError(rel, false); } return(rel); }