瀏覽代碼

11482-【CR】【投资系统】增加审批流程-文件资料信息-新加字段

hxy 1 月之前
父節點
當前提交
1b0dc3b8a4

+ 35 - 2
ruoyi-system/src/main/java/com/ruoyi/invest/domain/TProjectInformation.java

@@ -43,7 +43,8 @@ public class TProjectInformation extends BaseEntity
 
     /** 附件业务ID */
     private String fileBusinessId;
-
+    private String createBy;
+    private String fileId;
     /** 状态 */
     private String delFlag;
 
@@ -120,7 +121,26 @@ public class TProjectInformation extends BaseEntity
     {
         return fileBusinessId;
     }
-    public void setDelFlag(String delFlag) 
+
+    @Override
+    public String getCreateBy() {
+        return createBy;
+    }
+
+    @Override
+    public void setCreateBy(String createBy) {
+        this.createBy = createBy;
+    }
+
+    public String getFileId() {
+        return fileId;
+    }
+
+    public void setFileId(String fileId) {
+        this.fileId = fileId;
+    }
+
+    public void setDelFlag(String delFlag)
     {
         this.delFlag = delFlag;
     }
@@ -164,4 +184,17 @@ public class TProjectInformation extends BaseEntity
             .append("updateTime", getUpdateTime())
             .toString();
     }
+    public TProjectInformation(){
+
+    }
+    public TProjectInformation(String id,String fileName,String fileType,String projectPoolId,String projectStage,String fileBusinessId,String createBy,String fileId){
+        this.id=id;
+        this.fileName=fileName;
+        this.fileType=fileType;
+        this.projectPoolId=projectPoolId;
+        this.projectStage=projectStage;
+        this.fileBusinessId=fileBusinessId;
+        this.createBy=createBy;
+        this.fileId=fileId;
+    }
 }

+ 5 - 2
ruoyi-system/src/main/resources/mapper/invest/TProjectInformationMapper.xml

@@ -18,7 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="createTime"    column="create_time"    />
         <result property="updateBy"    column="update_by"    />
         <result property="updateTime"    column="update_time"    />
-
+        <result property="fileId"    column="file_id"    />
         <association property="tProjectPool" javaType="TProjectPool"  resultMap="TProjectPoolResult" />
     </resultMap>
 
@@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <sql id="selectTProjectInformationVo">
-        select a.id, a.file_name, a.file_type, a.project_pool_id, a.project_stage, a.meeting_code, a.file_business_id, a.del_flag, a.remark, a.create_by, a.create_time, a.update_by, a.update_time,
+        select a.id, a.file_name, a.file_type, a.project_pool_id, a.project_stage, a.meeting_code, a.file_business_id, a.del_flag, a.remark, a.create_by, a.create_time, a.update_by, a.update_time,a.file_id,
             b.project_name, b.project_stage, b.project_state
         from t_project_information a
             left join t_project_pool b ON a.project_pool_id = b.id
@@ -68,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="createTime != null">create_time,</if>
             <if test="updateBy != null">update_by,</if>
             <if test="updateTime != null">update_time,</if>
+            <if test="fileId != null">file_id,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="id != null">#{id},</if>
@@ -83,6 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="createTime != null">#{createTime},</if>
             <if test="updateBy != null">#{updateBy},</if>
             <if test="updateTime != null">#{updateTime},</if>
+            <if test="fileId != null">#{fileId},</if>
          </trim>
     </insert>
 
@@ -101,6 +103,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="createTime != null">create_time = #{createTime},</if>
             <if test="updateBy != null">update_by = #{updateBy},</if>
             <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="fileId != null">file_id = #{fileId},</if>
         </trim>
         where id = #{id}
     </update>