|  |  | @ -1,10 +1,15 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | package com.ruoyi.web.controller.system.count; |  |  |  | package com.ruoyi.web.controller.system.count; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.alibaba.fastjson.JSONObject; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.ruoyi.common.core.controller.BaseController; |  |  |  | import com.ruoyi.common.core.controller.BaseController; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.ruoyi.common.core.domain.AjaxResult; |  |  |  | import com.ruoyi.common.core.domain.AjaxResult; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.ruoyi.common.core.domain.entity.SysDept; |  |  |  | import com.ruoyi.common.core.domain.entity.SysDept; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.ruoyi.common.core.domain.entity.SysUser; |  |  |  | import com.ruoyi.common.core.domain.entity.SysUser; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.ruoyi.common.core.page.TableDataInfo; |  |  |  | import com.ruoyi.common.core.page.TableDataInfo; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.ruoyi.system.domain.count.CheckResultCountDTO; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.ruoyi.system.domain.count.CheckTypeCountDTO; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.ruoyi.system.domain.count.PropertyDesCountDTO; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.ruoyi.system.domain.count.PropertyStateCountDTO; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.ruoyi.system.service.ITdCheckService; |  |  |  | import com.ruoyi.system.service.ITdCheckService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.ruoyi.system.service.ITdNotifyService; |  |  |  | import com.ruoyi.system.service.ITdNotifyService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import io.swagger.annotations.ApiOperation; |  |  |  | import io.swagger.annotations.ApiOperation; | 
			
		
	
	
		
		
			
				
					|  |  | @ -17,7 +22,10 @@ import org.springframework.web.bind.annotation.RequestMapping; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.springframework.web.bind.annotation.ResponseBody; |  |  |  | import org.springframework.web.bind.annotation.ResponseBody; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | import java.util.ArrayList; |  |  |  | import java.util.ArrayList; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import java.util.Arrays; | 
			
		
	
		
		
			
				
					
					|  |  |  | import java.util.List; |  |  |  | import java.util.List; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import java.util.concurrent.atomic.AtomicReference; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import java.util.stream.Collectors; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | /** |  |  |  | /** | 
			
		
	
		
		
			
				
					
					|  |  |  |  * 涉密检查统计 |  |  |  |  * 涉密检查统计 | 
			
		
	
	
		
		
			
				
					|  |  | @ -39,8 +47,6 @@ public class TdChecknumController extends BaseController{ | 
			
		
	
		
		
			
				
					
					|  |  |  |         return prefix + "/checknum"; |  |  |  |         return prefix + "/checknum"; | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     @ApiOperation("检查通知统计") |  |  |  |     @ApiOperation("检查通知统计") | 
			
		
	
		
		
			
				
					
					|  |  |  |     @PostMapping("/countNotifyList") |  |  |  |     @PostMapping("/countNotifyList") | 
			
		
	
		
		
			
				
					
					|  |  |  |     @ResponseBody |  |  |  |     @ResponseBody | 
			
		
	
	
		
		
			
				
					|  |  | @ -48,7 +54,62 @@ public class TdChecknumController extends BaseController{ | 
			
		
	
		
		
			
				
					
					|  |  |  |         return AjaxResult.success(tdNotifyService.selectCountNotifyList()); |  |  |  |         return AjaxResult.success(tdNotifyService.selectCountNotifyList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private List<String> checkResult = Arrays.asList("通过", "未通过","待检查"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private List<String> checkType = Arrays.asList("自行检查", "保密局检查"); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     /** | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      * | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      *  检查结果统计 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      * @return com.ruoyi.common.core.domain.AjaxResult | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      */ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     @PostMapping("/countResult") | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     @ResponseBody | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     public AjaxResult countbf() { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         CheckResultCountDTO checkResultCountDTO = tdCheckService.selectResultCount(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         List<JSONObject> datas = checkResult.stream() | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .map(name -> { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     AtomicReference<Object> value = new AtomicReference<>(0L); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     if("通过".equals(name)){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         value.set(checkResultCountDTO.getTg()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     }else if("未通过".equals(name)){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         value.set(checkResultCountDTO.getWtg()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     }else{ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         value.set(checkResultCountDTO.getDjc()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     JSONObject jsonObject = new JSONObject(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     jsonObject.put("value", value.get()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     jsonObject.put("name", name); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     return jsonObject; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .collect(Collectors.toList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         return AjaxResult.success(datas); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     /** | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      * | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      *  检查类型统计 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      * @return com.ruoyi.common.core.domain.AjaxResult | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      */ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     @PostMapping("/countType") | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     @ResponseBody | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     public AjaxResult countXH() { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         CheckTypeCountDTO checkTypeCountDTO = tdCheckService.selectTypeCount(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         List<JSONObject> datas = checkType.stream() | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .map(name -> { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     AtomicReference<Object> value = new AtomicReference<>(0L); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     if("自行检查".equals(name)){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         value.set(checkTypeCountDTO.getZxjc()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     }else{ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         value.set(checkTypeCountDTO.getBmjjc()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     JSONObject jsonObject = new JSONObject(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     jsonObject.put("value", value.get()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     jsonObject.put("name", name); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     return jsonObject; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .collect(Collectors.toList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         return AjaxResult.success(datas); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |