| 
					
				 | 
			
			
				@@ -1,6 +1,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.pm.web.controller.system; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.pm.common.config.PageData; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.pm.system.service.ISysMenuService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.messaging.simp.SimpMessagingTemplate; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.security.access.prepost.PreAuthorize; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -71,6 +74,8 @@ public class SysNoticeController extends BaseController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return toAjax(noticeService.insertNotice(notice)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private ISysMenuService menuService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 修改通知公告 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -80,6 +85,11 @@ public class SysNoticeController extends BaseController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public AjaxResult edit(@Validated @RequestBody SysNotice notice) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         notice.setUpdateBy(getUsername()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        messagingTemplate.convertAndSend("/topic/update", notice); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        PageData pd = new PageData(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        pd.put("noticeId", notice.getNoticeId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        pd.put("userId", getUserId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        menuService.listNoticeReadDel(pd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return toAjax(noticeService.updateNotice(notice)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -91,6 +101,7 @@ public class SysNoticeController extends BaseController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @DeleteMapping("/{noticeIds}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public AjaxResult remove(@PathVariable Long[] noticeIds) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        messagingTemplate.convertAndSend("/topic/del", noticeIds); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return toAjax(noticeService.deleteNoticeByIds(noticeIds)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |