导航,附件,拦截器
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<result column="type" jdbcType="OTHER" property="type" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="value" jdbcType="VARCHAR" property="value" />
|
||||
<result column="updatetime" jdbcType="TIMESTAMP" property="updatetime" />
|
||||
<result column="updatetime" jdbcType="INTEGER" property="updatetime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, `type`, `name`, `value`, updatetime
|
||||
@@ -17,6 +17,13 @@
|
||||
from ln_config
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<select id="selectByName" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from ln_config
|
||||
where name = #{name,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from ln_config
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
@@ -25,7 +32,7 @@
|
||||
insert into ln_config (`type`, `name`, `value`,
|
||||
updatetime)
|
||||
values (#{type,jdbcType=OTHER}, #{name,jdbcType=VARCHAR}, #{value,jdbcType=VARCHAR},
|
||||
#{updatetime,jdbcType=TIMESTAMP})
|
||||
#{updatetime,jdbcType=INTEGER})
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.lovenav.entity.Config" useGeneratedKeys="true">
|
||||
insert into ln_config
|
||||
@@ -54,7 +61,7 @@
|
||||
#{value,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updatetime != null">
|
||||
#{updatetime,jdbcType=TIMESTAMP},
|
||||
#{updatetime,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
@@ -71,7 +78,7 @@
|
||||
`value` = #{value,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updatetime != null">
|
||||
updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
||||
updatetime = #{updatetime,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
@@ -81,7 +88,22 @@
|
||||
set `type` = #{type,jdbcType=OTHER},
|
||||
`name` = #{name,jdbcType=VARCHAR},
|
||||
`value` = #{value,jdbcType=VARCHAR},
|
||||
updatetime = #{updatetime,jdbcType=TIMESTAMP}
|
||||
updatetime = #{updatetime,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByName" parameterType="com.lovenav.entity.Config">
|
||||
update ln_config
|
||||
<set>
|
||||
<if test="type != null">
|
||||
`type` = #{type,jdbcType=OTHER},
|
||||
</if>
|
||||
<if test="value != null">
|
||||
`value` = #{value,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updatetime != null">
|
||||
updatetime = #{updatetime,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where name = #{name,jdbcType=VARCHAR}
|
||||
</update>
|
||||
</mapper>
|
Reference in New Issue
Block a user