| 
						
						
							
								
							
						
						
					 | 
					@ -33,10 +33,12 @@ import com.epmet.dto.form.demand.ServiceQueryFormDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.result.demand.OptionDTO; | 
					 | 
					 | 
					import com.epmet.dto.result.demand.OptionDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.excel.IcPartyUnitExcel; | 
					 | 
					 | 
					import com.epmet.excel.IcPartyUnitExcel; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.service.IcPartyUnitService; | 
					 | 
					 | 
					import com.epmet.service.IcPartyUnitService; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import org.apache.commons.collections4.CollectionUtils; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.springframework.beans.factory.annotation.Autowired; | 
					 | 
					 | 
					import org.springframework.beans.factory.annotation.Autowired; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.springframework.web.bind.annotation.*; | 
					 | 
					 | 
					import org.springframework.web.bind.annotation.*; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import javax.servlet.http.HttpServletResponse; | 
					 | 
					 | 
					import javax.servlet.http.HttpServletResponse; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import java.util.ArrayList; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import java.util.List; | 
					 | 
					 | 
					import java.util.List; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import java.util.concurrent.atomic.AtomicInteger; | 
					 | 
					 | 
					import java.util.concurrent.atomic.AtomicInteger; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import java.util.stream.Collectors; | 
					 | 
					 | 
					import java.util.stream.Collectors; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -90,21 +92,23 @@ public class IcPartyUnitController { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @GetMapping("export") | 
					 | 
					 | 
					    @GetMapping("export") | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    public void export(@RequestBody PartyUnitFormDTO formDTO, HttpServletResponse response) throws Exception { | 
					 | 
					 | 
					    public void export(@RequestBody PartyUnitFormDTO formDTO, HttpServletResponse response) throws Exception { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        List<IcPartyUnitDTO> list = icPartyUnitService.list(formDTO); | 
					 | 
					 | 
					        List<IcPartyUnitDTO> list = icPartyUnitService.list(formDTO); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        List<IcPartyUnitExcel> excelList = new ArrayList<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        AtomicInteger i = new AtomicInteger(0); | 
					 | 
					 | 
					        AtomicInteger i = new AtomicInteger(0); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        List<IcPartyUnitExcel> excelList = list.stream().map(item -> { | 
					 | 
					 | 
					        if (CollectionUtils.isNotEmpty(list)) { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            IcPartyUnitExcel excel = new IcPartyUnitExcel(); | 
					 | 
					 | 
					            excelList = list.stream().map(item -> { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            excel.setIndex(i.getAndIncrement()); | 
					 | 
					 | 
					                IcPartyUnitExcel excel = new IcPartyUnitExcel(); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            excel.setUnitName(item.getUnitName()); | 
					 | 
					 | 
					                excel.setIndex(i.getAndIncrement()); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            excel.setContact(item.getContact()); | 
					 | 
					 | 
					                excel.setUnitName(item.getUnitName()); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            excel.setContactMobile(item.getContactMobile()); | 
					 | 
					 | 
					                excel.setContact(item.getContact()); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            excel.setType(item.getType()); | 
					 | 
					 | 
					                excel.setContactMobile(item.getContactMobile()); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            excel.setMemberCount(item.getMemberCount()); | 
					 | 
					 | 
					                excel.setType(item.getType()); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            excel.setRemark(item.getRemark()); | 
					 | 
					 | 
					                excel.setMemberCount(item.getMemberCount()); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            excel.setSatisfaction(item.getSatisfaction()); | 
					 | 
					 | 
					                excel.setRemark(item.getRemark()); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            excel.setServiceMatter(String.join(String.valueOf((char)10), item.getServiceMatterList())); | 
					 | 
					 | 
					                excel.setSatisfaction(item.getSatisfaction()); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            return excel; | 
					 | 
					 | 
					                excel.setServiceMatter(String.join(String.valueOf((char) 10), item.getServiceMatterList())); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        }).collect(Collectors.toList()); | 
					 | 
					 | 
					                return excel; | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					
 | 
					 | 
					 | 
					            }).collect(Collectors.toList()); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        ExcelUtils.exportExcelToTarget(response, null, excelList, IcPartyUnitExcel.class); | 
					 | 
					 | 
					        ExcelUtils.exportExcelToTarget(response, null, excelList, IcPartyUnitExcel.class); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |