|
@@ -8,6 +8,8 @@ import org.fouram.core.base.service.RequestService;
|
|
import org.fouram.entity.SapCertificates;
|
|
import org.fouram.entity.SapCertificates;
|
|
import org.fouram.entity.SapCourses;
|
|
import org.fouram.entity.SapCourses;
|
|
import org.fouram.entity.SapEducation;
|
|
import org.fouram.entity.SapEducation;
|
|
|
|
+import org.fouram.entity.SapEmpEmployment;
|
|
|
|
+import org.fouram.entity.SapEmpJob;
|
|
import org.fouram.entity.SapEmpJobRelationships;
|
|
import org.fouram.entity.SapEmpJobRelationships;
|
|
import org.fouram.entity.SapInsideWorkExperience;
|
|
import org.fouram.entity.SapInsideWorkExperience;
|
|
import org.fouram.entity.SapLanguages;
|
|
import org.fouram.entity.SapLanguages;
|
|
@@ -77,9 +79,9 @@ public class SapReportService extends BaseService {
|
|
String personId = userNode.get("personIdExternal").asText().trim();// 员工号
|
|
String personId = userNode.get("personIdExternal").asText().trim();// 员工号
|
|
String dateOfBirth = userNode.get("dateOfBirth").asText().trim();// 出生日期
|
|
String dateOfBirth = userNode.get("dateOfBirth").asText().trim();// 出生日期
|
|
String placeOfBirth = userNode.get("placeOfBirth").asText().trim();// 籍贯
|
|
String placeOfBirth = userNode.get("placeOfBirth").asText().trim();// 籍贯
|
|
- String customString1Code = userNode.get("customString1Nav").get("externalCode").asText().trim();// 最高学历
|
|
|
|
|
|
+ String education = userNode.get("customString1Nav").get("externalCode").asText().trim();// 最高学历
|
|
SapPerPerson entity = SapPerPerson.builder().personId(personId).dateOfBirth(dateOfBirth)
|
|
SapPerPerson entity = SapPerPerson.builder().personId(personId).dateOfBirth(dateOfBirth)
|
|
- .placeOfBirth(placeOfBirth).customString1Code(customString1Code).build();
|
|
|
|
|
|
+ .placeOfBirth(placeOfBirth).education(education).build();
|
|
System.out.println(entity);
|
|
System.out.println(entity);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -122,15 +124,16 @@ public class SapReportService extends BaseService {
|
|
while (iterator.hasNext()) {
|
|
while (iterator.hasNext()) {
|
|
JsonNode userNode = iterator.next();
|
|
JsonNode userNode = iterator.next();
|
|
String personId = userNode.get("personIdExternal").asText().trim();
|
|
String personId = userNode.get("personIdExternal").asText().trim();
|
|
- String genericNumber1Code = userNode.get("genericNumber1Nav").get("externalCode").asText().trim();// 户口类型
|
|
|
|
- String genericNumber4Code = userNode.get("genericNumber4Nav").get("externalCode").asText().trim();// 民族
|
|
|
|
- String customString6Code = userNode.get("customString6Nav").get("externalCode").asText().trim();// 政治面貌
|
|
|
|
- String customString1 = userNode.get("customString1").asText().trim();// 组织关系所在地
|
|
|
|
- String customString2 = userNode.get("customString2").asText().trim();// 社保所在地
|
|
|
|
|
|
+ String householdRegistrationType = userNode.get("genericNumber1Nav").get("externalCode").asText()
|
|
|
|
+ .trim();// 户口类型
|
|
|
|
+ String nation = userNode.get("genericNumber4Nav").get("externalCode").asText().trim();// 民族
|
|
|
|
+ String politicalOutlook = userNode.get("customString6Nav").get("externalCode").asText().trim();// 政治面貌
|
|
|
|
+ String orgRelationshipLocation = userNode.get("customString1").asText().trim();// 组织关系所在地
|
|
|
|
+ String socialSecurityLocation = userNode.get("customString2").asText().trim();// 社保所在地
|
|
SapPerGlobalInfoCHN entity = SapPerGlobalInfoCHN.builder().personId(personId)
|
|
SapPerGlobalInfoCHN entity = SapPerGlobalInfoCHN.builder().personId(personId)
|
|
- .genericNumber1Code(genericNumber1Code).genericNumber4Code(genericNumber4Code)
|
|
|
|
- .customString6Code(customString6Code).customString1(customString1).customString2(customString2)
|
|
|
|
- .build();
|
|
|
|
|
|
+ .householdRegistrationType(householdRegistrationType).nation(nation)
|
|
|
|
+ .politicalOutlook(politicalOutlook).orgRelationshipLocation(orgRelationshipLocation)
|
|
|
|
+ .socialSecurityLocation(socialSecurityLocation).build();
|
|
System.out.println(entity);
|
|
System.out.println(entity);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -226,21 +229,26 @@ public class SapReportService extends BaseService {
|
|
while (iterator.hasNext()) {
|
|
while (iterator.hasNext()) {
|
|
JsonNode userNode = iterator.next();
|
|
JsonNode userNode = iterator.next();
|
|
String personId = userNode.get("personIdExternal").asText().trim();
|
|
String personId = userNode.get("personIdExternal").asText().trim();
|
|
- // 最近一次入职日期
|
|
|
|
- // 首次工作日期
|
|
|
|
- // 进入集团日期
|
|
|
|
- // 公司
|
|
|
|
- // 司龄计算日
|
|
|
|
- // 社会工龄
|
|
|
|
- // 司龄(最近入职)
|
|
|
|
- // 离职日期
|
|
|
|
- // 离职原因
|
|
|
|
- // 可以再雇佣
|
|
|
|
- // 工资单结束日期
|
|
|
|
- // 最后工作日期
|
|
|
|
- // 最后结薪日期
|
|
|
|
- // 福利结算日期
|
|
|
|
- // 离职详细原因
|
|
|
|
|
|
+ String startDate = userNode.get("startDate").asText().trim();// 最近一次入职日期
|
|
|
|
+ String firstDateWorked = userNode.get("firstDateWorked").asText().trim();// 首次工作日期
|
|
|
|
+ String originalStartDate = userNode.get("originalStartDate").asText().trim();// 进入集团日期
|
|
|
|
+ // TODO 司龄计算日
|
|
|
|
+ String socialServiceAge = userNode.get("customDouble1").asText().trim();// 社会工龄
|
|
|
|
+ String seniority = userNode.get("customDouble2").asText().trim();// 司龄(最近入职)
|
|
|
|
+ String endDate = userNode.get("endDate").asText().trim();// 离职日期
|
|
|
|
+ // TODO 离职原因
|
|
|
|
+ String okToRehire = userNode.get("okToRehire").asText().trim();// 可以再雇佣
|
|
|
|
+ // TODO 工资单结束日期
|
|
|
|
+ // TODO 最后工作日期
|
|
|
|
+ String salaryEndDate = userNode.get("salaryEndDate").asText().trim();// 最后结薪日期
|
|
|
|
+ String benefitsEndDate = userNode.get("benefitsEndDate").asText().trim();// 福利结算日期
|
|
|
|
+ String leavingReasonCode = userNode.get("customString16Nav").get("externalCode").asText().trim();// 离职详细原因
|
|
|
|
+ SapEmpEmployment entity = SapEmpEmployment.builder().personId(personId).startDate(startDate)
|
|
|
|
+ .firstDateWorked(firstDateWorked).originalStartDate(originalStartDate)
|
|
|
|
+ .socialServiceAge(socialServiceAge).seniority(seniority).endDate(endDate).okToRehire(okToRehire)
|
|
|
|
+ .salaryEndDate(salaryEndDate).benefitsEndDate(benefitsEndDate)
|
|
|
|
+ .leavingReasonCode(leavingReasonCode).build();
|
|
|
|
+ System.out.println(entity);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -263,14 +271,20 @@ public class SapReportService extends BaseService {
|
|
String businessUnitName = userNode.get("businessUnitNav").get("name").asText().trim();// 业务单元
|
|
String businessUnitName = userNode.get("businessUnitNav").get("name").asText().trim();// 业务单元
|
|
String divisionName = userNode.get("divisionNav").get("name").asText().trim();// 部门
|
|
String divisionName = userNode.get("divisionNav").get("name").asText().trim();// 部门
|
|
String departmentName = userNode.get("departmentNav").get("name").asText().trim();// 团队
|
|
String departmentName = userNode.get("departmentNav").get("name").asText().trim();// 团队
|
|
- String customString19Name = userNode.get("customString19Nav").get("externalName_zh_CN").asText().trim();// 小组
|
|
|
|
|
|
+ String teamName = userNode.get("customString19Nav").get("externalName_zh_CN").asText().trim();// 小组
|
|
String locationName = userNode.get("locationNav").get("name").asText().trim();// 工作地点
|
|
String locationName = userNode.get("locationNav").get("name").asText().trim();// 工作地点
|
|
- String managerId = userNode.get("managerId").asText().trim();// TODO直线经理
|
|
|
|
|
|
+ String managerId = userNode.get("managerId").asText().trim();// 直线经理
|
|
String jobCodeName = userNode.get("jobCodeNav").get("name").asText().trim();// 职务分类
|
|
String jobCodeName = userNode.get("jobCodeNav").get("name").asText().trim();// 职务分类
|
|
String jobTitle = userNode.get("jobTitle").asText().trim();// 标准职务名称
|
|
String jobTitle = userNode.get("jobTitle").asText().trim();// 标准职务名称
|
|
// TODO 员工性质
|
|
// TODO 员工性质
|
|
- String customString2Code = userNode.get("customString2Nav").get("externalCode").asText().trim();// 职级
|
|
|
|
- String customString4Code = userNode.get("customString4Nav").get("externalCode").asText().trim();// 是否管理层
|
|
|
|
|
|
+ String rank = userNode.get("customString2Nav").get("externalCode").asText().trim();// 职级
|
|
|
|
+ String managementOrNot = userNode.get("customString4Nav").get("externalCode").asText().trim();// 是否管理层
|
|
|
|
+ SapEmpJob entity = SapEmpJob.builder().userId(userId).positionName(positionName)
|
|
|
|
+ .positionEntryDate(positionEntryDate).companyName(companyName)
|
|
|
|
+ .businessUnitName(businessUnitName).divisionName(divisionName).departmentName(departmentName)
|
|
|
|
+ .teamName(teamName).locationName(locationName).managerId(managerId).jobCodeName(jobCodeName)
|
|
|
|
+ .jobTitle(jobTitle).rank(rank).managementOrNot(managementOrNot).build();
|
|
|
|
+ System.out.println(entity);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -309,14 +323,16 @@ public class SapReportService extends BaseService {
|
|
String endDate = userNode.get("endDate").asText().trim();// 结束日期
|
|
String endDate = userNode.get("endDate").asText().trim();// 结束日期
|
|
String employer = userNode.get("employer").asText().trim();// 曾工作公司名称
|
|
String employer = userNode.get("employer").asText().trim();// 曾工作公司名称
|
|
String businessType = userNode.get("businessType").asText().trim();// 公司所在地
|
|
String businessType = userNode.get("businessType").asText().trim();// 公司所在地
|
|
- String startTitle = userNode.get("startTitle").asText().trim();// 所在部门
|
|
|
|
- String custom1 = userNode.get("custom1").asText().trim();// 职位
|
|
|
|
- String custom2 = userNode.get("custom2").asText().trim();// 离职原因
|
|
|
|
- String custom3 = userNode.get("custom3").asText().trim();// 直接上司姓名
|
|
|
|
- String custom4 = userNode.get("custom4").asText().trim();// 联系方式
|
|
|
|
|
|
+ String department = userNode.get("startTitle").asText().trim();// 所在部门
|
|
|
|
+ String position = userNode.get("custom1").asText().trim();// 职位
|
|
|
|
+ String leavingReason = userNode.get("custom2").asText().trim();// 离职原因
|
|
|
|
+ String immediateSupervisorName = userNode.get("custom3").asText().trim();// 直接上司姓名
|
|
|
|
+ String contactInformation = userNode.get("custom4").asText().trim();// 联系方式
|
|
SapOutsideWorkExperience entity = SapOutsideWorkExperience.builder().userId(userId).startDate(startDate)
|
|
SapOutsideWorkExperience entity = SapOutsideWorkExperience.builder().userId(userId).startDate(startDate)
|
|
- .endDate(endDate).employer(employer).businessType(businessType).startTitle(startTitle)
|
|
|
|
- .custom1(custom1).custom2(custom2).custom3(custom3).custom4(custom4).build();
|
|
|
|
|
|
+ .endDate(endDate).employer(employer).businessType(businessType).department(department)
|
|
|
|
+ .position(position).leavingReason(leavingReason)
|
|
|
|
+ .immediateSupervisorName(immediateSupervisorName).contactInformation(contactInformation)
|
|
|
|
+ .build();
|
|
System.out.println(entity);
|
|
System.out.println(entity);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -357,15 +373,15 @@ public class SapReportService extends BaseService {
|
|
String institution = userNode.get("institution").asText().trim();// 开始日期
|
|
String institution = userNode.get("institution").asText().trim();// 开始日期
|
|
String instructionType = userNode.get("instructionType").asText().trim();// 结束日期
|
|
String instructionType = userNode.get("instructionType").asText().trim();// 结束日期
|
|
String lengthCode = userNode.get("lengthNav").get("externalCode").asText().trim();// 培训类型
|
|
String lengthCode = userNode.get("lengthNav").get("externalCode").asText().trim();// 培训类型
|
|
- String custom9 = userNode.get("custom9").asText().trim();// 培训地点
|
|
|
|
- String custom1 = userNode.get("custom1").asText().trim();// 历时
|
|
|
|
- String custom2 = userNode.get("custom2").asText().trim();// 培训结果
|
|
|
|
- String custom3Code = userNode.get("custom3Nav").get("externalCode").asText().trim();// 是否有证书
|
|
|
|
- String custom4 = userNode.get("custom4").asText().trim();// 培训服务期到期时间
|
|
|
|
- String custom7 = userNode.get("custom7").asText().trim();// 备注
|
|
|
|
|
|
+ String place = userNode.get("custom9").asText().trim();// 培训地点
|
|
|
|
+ String duration = userNode.get("custom1").asText().trim();// 历时
|
|
|
|
+ String result = userNode.get("custom2").asText().trim();// 培训结果
|
|
|
|
+ String certificateOrNot = userNode.get("custom3Nav").get("externalCode").asText().trim();// 是否有证书
|
|
|
|
+ String dueTime = userNode.get("custom4").asText().trim();// 培训服务期到期时间
|
|
|
|
+ String remark = userNode.get("custom7").asText().trim();// 备注
|
|
SapCourses entity = SapCourses.builder().userId(userId).course(course).institution(institution)
|
|
SapCourses entity = SapCourses.builder().userId(userId).course(course).institution(institution)
|
|
- .instructionType(instructionType).lengthCode(lengthCode).custom9(custom9).custom1(custom1)
|
|
|
|
- .custom2(custom2).custom3Code(custom3Code).custom4(custom4).custom7(custom7).build();
|
|
|
|
|
|
+ .instructionType(instructionType).lengthCode(lengthCode).place(place).duration(duration)
|
|
|
|
+ .result(result).certificateOrNot(certificateOrNot).dueTime(dueTime).remark(remark).build();
|
|
System.out.println(entity);
|
|
System.out.println(entity);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -386,9 +402,9 @@ public class SapReportService extends BaseService {
|
|
String school = userNode.get("school").asText().trim();// 院校
|
|
String school = userNode.get("school").asText().trim();// 院校
|
|
String major = userNode.get("major").asText().trim();// 专业
|
|
String major = userNode.get("major").asText().trim();// 专业
|
|
String degree = userNode.get("degree").asText().trim();// 学历
|
|
String degree = userNode.get("degree").asText().trim();// 学历
|
|
- String custom1 = userNode.get("custom1").asText().trim();// 学位
|
|
|
|
|
|
+ String qualification = userNode.get("custom1").asText().trim();// 学位
|
|
SapEducation entity = SapEducation.builder().userId(userId).startDate(startDate).endDate(endDate)
|
|
SapEducation entity = SapEducation.builder().userId(userId).startDate(startDate).endDate(endDate)
|
|
- .school(school).major(major).degree(degree).custom1(custom1).build();
|
|
|
|
|
|
+ .school(school).major(major).degree(degree).qualification(qualification).build();
|
|
System.out.println(entity);
|
|
System.out.println(entity);
|
|
}
|
|
}
|
|
}
|
|
}
|