Browse Source

添加收到的文件发送人员信息

wukai 2 years ago
parent
commit
033b96472e

+ 13 - 0
lzga-modules/lzga-doc/src/main/java/com/jjt/doc/domain/DocShare.java

@@ -62,6 +62,11 @@ public class DocShare extends BaseEntity {
      */
     @TableField(exist = false)
     private String docPath;
+    /**
+     * 创建人
+     */
+    @TableField(exist = false)
+    private String user;
 
     public String getDocType() {
         return docType;
@@ -71,6 +76,14 @@ public class DocShare extends BaseEntity {
         this.docType = docType;
     }
 
+    public String getUser() {
+        return user;
+    }
+
+    public void setUser(String user) {
+        this.user = user;
+    }
+
     public String getDocPath() {
         return docPath;
     }

+ 6 - 6
lzga-modules/lzga-doc/src/main/resources/mapper/doc/DocShareMapper.xml

@@ -61,13 +61,13 @@
         order by a.update_time desc
     </select>
     <select id="selectDocShareReceive" resultType="com.jjt.doc.domain.DocShare">
-        select a.*, b.doc_name, b.doc_type, b.doc_path
+        select a.*, b.doc_name, b.doc_type, b.doc_path, b.create_by user
         from (select t.*
-              from doc_share t,
-                   doc_share_accepter t1
-              where t.doc_id = t1.doc_id
-                and t1.user_id = #{uid}) a,
-             doc_info b
+            from doc_share t,
+            doc_share_accepter t1
+            where t.doc_id = t1.doc_id
+            and t1.user_id = #{uid}) a,
+            doc_info b
         where a.doc_id = b.doc_id
         order by a.update_time desc
     </select>