/// <summary> /// 创建部门 /// </summary> /// <param name="name"></param> /// <param name="parentid"></param> /// <param name="order"></param> /// <param name="id"></param> /// <returns></returns> public DeptCreateRep Department_Create(string name, int parentid, int order, int id) { var rel = QyAPI.Department_Create(access_token, name, parentid, order, id); if (IsAccessTokenError(rel)) { rel = QyAPI.Department_Create(access_token, name, parentid, order, id); IsAccessTokenError(rel, false); } return(rel); }