diff --git a/jcl-hrmorganization/secondev-jcl-hrmorganization/src/main/java/com/weaver/seconddev/jcl/organization/service/impl/EmployeeInformationServiceImpl.java b/jcl-hrmorganization/secondev-jcl-hrmorganization/src/main/java/com/weaver/seconddev/jcl/organization/service/impl/EmployeeInformationServiceImpl.java index a49f1aa..08ce0d0 100644 --- a/jcl-hrmorganization/secondev-jcl-hrmorganization/src/main/java/com/weaver/seconddev/jcl/organization/service/impl/EmployeeInformationServiceImpl.java +++ b/jcl-hrmorganization/secondev-jcl-hrmorganization/src/main/java/com/weaver/seconddev/jcl/organization/service/impl/EmployeeInformationServiceImpl.java @@ -503,8 +503,8 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic List> personCustomFieldList = getFieldList(personCustomEntity,employee); List> customFieldList = personCustomFieldList.stream().filter(e->!e.get("componentKey").equals("BaseField")).collect(Collectors.toList()); - List> customMainFieldList = customFieldList.stream().filter(e->CommonUtils.null2String(e.get("subFormId")).equals("")).collect(Collectors.toList()); - List> customDetailFieldList = customFieldList.stream().filter(e->!CommonUtils.null2String(e.get("subFormId")).equals("")).collect(Collectors.toList()); + List> customMainFieldList = personCustomFieldList.stream().filter(e->CommonUtils.null2String(e.get("subFormId")).equals("")).collect(Collectors.toList()); + List> customDetailFieldList = personCustomFieldList.stream().filter(e->!CommonUtils.null2String(e.get("subFormId")).equals("")).collect(Collectors.toList()); /** * 人力资源-个人信息自定义字段 */ @@ -512,8 +512,8 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic List> personInfCustomFieldList = getFieldList(personInfCustomEntity,employee); List> infcustomFieldList = personInfCustomFieldList.stream().filter(e->!e.get("componentKey").equals("BaseField")).collect(Collectors.toList()); - List> infcustomMainFieldList = infcustomFieldList.stream().filter(e->CommonUtils.null2String(e.get("subFormId")).equals("")).collect(Collectors.toList()); - List> infcustomDetailFieldList = infcustomFieldList.stream().filter(e->!CommonUtils.null2String(e.get("subFormId")).equals("")).collect(Collectors.toList()); + List> infcustomMainFieldList = personInfCustomFieldList.stream().filter(e->CommonUtils.null2String(e.get("subFormId")).equals("")).collect(Collectors.toList()); + List> infcustomDetailFieldList = personInfCustomFieldList.stream().filter(e->!CommonUtils.null2String(e.get("subFormId")).equals("")).collect(Collectors.toList()); //组装员工信息 @@ -1079,6 +1079,10 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic for (Map customField:conditionList){ List> list = Lists.newArrayList(); + if (!"-1".equals(groupId) && customField.get("componentKey").equals("BaseField")){ + //过滤系统的基础字段 + continue; + } if ("-1".equals(groupId)){ //组装人力资源系统表,packageList为人力资源数据,conditionList为员工信息数据 for (Map packageMap :packageList){