| | |
| | | PartyOrganizationVO partyOrganizationVO=new PartyOrganizationVO(); |
| | | partyOrganizationVO.setId(comPbOrgDO.getId()); |
| | | partyOrganizationVO.setName(comPbOrgDO.getName()); |
| | | partyOrganizationVO.setCommunityId(comPbOrgDO.getCommunityId()); |
| | | partyOrganizationVOList.add(partyOrganizationVO); |
| | | }); |
| | | partyOrganizationVOS= partyOrganizationVOList; |
| | |
| | | if (ObjectUtils.isEmpty(collect)) { |
| | | throw new PartyBuildingMemberException("导入失败,组织不存在"+partyBuildingMemberExcelVO.getOrgName()); |
| | | }else{ |
| | | comPbMemberDO.setOrgId(collect.get(0).getId()); |
| | | PartyOrganizationVO partyOrganizationVO = collect.get(0); |
| | | comPbMemberDO.setOrgId(partyOrganizationVO.getId()); |
| | | comPbMemberDO.setCommunityId(partyOrganizationVO.getCommunityId()); |
| | | } |
| | | comPbMemberDO.setEmploymentTime(partyBuildingMemberExcelVO.getEmploymentTime()); |
| | | comPbMemberDO.setJoinTime(partyBuildingMemberExcelVO.getJoinTime()); |
| | |
| | | try { |
| | | this.saveBatch(comPbMemberDOS); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | if (e.getMessage().contains("unique_id_card_community_id")) { |
| | | throw new PartyBuildingMemberException("导入失败,身份证已经存在"); |
| | | } |