| | |
| | | for(ComActSocialWorkerExcelVO comActSocialWorkerExcelVO:lis) { |
| | | ComActSocialWorker comActSocialWorkerDO = new ComActSocialWorker(); |
| | | BeanUtils.copyProperties(comActSocialWorkerExcelVO,comActSocialWorkerDO); |
| | | if (StringUtils.isNotEmpty(comActSocialWorkerExcelVO.getStreetId())) { |
| | | ComStreetDO comStreetDO=comStreetDAO.selectOne(new QueryWrapper<ComStreetDO>().eq("name",comActSocialWorkerExcelVO.getStreetId())); |
| | | if(comStreetDO!=null){ |
| | | comActSocialWorkerDO.setStreetId(comStreetDO.getStreetId()); |
| | | } |
| | | } |
| | | if (StringUtils.isNotEmpty(comActSocialWorkerExcelVO.getSocialOrgId())) { |
| | | ComActSocialOrg comActSocialOrgDO=comActSocialOrgMapper.selectOne(new QueryWrapper<ComActSocialOrg>().eq("name",comActSocialWorkerExcelVO.getSocialOrgId())); |
| | | if(comActSocialOrgDO!=null){ |
| | | comActSocialWorkerDO.setSocialOrgId(comActSocialOrgDO.getId()); |
| | | } |
| | | } |
| | | if(StringUtils.isNotEmpty(comActSocialWorkerExcelVO.getCommunityId())){ |
| | | ComActDO comActDO= comActDAO.selectOne(new QueryWrapper<ComActDO>().eq("name",comActSocialWorkerExcelVO.getCommunityId())); |
| | | if(comActDO!=null){ |
| | |
| | | comActSocialWorkerDO.setGen(0); |
| | | } |
| | | } |
| | | if(StringUtils.isNotEmpty(comActSocialWorkerExcelVO.getCredential())){ |
| | | if("是".equals(comActSocialWorkerExcelVO.getCredential())){ |
| | | comActSocialWorkerDO.setCredential(1); |
| | | } |
| | | else { |
| | | comActSocialWorkerDO.setCredential(0); |
| | | } |
| | | } |
| | | if(StringUtils.isNotEmpty(comActSocialWorkerExcelVO.getCredential())){ |
| | | if("是".equals(comActSocialWorkerExcelVO.getCredential())){ |
| | | comActSocialWorkerDO.setCredential(1); |
| | | } |
| | | else { |
| | | comActSocialWorkerDO.setCredential(0); |
| | | } |
| | | } |
| | | list.add(comActSocialWorkerDO); |
| | | } |
| | | this.saveBatch(list); |