| 
					
				 | 
			
			
				@@ -5,17 +5,24 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.google.common.collect.Lists; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.aop.demo.annotation.DemoMode; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.aop.logging.annotation.ApiLog; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.jeeplus.core.excel.ExcelOptions; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.jeeplus.core.excel.utils.EasyPoiUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.sys.utils.StringUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.jeeplus.test.reimbursementAccountant.domain.dto.AccountantReimbursementBusinessDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.test.reimbursementProject.domain.dto.ProjectReimbursementBusinessDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.test.reimbursementProject.domain.dto.ProjectReimbursementBusinessReturnDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.test.reimbursementProject.domain.dto.ProjectReimbursementDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.test.reimbursementProject.domain.dto.ProjectReimbursementUserDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.test.reimbursementProject.service.ProjectReimbursementBusinessService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.jeeplus.test.reimbursementsys.domain.dto.ReimbursementBusinessDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.jeeplus.test.reimbursementsys.domain.dto.ReimbursementBusinessReturnDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import io.swagger.annotations.ApiOperation; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.http.ResponseEntity; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.security.access.prepost.PreAuthorize; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import javax.servlet.http.HttpServletResponse; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Map; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -122,13 +129,48 @@ public class ProjectReimbursementBusinessController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiLog("查询业务报销信息列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PreAuthorize("hasAuthority('project:reimbursementBusiness:view')") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @GetMapping("findListByBusinessCodeId") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public ResponseEntity findListByBusinessCodeId(String id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(StringUtils.isBlank(id)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public ResponseEntity findListByBusinessCodeId(ProjectReimbursementBusinessDTO reimbursementBusiness) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(StringUtils.isBlank(reimbursementBusiness.getBusinessCodeId())){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return ResponseEntity.badRequest ().body ("请先选择业务信息"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ProjectReimbursementBusinessDTO reimbursementBusiness = new ProjectReimbursementBusinessDTO(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        reimbursementBusiness.setBusinessCodeId(id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ProjectReimbursementBusinessReturnDTO info = service.findListByBusinessCodeId(reimbursementBusiness); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return ResponseEntity.ok(info); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 导出中审众环人员信息数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param reimbursementBusiness 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param response 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @throws Exception 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ApiLog("人员报销详情导出") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @GetMapping("exportBusinessExcel") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ApiOperation(value = "人员报销详情导出Excel") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public void exportBusinessExcel(ProjectReimbursementBusinessDTO reimbursementBusiness, ExcelOptions options, HttpServletResponse response) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        String fileName = options.getFilename ( ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ProjectReimbursementBusinessReturnDTO info = service.findListByBusinessCodeId(reimbursementBusiness); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for (ProjectReimbursementBusinessDTO businessInfo : info.getList()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(StringUtils.isNotBlank(businessInfo.getReimbursementAddress())){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                switch (businessInfo.getReimbursementAddress()){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    case "1": 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        businessInfo.setReimbursementAddress("总所报销"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    case "0": 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        businessInfo.setReimbursementAddress("分所报销"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    default: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        businessInfo.setReimbursementAddress("——"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                businessInfo.setReimbursementAddress("——"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            businessInfo.setBusinessCode(info.getBusinessCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        EasyPoiUtil.exportExcel ( info.getList(), info.getYear() + "年【" + info.getBusinessCode() + "】" + "批次报销详情",  options.getSheetName ( ), ProjectReimbursementBusinessDTO.class, fileName, response ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |