| 
					
				 | 
			
			
				@@ -39,10 +39,14 @@ public class ContentPlatformNoticeServiceImpl implements ContentPlatformNoticeSe 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (ContentPlatformIllegalMsg item : list) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             NoticeItemVO vo = new NoticeItemVO(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             vo.setId(item.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            String title = "视频“" + item.getTitle() + "”被封禁,请及时替换"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            String videoTitle = item.getTitle(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (videoTitle.length() >= 20) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                videoTitle = videoTitle.substring(0, 19) + "..."; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            String title = "视频“" + videoTitle + "”被封禁,请及时替换"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             vo.setTitle(title); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             String msg = "您在" + item.getBusinessType() + "栏目中使用的视频“" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    item.getTitle() + "”(视频ID:" + item.getVideoId() + ")被微信封禁,请及时替换为其他视频。"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    videoTitle + "”(视频ID:" + item.getVideoId() + ")被微信封禁,请及时替换为其他视频。"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             vo.setMsg(msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             vo.setStatus(item.getStatus()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             vo.setCreateTimestamp(item.getCreateTimestamp()); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -68,4 +72,15 @@ public class ContentPlatformNoticeServiceImpl implements ContentPlatformNoticeSe 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         illegalMsg.setUpdateTimestamp(System.currentTimeMillis()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         msgMapper.updateByPrimaryKeySelective(illegalMsg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public void noticeReadAll() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ContentPlatformAccount loginAccount = LoginUserContext.getUser(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ContentPlatformIllegalMsgExample example = new ContentPlatformIllegalMsgExample(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        example.createCriteria().andAccountIdEqualTo(loginAccount.getId()).andStatusEqualTo(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ContentPlatformIllegalMsg record = new ContentPlatformIllegalMsg(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        record.setStatus(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        record.setUpdateTimestamp(System.currentTimeMillis()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        msgMapper.updateByExampleSelective(record, example); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |