PersonEntity.java 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  1. package com.kingdee.eas.custom.synctask.entity;
  2. import com.kingdee.util.StringUtils;
  3. import java.util.HashMap;
  4. import java.util.Map;
  5. /**
  6. * @author qingwu
  7. * @date 2024/10/24
  8. * @apiNote
  9. */
  10. public class PersonEntity {
  11. // 编号
  12. private String workcode;
  13. // 分部:2 种方式:1)分部全路径(副作用:未找到,会新增),2) 以 {"subcompanycode":"fw"} 为值的字符串,指定分部编码(不会新增)
  14. private Map subcompany;
  15. // 部门:2 种方式:1)部门全路径(副作用:未找到,会新增),2)以 {"departmentcode":"fw"} 为值的字符串,指定部门编码(不会新增)
  16. private Map department;
  17. // 人员名称
  18. private String lastname;
  19. // 登录名称
  20. private String loginid;
  21. // 明文密码,会转密文
  22. private String password;
  23. // 安全级别
  24. private Integer seclevel;
  25. // 枚举值:默认男、女,此处为性别
  26. private String sex;
  27. // 岗位名称:2 种方式:1)名称(会新建),2)以 {"jobtitlecode":"fw"} 为值的字符串,指定岗位编码(不会新增)
  28. private Map jobtitle;
  29. // 职务,岗位使用 JSON 格式不需要传递
  30. private String jobactivityid;
  31. // 职务类型,岗位使用 JSON 格式不需要传递
  32. private String jobgroupid;
  33. // 职称,数据关联表:HrmJobCall
  34. private String jobcall;
  35. // 职级,仅支持整数字
  36. private Integer joblevel;
  37. // 职责描述
  38. private String jobactivitydesc;
  39. // 直接上级,仅支持编号
  40. private String managerid;
  41. // 助理,仅支持编号
  42. private String assistantid;
  43. // 状态,包括试用、正式、临时、试用延期、解聘、离职、退休、无效
  44. private String status;
  45. // 办公地点
  46. private String locationid;
  47. // 办公室
  48. private String workroom;
  49. // 办公室电话
  50. private String telephone;
  51. // 移动电话
  52. private String mobile;
  53. // 其他电话
  54. private String mobilecall;
  55. // 传真
  56. private String fax;
  57. // 邮箱
  58. private String email;
  59. // 系统语言,包括简体中文、繁體中文、English
  60. private String systemlanguage;
  61. // 生日,格式:yyyy-MM-dd
  62. private String birthday;
  63. // 民族
  64. private String folk;
  65. // 籍贯
  66. private String nativeplace;
  67. // 户口
  68. private String regresidentplace;
  69. // 身份证号码,如果有值,必须唯一
  70. private String certificatenum;
  71. // 婚姻状况,包括已婚、离异、未婚
  72. private String maritalstatus;
  73. // 政治面貌
  74. private String policy;
  75. // 入团日期,格式:yyyy-MM-dd
  76. private String bememberdate;
  77. // 入党日期,格式:yyyy-MM-dd
  78. private String bepartydate;
  79. // 工会会员
  80. private String islabouunion;
  81. // 学历,数据关联表:HrmEducationLevel
  82. private String educationlevel;
  83. // 学位
  84. private String degree;
  85. // 健康状况,包括良好、一般、较差、优秀
  86. private String healthinfo;
  87. // 身高(cm),仅支持整数字
  88. private Integer height;
  89. // 体重(kg),仅支持整数字
  90. private Integer weight;
  91. // 现居住地
  92. private String residentplace;
  93. // 家庭联系方式
  94. private String homeaddress;
  95. // 暂住证号码
  96. private String tempresidentnumber;
  97. // 主账号:accounttype 为次账号才有效,仅支持编号
  98. private String belongto;
  99. // 排序,数字
  100. private String dsporder;
  101. // 公积金账号
  102. private String accumfundaccount;
  103. // 主次账号标志,包括主账号、次账号
  104. private String accounttype;
  105. // 工资账号户名
  106. private String accountname;
  107. // 工资银行
  108. private String bankid1;
  109. // 工资账号
  110. private String accountid1;
  111. // 入职日期
  112. private String companystartdate;
  113. // 参加工作日期
  114. private String workstartdate;
  115. // 基本信息自定义数据,字段确认请看【组织权限中心】-【自定义设置】-【人员卡片字段定义】-【基本信息】数据库字段名
  116. private Map baseCustomData;
  117. // 个人信息自定义数据,字段确认请看【组织权限中心】-【自定义设置】-【人员卡片字段定义】-【个人信息】数据库字段名
  118. private Map personCustomData;
  119. // 工作信息自定义数据,字段确认请看【组织权限中心】-【自定义设置】-【人员卡片字段定义】-【工作信息】数据库字段名
  120. private Map workCustomData;
  121. public String getWorkcode() {
  122. return workcode;
  123. }
  124. public void setWorkcode(String workcode) {
  125. this.workcode = workcode;
  126. }
  127. public String getSubcompany() {
  128. return (String) subcompany.get("subcompanycode");
  129. }
  130. public void setSubcompany(String subcompany) {
  131. if (this.subcompany == null) {
  132. this.subcompany = new HashMap();
  133. }
  134. this.subcompany.put("subcompanycode", subcompany);
  135. }
  136. public String getDepartment() {
  137. return (String) department.get("departmentcode");
  138. }
  139. public void setDepartment(String department) {
  140. if (this.department == null) {
  141. this.department = new HashMap();
  142. }
  143. this.department.put("departmentcode", department);
  144. }
  145. public String getLastname() {
  146. return lastname;
  147. }
  148. public void setLastname(String lastname) {
  149. this.lastname = lastname;
  150. }
  151. public String getLoginid() {
  152. return loginid;
  153. }
  154. public void setLoginid(String loginid) {
  155. this.loginid = loginid;
  156. }
  157. public String getPassword() {
  158. return password;
  159. }
  160. public void setPassword(String password) {
  161. this.password = password;
  162. }
  163. public int getSeclevel() {
  164. return seclevel;
  165. }
  166. public void setSeclevel(Integer seclevel) {
  167. this.seclevel = seclevel;
  168. }
  169. public String getSex() {
  170. return sex;
  171. }
  172. public void setSex(String sex) {
  173. this.sex = sex;
  174. }
  175. public String getJobtitle() {
  176. return (String) jobtitle.get("jobtitlecode");
  177. }
  178. public void setJobtitle(String jobtitle) {
  179. if (this.jobtitle == null) {
  180. this.jobtitle = new HashMap();
  181. }
  182. this.jobtitle.put("jobtitlecode", jobtitle);
  183. }
  184. public String getJobactivityid() {
  185. return jobactivityid;
  186. }
  187. public void setJobactivityid(String jobactivityid) {
  188. this.jobactivityid = jobactivityid;
  189. }
  190. public String getJobgroupid() {
  191. return jobgroupid;
  192. }
  193. public void setJobgroupid(String jobgroupid) {
  194. this.jobgroupid = jobgroupid;
  195. }
  196. public String getJobcall() {
  197. return jobcall;
  198. }
  199. public void setJobcall(String jobcall) {
  200. this.jobcall = jobcall;
  201. }
  202. public Integer getJoblevel() {
  203. return joblevel;
  204. }
  205. public void setJoblevel(Integer joblevel) {
  206. this.joblevel = joblevel;
  207. }
  208. public String getJobactivitydesc() {
  209. return jobactivitydesc;
  210. }
  211. public void setJobactivitydesc(String jobactivitydesc) {
  212. this.jobactivitydesc = jobactivitydesc;
  213. }
  214. public String getManagerid() {
  215. return managerid;
  216. }
  217. public void setManagerid(String managerid) {
  218. this.managerid = managerid;
  219. }
  220. public String getAssistantid() {
  221. return assistantid;
  222. }
  223. public void setAssistantid(String assistantid) {
  224. this.assistantid = assistantid;
  225. }
  226. public String getStatus() {
  227. return status;
  228. }
  229. public void setStatus(String status) {
  230. this.status = status;
  231. }
  232. public String getLocationid() {
  233. return locationid;
  234. }
  235. public void setLocationid(String locationid) {
  236. this.locationid = locationid;
  237. }
  238. public String getWorkroom() {
  239. return workroom;
  240. }
  241. public void setWorkroom(String workroom) {
  242. this.workroom = workroom;
  243. }
  244. public String getTelephone() {
  245. return telephone;
  246. }
  247. public void setTelephone(String telephone) {
  248. this.telephone = telephone;
  249. }
  250. public String getMobile() {
  251. return mobile;
  252. }
  253. public void setMobile(String mobile) {
  254. this.mobile = mobile;
  255. }
  256. public String getMobilecall() {
  257. return mobilecall;
  258. }
  259. public void setMobilecall(String mobilecall) {
  260. this.mobilecall = mobilecall;
  261. }
  262. public String getFax() {
  263. return fax;
  264. }
  265. public void setFax(String fax) {
  266. this.fax = fax;
  267. }
  268. public String getEmail() {
  269. return email;
  270. }
  271. public void setEmail(String email) {
  272. this.email = email;
  273. }
  274. public String getSystemlanguage() {
  275. return systemlanguage;
  276. }
  277. public void setSystemlanguage(String systemlanguage) {
  278. this.systemlanguage = systemlanguage;
  279. }
  280. public String getBirthday() {
  281. return birthday;
  282. }
  283. public void setBirthday(String birthday) {
  284. this.birthday = birthday;
  285. }
  286. public String getFolk() {
  287. return folk;
  288. }
  289. public void setFolk(String folk) {
  290. this.folk = folk;
  291. }
  292. public String getNativeplace() {
  293. return nativeplace;
  294. }
  295. public void setNativeplace(String nativeplace) {
  296. this.nativeplace = nativeplace;
  297. }
  298. public String getRegresidentplace() {
  299. return regresidentplace;
  300. }
  301. public void setRegresidentplace(String regresidentplace) {
  302. this.regresidentplace = regresidentplace;
  303. }
  304. public String getCertificatenum() {
  305. return certificatenum;
  306. }
  307. public void setCertificatenum(String certificatenum) {
  308. this.certificatenum = certificatenum;
  309. }
  310. public String getMaritalstatus() {
  311. return maritalstatus;
  312. }
  313. public void setMaritalstatus(String maritalstatus) {
  314. this.maritalstatus = maritalstatus;
  315. }
  316. public String getPolicy() {
  317. return policy;
  318. }
  319. public void setPolicy(String policy) {
  320. this.policy = policy;
  321. }
  322. public String getBememberdate() {
  323. return bememberdate;
  324. }
  325. public void setBememberdate(String bememberdate) {
  326. this.bememberdate = bememberdate;
  327. }
  328. public String getBepartydate() {
  329. return bepartydate;
  330. }
  331. public void setBepartydate(String bepartydate) {
  332. this.bepartydate = bepartydate;
  333. }
  334. public String getIslabouunion() {
  335. return islabouunion;
  336. }
  337. public void setIslabouunion(String islabouunion) {
  338. this.islabouunion = islabouunion;
  339. }
  340. public String getEducationlevel() {
  341. return educationlevel;
  342. }
  343. public void setEducationlevel(String educationlevel) {
  344. this.educationlevel = educationlevel;
  345. }
  346. public String getDegree() {
  347. return degree;
  348. }
  349. public void setDegree(String degree) {
  350. this.degree = degree;
  351. }
  352. public String getHealthinfo() {
  353. return healthinfo;
  354. }
  355. public void setHealthinfo(String healthinfo) {
  356. this.healthinfo = healthinfo;
  357. }
  358. public Integer getHeight() {
  359. return height;
  360. }
  361. public void setHeight(Integer height) {
  362. this.height = height;
  363. }
  364. public Integer getWeight() {
  365. return weight;
  366. }
  367. public void setWeight(Integer weight) {
  368. this.weight = weight;
  369. }
  370. public String getResidentplace() {
  371. return residentplace;
  372. }
  373. public void setResidentplace(String residentplace) {
  374. this.residentplace = residentplace;
  375. }
  376. public String getHomeaddress() {
  377. return homeaddress;
  378. }
  379. public void setHomeaddress(String homeaddress) {
  380. this.homeaddress = homeaddress;
  381. }
  382. public String getTempresidentnumber() {
  383. return tempresidentnumber;
  384. }
  385. public void setTempresidentnumber(String tempresidentnumber) {
  386. this.tempresidentnumber = tempresidentnumber;
  387. }
  388. public String getBelongto() {
  389. return belongto;
  390. }
  391. public void setBelongto(String belongto) {
  392. this.belongto = belongto;
  393. }
  394. public String getDsporder() {
  395. return dsporder;
  396. }
  397. public void setDsporder(String dsporder) {
  398. this.dsporder = dsporder;
  399. }
  400. public String getAccumfundaccount() {
  401. return accumfundaccount;
  402. }
  403. public void setAccumfundaccount(String accumfundaccount) {
  404. this.accumfundaccount = accumfundaccount;
  405. }
  406. public String getAccounttype() {
  407. return accounttype;
  408. }
  409. public void setAccounttype(String accounttype) {
  410. this.accounttype = accounttype;
  411. }
  412. public String getAccountname() {
  413. return accountname;
  414. }
  415. public void setAccountname(String accountname) {
  416. this.accountname = accountname;
  417. }
  418. public String getBankid1() {
  419. return bankid1;
  420. }
  421. public void setBankid1(String bankid1) {
  422. this.bankid1 = bankid1;
  423. }
  424. public String getAccountid1() {
  425. return accountid1;
  426. }
  427. public void setAccountid1(String accountid1) {
  428. this.accountid1 = accountid1;
  429. }
  430. public String getCompanystartdate() {
  431. return companystartdate;
  432. }
  433. public void setCompanystartdate(String companystartdate) {
  434. this.companystartdate = companystartdate;
  435. }
  436. public String getWorkstartdate() {
  437. return workstartdate;
  438. }
  439. public void setWorkstartdate(String workstartdate) {
  440. this.workstartdate = workstartdate;
  441. }
  442. public Map getBaseCustomData() {
  443. return baseCustomData;
  444. }
  445. public void setBaseCustomData(Map baseCustomData) {
  446. this.baseCustomData = baseCustomData;
  447. }
  448. public Map getPersonCustomData() {
  449. return personCustomData;
  450. }
  451. public void setPersonCustomData(Map personCustomData) {
  452. this.personCustomData = personCustomData;
  453. }
  454. public Map getWorkCustomData() {
  455. return workCustomData;
  456. }
  457. public void setWorkCustomData(Map workCustomData) {
  458. this.workCustomData = workCustomData;
  459. }
  460. @Override
  461. public String toString() {
  462. return "Person{" +
  463. "workcode='" + workcode + '\'' +
  464. ", subcompany='" + subcompany + '\'' +
  465. ", department='" + department + '\'' +
  466. ", lastname='" + lastname + '\'' +
  467. ", loginid='" + loginid + '\'' +
  468. ", password='" + password + '\'' +
  469. ", seclevel=" + seclevel +
  470. ", sex='" + sex + '\'' +
  471. ", jobtitle='" + jobtitle + '\'' +
  472. ", jobactivityid='" + jobactivityid + '\'' +
  473. ", jobgroupid='" + jobgroupid + '\'' +
  474. ", jobcall='" + jobcall + '\'' +
  475. ", joblevel='" + joblevel + '\'' +
  476. ", jobactivitydesc='" + jobactivitydesc + '\'' +
  477. ", managerid='" + managerid + '\'' +
  478. ", assistantid='" + assistantid + '\'' +
  479. ", status='" + status + '\'' +
  480. ", locationid='" + locationid + '\'' +
  481. ", workroom='" + workroom + '\'' +
  482. ", telephone='" + telephone + '\'' +
  483. ", mobile='" + mobile + '\'' +
  484. ", mobilecall='" + mobilecall + '\'' +
  485. ", fax='" + fax + '\'' +
  486. ", email='" + email + '\'' +
  487. ", systemlanguage='" + systemlanguage + '\'' +
  488. ", birthday='" + birthday + '\'' +
  489. ", folk='" + folk + '\'' +
  490. ", nativeplace='" + nativeplace + '\'' +
  491. ", regresidentplace='" + regresidentplace + '\'' +
  492. ", certificatenum='" + certificatenum + '\'' +
  493. ", maritalstatus='" + maritalstatus + '\'' +
  494. ", policy='" + policy + '\'' +
  495. ", bememberdate='" + bememberdate + '\'' +
  496. ", bepartydate='" + bepartydate + '\'' +
  497. ", islabouunion='" + islabouunion + '\'' +
  498. ", educationlevel='" + educationlevel + '\'' +
  499. ", degree='" + degree + '\'' +
  500. ", healthinfo='" + healthinfo + '\'' +
  501. ", height=" + height +
  502. ", weight=" + weight +
  503. ", residentplace='" + residentplace + '\'' +
  504. ", homeaddress='" + homeaddress + '\'' +
  505. ", tempresidentnumber='" + tempresidentnumber + '\'' +
  506. ", belongto='" + belongto + '\'' +
  507. ", dsporder='" + dsporder + '\'' +
  508. ", accumfundaccount='" + accumfundaccount + '\'' +
  509. ", accounttype='" + accounttype + '\'' +
  510. ", accountname='" + accountname + '\'' +
  511. ", bankid1='" + bankid1 + '\'' +
  512. ", accountid1='" + accountid1 + '\'' +
  513. ", companystartdate='" + companystartdate + '\'' +
  514. ", workstartdate='" + workstartdate + '\'' +
  515. ", baseCustomData=" + baseCustomData +
  516. ", personCustomData=" + personCustomData +
  517. ", workCustomData=" + workCustomData +
  518. '}';
  519. }
  520. }