| 
					
				 | 
			
			
				@@ -5,6 +5,7 @@ import com.doc.biz.service.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.doc.biz.vo.DocInfoVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.doc.biz.vo.DocumentVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.doc.chat.domain.ChatMsg; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.doc.chat.service.IChatMsgService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.doc.common.annotation.Log; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.doc.common.config.EsConfig; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.doc.common.core.controller.BaseController; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -53,7 +54,7 @@ public class DocInfoController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Resource 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private IDocShareService shareService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Resource 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    private ISysConfigService configService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private IChatMsgService msgService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Resource 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private IDocDirService dirService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -165,7 +166,6 @@ public class DocInfoController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public AjaxResult share(@ApiParam(value = "文件ID", required = true) @PathVariable(name = "docId") Long docId, @ApiParam(value = "分享人员", required = true) @RequestBody List<DocShare> shares) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         shareService.deleteDocShareByDocId(docId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        String content = configService.selectConfigByKey("msg.share.content"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         shares.forEach(s -> { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             s.setDocId(docId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ChatMsg msg = new ChatMsg(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -173,6 +173,7 @@ public class DocInfoController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             msg.setToId(s.getUserId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             msg.setContent(docId + ""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             msg.setFromId(SecurityUtils.getUserId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            msgService.send(msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             shareService.insertDocShare(s); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |