| 
					
				 | 
			
			
				@@ -11,16 +11,10 @@ import com.ozs.common.core.domain.entity.SysDept; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ozs.common.utils.AppendUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ozs.common.utils.StringUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ozs.common.utils.poi.ExcelUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.ozs.service.entity.BaseCameraManagement; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.ozs.service.entity.BaseRailwayManagement; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.ozs.service.entity.MsgAlarm; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.ozs.service.entity.MsgAlarmFrequency; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ozs.service.entity.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ozs.service.entity.vo.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ozs.service.mapper.MsgAlarmMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.ozs.service.service.BaseCameraManagementService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.ozs.service.service.BaseRailwayManagementService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.ozs.service.service.MsgAlarmFrequencyService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.ozs.service.service.MsgAlarmService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ozs.service.service.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiImplicitParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiImplicitParams; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiOperation; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -80,25 +74,19 @@ public class MsgAlarmController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     BaseRailwayManagementService baseRailwayManagementService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Value("${base.imgUrl:http://124.71.171.71:18801/picbucket}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private String imgUrl; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private MsgWebPushService msgWebPushService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     * 测试消息推送 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * web消息已读 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @PostMapping("/push") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PostMapping("/read") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiOperation(value = "预报警信息分页") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public AjaxResult insertDate(String[] args) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // 模拟需要推送的用户群 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ArrayList<String> ids = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ids.add("001"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ids.add("002"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ids.add("003"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ids.add("004"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ids.add("005"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        WebSocketService webSocketService = new WebSocketService(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        webSocketService.sendMsgToUsers(ids); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return AjaxResult.success("推送成功"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public AjaxResult read(@RequestBody MsgWebPush msgWebPush) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (StringUtils.isEmpty(msgWebPush) || StringUtils.isEmpty(msgWebPush.getId())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return AjaxResult.error("主键ID不能为空!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return toAjax(msgWebPushService.read(msgWebPush)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -320,7 +308,7 @@ public class MsgAlarmController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @ApiImplicitParam(paramType = "query", name = "alarmType", value = "灾害类型"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public void exportDataStatistic(HttpServletResponse response, @RequestBody AlarmStatisticResVo alarmStatisticResVo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        String userId = "1";//getUserId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        String userId = getUserId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if ("1".equals(userId)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             userId = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -349,7 +337,7 @@ public class MsgAlarmController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @ApiImplicitParam(paramType = "query", name = "alarmType", value = "灾害类型"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public void exportDataStatisticMonth(HttpServletResponse response, @RequestBody AlarmStatisticResVo alarmStatisticResVo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        String userId = "1";//getUserId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        String userId = getUserId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if ("1".equals(userId)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             userId = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 |