| 
					
				 | 
			
			
				@@ -13,7 +13,11 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package vip.xiaonuo.biz.modular.qyrecord.controller; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import cn.dev33.satoken.annotation.SaCheckPermission; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import cn.hutool.core.collection.CollectionUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import cn.hutool.core.util.URLUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.baomidou.mybatisplus.core.conditions.Wrapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.v3.oas.annotations.tags.Tag; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.v3.oas.annotations.Operation; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -38,6 +42,11 @@ import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.io.IOException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.alibaba.excel.EasyExcel; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.alibaba.fastjson.JSON; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import vip.xiaonuo.dev.modular.dict.entity.DevDict; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import vip.xiaonuo.dev.modular.dict.param.DevDictListParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import vip.xiaonuo.dev.modular.dict.param.DevDictPageParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import vip.xiaonuo.dev.modular.dict.service.DevDictService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.net.URLEncoder; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.HashMap; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -54,7 +63,8 @@ public class QyRecordController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Resource 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private QyRecordService qyRecordService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Resource 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private DevDictService devDictService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 获取企业资质备案分页 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -111,6 +121,66 @@ public class QyRecordController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public void export(@RequestBody @Valid QyRecordPageParam qyRecordPageParam, HttpServletResponse response) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Page<QyRecord> page =  qyRecordService.page(qyRecordPageParam); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<QyRecord> records = page.getRecords(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (CollectionUtil.isNotEmpty(records)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            records.stream().forEach(item ->{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                DevDict devDict; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                String parentId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                //单据状态 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                String status = item.getStatus(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                parentId = "1808713764030787586"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                devDict = devDictService.getOne(new QueryWrapper<DevDict>().checkSqlInjection().lambda() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        .eq(DevDict::getParentId, parentId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        .eq(DevDict::getDictValue,status)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (devDict != null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    item.setStatus(devDict.getDictLabel()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                //申报类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                String applyType = item.getApplyType(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                parentId = "1808704091340812290"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                devDict = devDictService.getOne(new QueryWrapper<DevDict>().checkSqlInjection().lambda() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        .eq(DevDict::getParentId, parentId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        .eq(DevDict::getDictValue,applyType)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (devDict != null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    item.setApplyType(devDict.getDictLabel()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                //备案类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                String baType = item.getBaType(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                parentId = "1808704091340812290"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                devDict = devDictService.getOne(new QueryWrapper<DevDict>().checkSqlInjection().lambda() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        .eq(DevDict::getParentId, parentId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        .eq(DevDict::getDictValue,baType)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (devDict != null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    item.setBaType(devDict.getDictLabel()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                //资质类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                String zzType = item.getZzType(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                parentId = "1808701224940875777"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                devDict = devDictService.getOne(new QueryWrapper<DevDict>().checkSqlInjection().lambda() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        .eq(DevDict::getParentId, parentId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        .eq(DevDict::getDictValue,zzType)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (devDict != null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    item.setZzType(devDict.getDictLabel()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                //享惠类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                String applyXhType = item.getApplyXhType(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                parentId = "1808709469835243522"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                devDict = devDictService.getOne(new QueryWrapper<DevDict>().checkSqlInjection().lambda() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        .eq(DevDict::getParentId, parentId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        .eq(DevDict::getDictValue,applyXhType)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (devDict != null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    item.setApplyXhType(devDict.getDictLabel()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                //企业类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                String companyType = item.getCompanyType(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                parentId = "1808704761401847810"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                devDict = devDictService.getOne(new QueryWrapper<DevDict>().checkSqlInjection().lambda() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        .eq(DevDict::getParentId, parentId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        .eq(DevDict::getDictValue,companyType)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (devDict != null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    item.setCompanyType(devDict.getDictLabel()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         exportExcel(response,QyRecord.class,records,"企业资质备案"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |