| | |
| | | } |
| | | if (StringUtils.isNotEmpty(oneData.get(5))) { |
| | | |
| | | String ra = convertRelation(oneData.get(5)); |
| | | // String ra = convertRelation(oneData.get(5)); |
| | | |
| | | String relation = dictMap.get(ra); |
| | | if (StringUtils.isEmpty(relation)) { |
| | | // vo.setRelationStr(ra); |
| | | // String relation = dictMap.get(oneData.get(5)); |
| | | // if (StringUtils.isEmpty(relation)) { |
| | | //// vo.setRelationStr(ra); |
| | | // ComMngPopulationImportErrorVO importErrorVO = new ComMngPopulationImportErrorVO(); |
| | | // importErrorVO.setErrorPosition("第" + index + "行,第6列"); |
| | | // importErrorVO.setErrorMsg("您填写的与户主关系有误"); |
| | | // populationImportErrorVOList.add(importErrorVO); |
| | | // index++; |
| | | // continue; |
| | | // } else { |
| | | // vo.setRelation(Integer.valueOf(relation)); |
| | | // } |
| | | Integer isOk = PopulRelationEnum.getCodeByName(oneData.get(5)); |
| | | if (isOk.equals(-1)) { |
| | | // vo.setMarriageStr(ma); |
| | | ComMngPopulationImportErrorVO importErrorVO = new ComMngPopulationImportErrorVO(); |
| | | importErrorVO.setErrorPosition("第" + index + "行,第6列"); |
| | | importErrorVO.setErrorMsg("您填写的与户主关系有误"); |
| | |
| | | index++; |
| | | continue; |
| | | } else { |
| | | vo.setRelation(Integer.valueOf(relation)); |
| | | vo.setRelation(isOk); |
| | | } |
| | | |
| | | } |
| | |
| | | vo.setCultureLevel(PopulCultureLevelEnum.getCodeByName(oneData.get(18))); |
| | | } |
| | | if (StringUtils.isNotEmpty(oneData.get(19))) { |
| | | String ma = convertMarriage(oneData.get(19)); |
| | | Integer isOk = PopulMarriageEnum.getCodeByName(ma); |
| | | // String ma = convertMarriage(oneData.get(19)); |
| | | Integer isOk = PopulMarriageEnum.getCodeByName(oneData.get(19)); |
| | | if (isOk.equals(-1)) { |
| | | // vo.setMarriageStr(ma); |
| | | ComMngPopulationImportErrorVO importErrorVO = new ComMngPopulationImportErrorVO(); |