liurunyu
2024-04-23 8b7ce95e1f486603247f5cae882c4595e351af21
pms-parent/pms-global/src/main/resources/mapper/OthFileMapper.xml
@@ -10,10 +10,12 @@
    <result column="new_name" property="newName" />
    <result column="hash" property="hash" />
    <result column="file_path" property="filePath" />
    <result column="download_path" property="downloadPath" />
    <result column="dt" property="dt" />
  </resultMap>
  <sql id="Base_Column_List">
    <!--@mbg.generated-->
    id, org_name, ext_name, new_name, hash, file_path
    id, org_name, ext_name, new_name, hash, file_path, download_path, dt
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
    <!--@mbg.generated-->
@@ -29,8 +31,10 @@
  </delete>
  <insert id="insert" parameterType="com.dy.pmsGlobal.pojoOth.OthFile">
    <!--@mbg.generated-->
    insert into oth_file (id, org_name, ext_name, new_name, hash, file_path)
    values (#{id}, #{orgName}, #{extName}, #{newName}, #{hash}, #{filePath})
    insert into oth_file (id, org_name, ext_name, new_name, hash, file_path, download_path,
      dt)
    values (#{id}, #{orgName}, #{extName}, #{newName}, #{hash}, #{filePath}, #{downloadPath},
      #{dt})
  </insert>
  <insert id="insertSelective" parameterType="com.dy.pmsGlobal.pojoOth.OthFile">
    <!--@mbg.generated-->
@@ -54,6 +58,12 @@
      <if test="filePath != null">
        file_path,
      </if>
      <if test="downloadPath != null">
        download_path,
      </if>
      <if test="dt != null">
        dt,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
@@ -73,6 +83,12 @@
      </if>
      <if test="filePath != null">
        #{filePath},
      </if>
      <if test="downloadPath != null">
        #{downloadPath},
      </if>
      <if test="dt != null">
        #{dt},
      </if>
    </trim>
  </insert>
@@ -95,6 +111,12 @@
      <if test="filePath != null">
        file_path = #{filePath},
      </if>
      <if test="downloadPath != null">
        download_path = #{downloadPath},
      </if>
      <if test="dt != null">
        dt = #{dt},
      </if>
    </set>
    where id = #{id}
  </update>
@@ -105,7 +127,9 @@
      ext_name = #{extName},
      new_name = #{newName},
      hash = #{hash},
      file_path = #{filePath}
      file_path = #{filePath},
      download_path = #{downloadPath},
      dt = #{dt}
    where id = #{id}
  </update>
</mapper>