diff --git a/secondev-jcl-systemproject/src/main/java/com/weaver/jucailin/organization/service/impl/EmployeeInformationServiceImpl.java b/secondev-jcl-systemproject/src/main/java/com/weaver/jucailin/organization/service/impl/EmployeeInformationServiceImpl.java index a3ff013..f501d92 100644 --- a/secondev-jcl-systemproject/src/main/java/com/weaver/jucailin/organization/service/impl/EmployeeInformationServiceImpl.java +++ b/secondev-jcl-systemproject/src/main/java/com/weaver/jucailin/organization/service/impl/EmployeeInformationServiceImpl.java @@ -21,6 +21,7 @@ import com.weaver.common.form.param.FieldManageParam; import com.weaver.common.form.param.auth.FormAuthenticationParam; import com.weaver.common.form.param.field.FormFieldParam; import com.weaver.common.form.physical.enums.FormTableType; +import com.weaver.common.form.searchentity.FormFieldManageSearchEntity; import com.weaver.common.form.service.IdGeneratorService; import com.weaver.common.i18n.label.SystemEnv; import com.weaver.ebuilder.coms.sdk.biz.QueryFilterBiz; @@ -43,10 +44,7 @@ import org.springframework.stereotype.Service; import org.springframework.util.StopWatch; import org.springframework.web.bind.annotation.RequestParam; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; +import java.util.*; import java.util.stream.Collectors; /** @@ -83,6 +81,10 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic Map uf_jcl_rzgl_Info = recruitModuleUtils.getEbTableInfo("uf_jcl_employee_information_apptag", Constants.UF_JCL_RZGL); String uf_jcl_rzgl = uf_jcl_rzgl_Info.get("table_name"); + log.error("uf_jcl_employee_information : [{}]",uf_jcl_employee_information); + log.error("uf_jcl_employee_xxbgsq : [{}]",uf_jcl_employee_xxbgsq); + log.error("uf_jcl_rzgl : [{}]",uf_jcl_rzgl); + List paramList = Lists.newArrayList(); paramList.add("'"+ uf_jcl_employee_information+"'"); @@ -92,8 +94,10 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic Map formMap = databaseUtils.getSqlList(sql).stream().collect(Collectors.toMap(e->e.get("table_name").toString(),e->e.get("form_id").toString())); String employee_form_id = formMap.get(uf_jcl_employee_information); - sql = "select id,module from FORM where (module='hrm' and ownership='personal') or module='hruserinfo' and delete_type='0' and tenant_key=?"; + sql = "select id,module from FORM where ((module='hrm' and ownership='personal') or module='hruserinfo') and delete_type='0' and tenant_key=?"; List> personFormList = databaseUtils.getSqlList(sql,CommonUtils.getParamList(employee.getTenantKey())); + log.info("personFormList : [{}]",personFormList); + log.info("tenantKey :[{}]",employee.getTenantKey()); Map personFormMap = personFormList.stream().collect(Collectors.toMap(e->e.get("module").toString(),e->e.get("id").toString())); //基本信息自定义字段表 String personCustomfieldFormid=personFormMap.get("hrm"); @@ -191,11 +195,15 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic * 批量保存 */ //员工信息表 - sql = "select b.id formtableid,a.* from sub_form a left join form_table b on a.id=b.form_id where a.form_id in ("+String.join(",",formIdParamList)+") and a.delete_type='0'"; + sql = "select b.id formtableid,b.table_name,a.* from sub_form a left join form_table b on a.id=b.form_id where a.form_id in ("+String.join(",",formIdParamList)+") and a.delete_type='0'"; List> dataList = databaseUtils.getSqlList(sql); Map>> dataGroup = dataList.stream().collect(Collectors.groupingBy(e->e.get("form_id").toString())); List errorMessage = Lists.newArrayList(); - WeaResult> result = batchSaveInformation(employee_form_id,employeeFieldList,dataGroup.get(employee_form_id),ModuleSource.ebuilderform,null,null,employee,employEeFormList); + FormFieldManageSearchEntity searchEntity = FormFieldManageSearchEntity.Builder.builder().formId(Long.valueOf(employee_form_id)).deleteState(Collections.singletonList(0)).module(ModuleSource.ebuilderform.name()).build(); + List detailFormDtos = fieldManageController.getRealService(ModuleSource.ebuilderform.name(),"FormFieldManageService",FormFieldManageService.class).listFormByParam(searchEntity, employee); + detailFormDtos = detailFormDtos.stream().filter(e->e.getFormId()==null).collect(Collectors.toList()); + + WeaResult> result = batchSaveInformation(employee_form_id,employeeFieldList,null,ModuleSource.ebuilderform,null,null,employee,employEeFormList,detailFormDtos); if (result.getCode() != 200){ errorMessage.add("员工信息表"+result.getMsg()); }else { @@ -219,14 +227,14 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic //保存人力资源-基本信息 Map customParam = Maps.newHashMap(); customParam.put("formId",personCustomfieldFormid); - WeaResult> result2 = batchSaveInformation(personCustomfieldFormid,personCustomFieldList,dataGroup.get(personCustomfieldFormid),ModuleSource.hrm,customParam,null,employee,personCustomFormList); + WeaResult> result2 = batchSaveInformation(personCustomfieldFormid,personCustomFieldList,dataGroup.get(personCustomfieldFormid),ModuleSource.hrm,customParam,null,employee,personCustomFormList,Lists.newArrayList()); if (result2.getCode() != 200){ errorMessage.add("人力资源基本信息自定义表"+result2.getMsg()); } //保存人力资源-个人信息 Map customParam2 = Maps.newHashMap(); customParam2.put("apiModule","hr"); - WeaResult> result3 = batchSaveInformation(personInfCustomFormid,personInfCustomFieldList,dataGroup.get(personInfCustomFormid),ModuleSource.hruserinfo,customParam2,null,employee,personInfCustomFormList); + WeaResult> result3 = batchSaveInformation(personInfCustomFormid,personInfCustomFieldList,dataGroup.get(personInfCustomFormid),ModuleSource.hruserinfo,customParam2,null,employee,personInfCustomFormList,Lists.newArrayList()); if (result3.getCode() != 200){ errorMessage.add("人力资源个人信息自定义表"+result3.getMsg()); } @@ -255,7 +263,7 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic String employee_form_id = formMap.get(uf_jcl_employee_information); - sql = "select id,module from FORM where (module='hrm' and ownership='personal') or module='hruserinfo' and delete_type='0' and tenant_key=?"; + sql = "select id,module from FORM where ((module='hrm' and ownership='personal') or module='hruserinfo') and delete_type='0' and tenant_key=?"; List> personFormList = databaseUtils.getSqlList(sql,CommonUtils.getParamList(employee.getTenantKey())); Map personFormMap = personFormList.stream().collect(Collectors.toMap(e->e.get("module").toString(),e->e.get("id").toString())); //基本信息自定义字段表 @@ -314,7 +322,7 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic List> personCustomFieldList = getFieldList(personCustomEntity,employee); //组装批量保存信息 - Map personCustomResult = packageBatchSaveParamHaveDelete(personCustomFieldList,mainFormBasicFieldList,"-1",mapping,employeeBasicFieldList,allSubFormList); + Map personCustomResult = packageBatchSaveParamHaveDelete(personCustomFieldList,mainFormBasicFieldList,"-1",mapping,employeeBasicFieldList,allSubFormList,null); List personCustomids = (List)personCustomResult.get("deleteIds"); List> personCustomAddForms = (List>)personCustomResult.get("forms"); /** @@ -323,7 +331,7 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic FieldManageParam personInfCustomEntity = getFieldManageParam(personInfCustomFormid,ModuleSource.hruserinfo); List> personInfCustomFieldList = getFieldList(personInfCustomEntity,employee); //组装批量保存信息 - Map personInfCustomResult = packageBatchSaveParamHaveDelete(personInfCustomFieldList,mainFormPersonFieldList,"-1",mapping,employeePesonFieldList,allSubFormList); + Map personInfCustomResult = packageBatchSaveParamHaveDelete(personInfCustomFieldList,mainFormPersonFieldList,"-1",mapping,employeePesonFieldList,allSubFormList,null); List personInfCustomIds = (List)personInfCustomResult.get("deleteIds"); List> personInfCustomAddForms = (List>)personInfCustomResult.get("forms"); @@ -340,20 +348,20 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic //保存人力资源-基本信息 Map customParam = Maps.newHashMap(); customParam.put("formId",personCustomfieldFormid); - WeaResult> result2 = batchSaveInformation(personCustomfieldFormid,personCustomFieldList,null,ModuleSource.hrm,customParam,personCustomids,employee,personCustomAddForms); + WeaResult> result2 = batchSaveInformation(personCustomfieldFormid,personCustomFieldList,null,ModuleSource.hrm,customParam,personCustomids,employee,personCustomAddForms,Lists.newArrayList()); if (result2.getCode() != 200){ errorMessage.add("基本信息表"+result2.getMsg()); } //保存人力资源-个人信息 Map customParam2 = Maps.newHashMap(); customParam2.put("apiModule","hr"); - WeaResult> result3 = batchSaveInformation(personInfCustomFormid,personInfCustomFieldList,null,ModuleSource.hruserinfo,customParam2,personInfCustomIds,employee,personInfCustomAddForms); + WeaResult> result3 = batchSaveInformation(personInfCustomFormid,personInfCustomFieldList,null,ModuleSource.hruserinfo,customParam2,personInfCustomIds,employee,personInfCustomAddForms,Lists.newArrayList()); if (result3.getCode() != 200){ errorMessage.add("个人信息表"+result3.getMsg()); } //同步员工信息变更表和入职管理 - sql = "select b.id formtableid,a.* from sub_form a left join form_table b on a.id=b.form_id where a.form_id in ("+String.join(",",formIdParamList)+") and a.delete_type='0'"; + sql = "select b.id formtableid,b.table_name,a.* from sub_form a left join form_table b on a.id=b.form_id where a.form_id in ("+String.join(",",formIdParamList)+") and a.delete_type='0'"; List> dataList = databaseUtils.getSqlList(sql); Map>> dataGroup = dataList.stream().collect(Collectors.groupingBy(e->e.get("form_id").toString())); @@ -394,7 +402,7 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic String employee_form_id = formMap.get(uf_jcl_employee_information); - sql = "select id,module from FORM where (module='hrm' and ownership='personal') or module='hruserinfo' and delete_type='0' and tenant_key="; + sql = "select id,module from FORM where ((module='hrm' and ownership='personal') or module='hruserinfo') and delete_type='0' and tenant_key="; List> personFormList = databaseUtils.getSqlList(sql,CommonUtils.getParamList(employee.getTenantKey())); Map personFormMap = personFormList.stream().collect(Collectors.toMap(e->e.get("module").toString(),e->e.get("id").toString())); //基本信息自定义字段表 @@ -453,12 +461,12 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic //组装员工信息 - Map result1 = packageBatchSaveParamHaveDelete(employeeFieldList,customMainFieldList,fieldGroup.get(Constants.BASIC_INFORMATION),mapping,customDetailFieldList,allSubFormList); + Map result1 = packageBatchSaveParamHaveDelete(employeeFieldList,customMainFieldList,fieldGroup.get(Constants.BASIC_INFORMATION),mapping,customDetailFieldList,allSubFormList,null); List deleteIds = (List)result1.get("deleteIds"); List> personAddForms = (List>)result1.get("forms"); - Map result2 = packageBatchSaveParamHaveDelete(employeeFieldList,infcustomMainFieldList,fieldGroup.get(Constants.PERSONAL_INFORMATION),mapping,infcustomDetailFieldList,allSubFormList); + Map result2 = packageBatchSaveParamHaveDelete(employeeFieldList,infcustomMainFieldList,fieldGroup.get(Constants.PERSONAL_INFORMATION),mapping,infcustomDetailFieldList,allSubFormList,null); List deleteIds2 = (List)result2.get("deleteIds"); List> personAddForms2 = (List>)result2.get("forms"); deleteIds.addAll(deleteIds2); @@ -474,12 +482,16 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic * 批量保存 */ //员工信息表 - sql = "select b.id formtableid,a.* from sub_form a left join form_table b on a.id=b.form_id where a.form_id in ("+String.join(",",formIdParamList)+") and a.delete_type='0'"; + sql = "select b.id formtableid,b.table_name,a.* from sub_form a left join form_table b on a.id=b.form_id where a.form_id in ("+String.join(",",formIdParamList)+") and a.delete_type='0'"; List> dataList = databaseUtils.getSqlList(sql); Map>> dataGroup = dataList.stream().collect(Collectors.groupingBy(e->e.get("form_id").toString())); + FormFieldManageSearchEntity searchEntity = FormFieldManageSearchEntity.Builder.builder().formId(Long.valueOf(employee_form_id)).deleteState(Collections.singletonList(0)).module(ModuleSource.ebuilderform.name()).build(); + List detailFormDtos = fieldManageController.getRealService(ModuleSource.ebuilderform.name(),"FormFieldManageService",FormFieldManageService.class).listFormByParam(searchEntity, employee); + detailFormDtos = detailFormDtos.stream().filter(e->e.getFormId()==null).collect(Collectors.toList()); + List errorMessage = Lists.newArrayList(); - WeaResult> result = batchSaveInformation(employee_form_id,employeeFieldList,dataGroup.get(employee_form_id),ModuleSource.ebuilderform,null,deleteIds,employee,personAddForms); + WeaResult> result = batchSaveInformation(employee_form_id,employeeFieldList,null,ModuleSource.ebuilderform,null,deleteIds,employee,personAddForms,detailFormDtos); if (result.getCode() != 200){ errorMessage.add("员工信息表"+result.getMsg()); }else { @@ -593,11 +605,11 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic Map hireManageMentFieldGroup = fieldGroupBy.get(formMap.get(uf_jcl_rzgl)).stream().collect(Collectors.toMap(e->e.get("group_name").toString(),e->e.get("id").toString())); - Map result1 = packageBatchSaveParamHaveDelete(hireManageMentFieldList,mainFormBasicFieldList,hireManageMentFieldGroup.get(Constants.BASIC_INFORMATION),null,employeeBasicFieldList,allSubFormList); + Map result1 = packageBatchSaveParamHaveDelete(hireManageMentFieldList,mainFormBasicFieldList,hireManageMentFieldGroup.get(Constants.BASIC_INFORMATION),null,employeeBasicFieldList,allSubFormList,"hire_"); List hireManageMentdeleteIds = (List)result1.get("deleteIds"); List> hireManageMentPersonAddForms = (List>)result1.get("forms"); - Map result2 = packageBatchSaveParamHaveDelete(hireManageMentFieldList,mainFormPersonFieldList,hireManageMentFieldGroup.get(Constants.PERSONAL_INFORMATION),null,employeePesonFieldList,allSubFormList); + Map result2 = packageBatchSaveParamHaveDelete(hireManageMentFieldList,mainFormPersonFieldList,hireManageMentFieldGroup.get(Constants.PERSONAL_INFORMATION),null,employeePesonFieldList,allSubFormList,"hire_"); List deleteIds2 = (List)result2.get("deleteIds"); List> personAddForms2 = (List>)result2.get("forms"); hireManageMentdeleteIds.addAll(deleteIds2); @@ -613,11 +625,11 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic Map informationChangeFieldGroup = fieldGroupBy.get(formMap.get(uf_jcl_employee_xxbgsq)).stream().collect(Collectors.toMap(e->e.get("group_name").toString(),e->e.get("id").toString())); - Map informationChangeResult1 = packageBatchSaveParamHaveDelete(informationChangeFieldList,mainFormBasicFieldList,informationChangeFieldGroup.get(Constants.BASIC_INFORMATION),null,employeeBasicFieldList,allSubFormList); + Map informationChangeResult1 = packageBatchSaveParamHaveDelete(informationChangeFieldList,mainFormBasicFieldList,informationChangeFieldGroup.get(Constants.BASIC_INFORMATION),null,employeeBasicFieldList,allSubFormList,"change_"); List informationChangedeleteIds = (List)informationChangeResult1.get("deleteIds"); List> informationChangeAddForms = (List>)informationChangeResult1.get("forms"); - Map informationChangeResult2 = packageBatchSaveParamHaveDelete(informationChangeFieldList,mainFormPersonFieldList,informationChangeFieldGroup.get(Constants.PERSONAL_INFORMATION),null,employeePesonFieldList,allSubFormList); + Map informationChangeResult2 = packageBatchSaveParamHaveDelete(informationChangeFieldList,mainFormPersonFieldList,informationChangeFieldGroup.get(Constants.PERSONAL_INFORMATION),null,employeePesonFieldList,allSubFormList,"change_"); List informationChangeDeleteIds2 = (List)informationChangeResult2.get("deleteIds"); List> informationChangeddForms2 = (List>)informationChangeResult2.get("forms"); informationChangedeleteIds.addAll(informationChangeDeleteIds2); @@ -625,14 +637,24 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic List errorMessage = Lists.newArrayList(); - //保存入职管理 - WeaResult> result = batchSaveInformation(CommonUtils.null2String(formMap.get(uf_jcl_employee_xxbgsq)),hireManageMentFieldList,detailFormDataList.get(formMap.get(uf_jcl_employee_xxbgsq)),ModuleSource.ebuilderform,null,hireManageMentdeleteIds,employee,hireManageMentPersonAddForms); + FormFieldManageSearchEntity searchEntity = FormFieldManageSearchEntity.Builder.builder().formId(Long.valueOf(CommonUtils.null2String(formMap.get(uf_jcl_rzgl)))).deleteState(Collections.singletonList(0)).module(ModuleSource.ebuilderform.name()).build(); + List detailFormDtos = fieldManageController.getRealService(ModuleSource.ebuilderform.name(),"FormFieldManageService",FormFieldManageService.class).listFormByParam(searchEntity, employee); + detailFormDtos = detailFormDtos.stream().filter(e->e.getFormId()==null).collect(Collectors.toList()); + + + WeaResult> result = batchSaveInformation(CommonUtils.null2String(formMap.get(uf_jcl_rzgl)),hireManageMentFieldList,null,ModuleSource.ebuilderform,null,hireManageMentdeleteIds,employee,hireManageMentPersonAddForms,detailFormDtos); if (result.getCode() != 200){ errorMessage.add("入职管理"+result.getMsg()); } //保存信息变更 - WeaResult> informationChangeResult = batchSaveInformation(CommonUtils.null2String(formMap.get(uf_jcl_rzgl)),informationChangeFieldList,detailFormDataList.get(formMap.get(uf_jcl_rzgl)),ModuleSource.ebuilderform,null,informationChangedeleteIds,employee,informationChangeAddForms); + + FormFieldManageSearchEntity searchEntity2 = FormFieldManageSearchEntity.Builder.builder().formId(Long.valueOf(CommonUtils.null2String(formMap.get(uf_jcl_employee_xxbgsq)))).deleteState(Collections.singletonList(0)).module(ModuleSource.ebuilderform.name()).build(); + List detailFormDtos2 = fieldManageController.getRealService(ModuleSource.ebuilderform.name(),"FormFieldManageService",FormFieldManageService.class).listFormByParam(searchEntity2, employee); + detailFormDtos2 = detailFormDtos2.stream().filter(e->e.getFormId()==null).collect(Collectors.toList()); + + + WeaResult> informationChangeResult = batchSaveInformation(CommonUtils.null2String(formMap.get(uf_jcl_employee_xxbgsq)),informationChangeFieldList,null,ModuleSource.ebuilderform,null,informationChangedeleteIds,employee,informationChangeAddForms,detailFormDtos2); if (informationChangeResult.getCode() != 200){ errorMessage.add("信息变更申请表"+informationChangeResult.getMsg()); } @@ -963,7 +985,7 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic * @param conditionList * @param groupId */ - public Map packageBatchSaveParamHaveDelete(List> packageList,List> conditionList,String groupId,Map mapping,List> detailFieldList,List> allSubFormList){ + public Map packageBatchSaveParamHaveDelete(List> packageList,List> conditionList,String groupId,Map mapping,List> detailFieldList,List> allSubFormList,String tableKey){ Map resultMap = Maps.newHashMap(); List> addForms = Lists.newArrayList(); Map>> allSubFormGroup = allSubFormList.stream().collect(Collectors.groupingBy(e->e.get("id").toString())); @@ -1062,12 +1084,16 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic if (detailFieldList != null && detailFieldList.size() > 0){ String dataKey = ""; - if ("-1".equals(groupId)){ - //组装人力资源系统表,packageList为人力资源数据,conditionList为员工信息数据 - dataKey = "dt_"; + if (tableKey != null){ + dataKey=tableKey; }else { - //组装人力资源系统表,packageList为员工信息数据,conditionList为人力资源数据 - dataKey = "uf_"; + if ("-1".equals(groupId)){ + //组装人力资源系统表,packageList为人力资源数据,conditionList为员工信息数据 + dataKey = "dt_"; + }else { + //组装人力资源系统表,packageList为员工信息数据,conditionList为人力资源数据 + dataKey = "uf_"; + } } Map>> detailFieldGroup = detailFieldList.stream().collect(Collectors.groupingBy(e->e.get("subFormId").toString())); for (Map.Entry>> entry :detailFieldGroup.entrySet()){ @@ -1079,7 +1105,7 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic List> list = allSubFormList.stream().filter(e->e.get("data_key").equals(finalDataKey)).collect(Collectors.toList()); List> subList = Lists.newArrayList(); - if (subDataKey.split("_").length >1 ){ + if (subDataKey.split("_").length >1 && subDataKey.split("_")[0].equals(dataKey)){ subList = allSubFormGroup.get(subDataKey.split("_")[1]) == null ? Lists.newArrayList():allSubFormGroup.get(subDataKey.split("_")[1]); } @@ -1202,12 +1228,12 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic * 批量保存 * @return */ - public WeaResult> batchSaveInformation(String formid,List> formFieldList,List> detailFormList,ModuleSource moduleSource,Map customParam,List ids,SimpleEmployee employee,List> formList){ + public WeaResult> batchSaveInformation(String formid,List> formFieldList,List> detailFormList,ModuleSource moduleSource,Map customParam,List ids,SimpleEmployee employee,List> formList,List detailFormDtos){ FormFieldManageParam saveEmployeeEntity = new FormFieldManageParam(); saveEmployeeEntity.setFormId(Long.valueOf(formid)); saveEmployeeEntity.setModule(moduleSource); saveEmployeeEntity.setJsonObjList(getJsonObjList(formFieldList)); - List forms = Lists.newArrayList(); + List forms = detailFormDtos; if (detailFormList != null){ for (Map map:detailFormList){ FormTableDto formTableDto = new FormTableDto(); @@ -1226,7 +1252,7 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic formTableDto.setId(Long.valueOf(map.get("id").toString())); formTableDto.setFormId(Long.valueOf(map.get("id").toString())); formTableDto.setName(CommonUtils.null2String(map.get("title"))); - formTableDto.setTableName(map.get("data_key").toString()); + formTableDto.setTableName(map.get("table_name").toString()); formTableDto.setTableType(FormTableType.MAIN); formTableDto.setOrder(CommonUtils.null2String(map.get("show_order"))); forms.add(formTableDto); @@ -1245,11 +1271,14 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic forms.add(formTableDto); } } + saveEmployeeEntity.setIds(ids); saveEmployeeEntity.setForms(forms); saveEmployeeEntity.setCustomParam(customParam); Gson gson = new Gson(); + log.error("saveEmployeeEntity result:[{}]",forms.size()); + // log.error("saveEmployeeEntity result:[{}]",gson.toJson(forms,List.class)); WeaResult>result = batchSaveFormField(saveEmployeeEntity,employee); log.error("batchSaveInformation result :[{}]",gson.toJson(result)); return result;