Browse Source

新增附件上传时间

Administrator 2 years ago
parent
commit
87bc34d22d

+ 26 - 1
ruoyi-system/src/main/java/com/ruoyi/system/domain/fgw/FgwFj.java

@@ -1,17 +1,20 @@
 package com.ruoyi.system.domain.fgw;
 
+import com.fasterxml.jackson.annotation.JsonFormat;
 import org.apache.commons.lang3.builder.ToStringBuilder;
 import org.apache.commons.lang3.builder.ToStringStyle;
 import com.ruoyi.common.annotation.Excel;
 import com.ruoyi.common.core.domain.BaseEntity;
 
+import java.util.Date;
+
 /**
  * 发改委_附件对象 fgw_fj
  * 
  * @author boman
  * @date 2023-03-22
  */
-public class FgwFj extends BaseEntity
+public class FgwFj
 {
     private static final long serialVersionUID = 1L;
 
@@ -46,6 +49,28 @@ public class FgwFj extends BaseEntity
      */
     private String isSh;
 
+    /** 创建时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    private Date createTime;
+
+    private String remark;
+
+    public String getRemark() {
+        return remark;
+    }
+
+    public void setRemark(String remark) {
+        this.remark = remark;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
     public String getIsSh() {
         return isSh;
     }

+ 5 - 2
ruoyi-system/src/main/resources/mapper/system/fgw/FgwFjMapper.xml

@@ -14,10 +14,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="type"    column="type"    />
         <result property="remark"    column="remark"    />
         <result property="isSh"    column="is_sh"    />
+        <result property="createTime"    column="create_time"    />
     </resultMap>
 
     <sql id="selectFgwFjVo">
-        select id, xm_id, xmbh,source_id, fj_name, path, type, remark,is_sh from fgw_fj
+        select id, xm_id, xmbh,source_id, fj_name, path, type, remark,is_sh,create_time from fgw_fj
     </sql>
 
     <select id="selectFgwFjList" parameterType="FgwFj" resultMap="FgwFjResult">
@@ -57,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="type != null">type,</if>
             <if test="remark != null">remark,</if>
             <if test="isSh != null and isSh != ''">is_sh,</if>
+            <if test="createTime != null ">create_time,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="xmId != null">#{xmId},</if>
@@ -67,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="type != null">#{type},</if>
             <if test="remark != null">#{remark},</if>
             <if test="isSh != null and isSh != ''">#{isSh},</if>
-
+            <if test="createTime != null">#{createTime},</if>
         </trim>
     </insert>
 
@@ -81,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="type != null">type = #{type},</if>
             <if test="remark != null">remark = #{remark},</if>
             <if test="isSh != null and isSh != ''">is_sh = #{isSh},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
         </trim>
         where id = #{id}
     </update>