| 
						
						
							
								
							
						
						
					 | 
					@ -67,6 +67,8 @@ import org.springframework.web.multipart.commons.CommonsMultipartFile; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import javax.servlet.http.HttpServletResponse; | 
					 | 
					 | 
					import javax.servlet.http.HttpServletResponse; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import java.io.IOException; | 
					 | 
					 | 
					import java.io.IOException; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import java.io.OutputStream; | 
					 | 
					 | 
					import java.io.OutputStream; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import java.text.ParseException; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import java.text.SimpleDateFormat; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import java.util.*; | 
					 | 
					 | 
					import java.util.*; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import java.util.concurrent.atomic.AtomicBoolean; | 
					 | 
					 | 
					import java.util.concurrent.atomic.AtomicBoolean; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import java.util.concurrent.atomic.AtomicReference; | 
					 | 
					 | 
					import java.util.concurrent.atomic.AtomicReference; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -433,7 +435,7 @@ public class IcCommunitySelfOrganizationServiceImpl extends BaseServiceImpl<IcCo | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                e.setOrgType(IcCommunitySelfOrganizationConstant.ORG_TYPE_AGENCY); | 
					 | 
					 | 
					                e.setOrgType(IcCommunitySelfOrganizationConstant.ORG_TYPE_AGENCY); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                e.setPid(agencyInfo.getPid()); | 
					 | 
					 | 
					                e.setPid(agencyInfo.getPid()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                e.setPids(agencyInfo.getPids()); | 
					 | 
					 | 
					                e.setPids(agencyInfo.getPids()); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                e.setOrganizationCreatedTime(l.getOrganizationCreatedTime()); | 
					 | 
					 | 
					               // e.setOrganizationCreatedTime(l.getOrganizationCreatedTime());
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                baseDao.insert(e); | 
					 | 
					 | 
					                baseDao.insert(e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                if (CollectionUtils.isNotEmpty(l.getPersons())){ | 
					 | 
					 | 
					                if (CollectionUtils.isNotEmpty(l.getPersons())){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    l.getPersons().forEach(p -> { | 
					 | 
					 | 
					                    l.getPersons().forEach(p -> { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -540,7 +542,12 @@ public class IcCommunitySelfOrganizationServiceImpl extends BaseServiceImpl<IcCo | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    e.setOrgType(IcCommunitySelfOrganizationConstant.ORG_TYPE_AGENCY); | 
					 | 
					 | 
					                    e.setOrgType(IcCommunitySelfOrganizationConstant.ORG_TYPE_AGENCY); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    e.setPid(agencyInfo.getPid()); | 
					 | 
					 | 
					                    e.setPid(agencyInfo.getPid()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    e.setPids(agencyInfo.getPids()); | 
					 | 
					 | 
					                    e.setPids(agencyInfo.getPids()); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                    e.setOrganizationCreatedTime(l.getOrganizationCreatedTime()); | 
					 | 
					 | 
					                    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                        e.setOrganizationCreatedTime(sdf.parse(l.getOrganizationCreatedTime())); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    } catch (ParseException ex) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                        ex.printStackTrace(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    baseDao.insert(e); | 
					 | 
					 | 
					                    baseDao.insert(e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    if (CollectionUtils.isNotEmpty(l.getPersons())){ | 
					 | 
					 | 
					                    if (CollectionUtils.isNotEmpty(l.getPersons())){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                        l.getPersons().forEach(p -> { | 
					 | 
					 | 
					                        l.getPersons().forEach(p -> { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -579,6 +586,7 @@ public class IcCommunitySelfOrganizationServiceImpl extends BaseServiceImpl<IcCo | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            String url = erroeImport(fileList); | 
					 | 
					 | 
					            String url = erroeImport(fileList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            upImportTask(url, taskId, tokenDto.getUserId(), true); | 
					 | 
					 | 
					            upImportTask(url, taskId, tokenDto.getUserId(), true); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } catch (Exception e) { | 
					 | 
					 | 
					        } catch (Exception e) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            e.printStackTrace(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            log.error("【社会自组织信息导入】程序错误"); | 
					 | 
					 | 
					            log.error("【社会自组织信息导入】程序错误"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            upImportTask(null, taskId, tokenDto.getUserId(), false); | 
					 | 
					 | 
					            upImportTask(null, taskId, tokenDto.getUserId(), false); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -643,7 +651,7 @@ public class IcCommunitySelfOrganizationServiceImpl extends BaseServiceImpl<IcCo | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            importTaskForm.setProcessStatus(ImportTaskConstants.PROCESS_STATUS_FINISHED_SUCCESS); | 
					 | 
					 | 
					            importTaskForm.setProcessStatus(ImportTaskConstants.PROCESS_STATUS_FINISHED_SUCCESS); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } else { | 
					 | 
					 | 
					        } else { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            importTaskForm.setProcessStatus(ImportTaskConstants.PROCESS_STATUS_FINISHED_FAIL); | 
					 | 
					 | 
					            importTaskForm.setProcessStatus(ImportTaskConstants.PROCESS_STATUS_FINISHED_FAIL); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            importTaskForm.setResultDesc("社会自组织导入存在错误"); | 
					 | 
					 | 
					            importTaskForm.setResultDesc("社会自组织导入存在程序错误"); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        Result result = commonServiceOpenFeignClient.finishImportTask(importTaskForm); | 
					 | 
					 | 
					        Result result = commonServiceOpenFeignClient.finishImportTask(importTaskForm); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if (!result.success()) { | 
					 | 
					 | 
					        if (!result.success()) { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |