URL访问量,用户地址,日志登录,附件上传,下载,配置文件上传
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<result column="width" jdbcType="DOUBLE" property="width" />
|
||||
<result column="height" jdbcType="DOUBLE" property="height" />
|
||||
<result column="storage" jdbcType="OTHER" property="storage" />
|
||||
<result column="createtime" jdbcType="INTEGER" property="createtime" />
|
||||
<result column="createtime" jdbcType="TIMESTAMP" property="createtime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, `path`, suffix, file_name, `size`, md5, width, height, `storage`, createtime
|
||||
@@ -32,9 +32,9 @@
|
||||
`storage`, createtime)
|
||||
values (#{path,jdbcType=VARCHAR}, #{suffix,jdbcType=VARCHAR}, #{fileName,jdbcType=VARCHAR},
|
||||
#{size,jdbcType=DOUBLE}, #{md5,jdbcType=VARCHAR}, #{width,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE},
|
||||
#{storage,jdbcType=OTHER}, #{createtime,jdbcType=INTEGER})
|
||||
#{storage,jdbcType=OTHER}, #{createtime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.lovenav.entity.Attachment" useGeneratedKeys="true">
|
||||
<insert id="insertSelective" keyProperty="id" parameterType="com.lovenav.entity.Attachment" useGeneratedKeys="true">
|
||||
insert into ln_attachment
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="path != null">
|
||||
@@ -91,7 +91,7 @@
|
||||
#{storage,jdbcType=OTHER},
|
||||
</if>
|
||||
<if test="createtime != null">
|
||||
#{createtime,jdbcType=INTEGER},
|
||||
#{createtime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
@@ -123,7 +123,7 @@
|
||||
`storage` = #{storage,jdbcType=OTHER},
|
||||
</if>
|
||||
<if test="createtime != null">
|
||||
createtime = #{createtime,jdbcType=INTEGER},
|
||||
createtime = #{createtime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
@@ -138,9 +138,7 @@
|
||||
width = #{width,jdbcType=DOUBLE},
|
||||
height = #{height,jdbcType=DOUBLE},
|
||||
`storage` = #{storage,jdbcType=OTHER},
|
||||
createtime = #{createtime,jdbcType=INTEGER}
|
||||
createtime = #{createtime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user