添加更多BT日志打印

修复!刷BT指令无效的BUG
BT下载支持过滤Enable字段
This commit is contained in:
yutou
2021-05-20 16:11:26 +08:00
parent 09d2163af3
commit 5cf6fc3cd5
6 changed files with 94 additions and 7 deletions

View File

@@ -8,6 +8,7 @@
<result column="author" jdbcType="VARCHAR" property="author" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="titleKey" jdbcType="VARCHAR" property="titlekey" />
<result column="enable" jdbcType="INTEGER" property="enable" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
@@ -68,7 +69,7 @@
</where>
</sql>
<sql id="Base_Column_List">
id, bid, categories, author, title, titleKey
id, bid, categories, author, title, titleKey, `enable`
</sql>
<select id="selectByExample" parameterType="com.yutou.nas.mybatis.model.BangumiItemExample" resultMap="BaseResultMap">
select
@@ -102,9 +103,11 @@
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yutou.nas.mybatis.model.BangumiItem" useGeneratedKeys="true">
insert into bangumi_item (bid, categories, author,
title, titleKey)
title, titleKey, `enable`
)
values (#{bid,jdbcType=VARCHAR}, #{categories,jdbcType=VARCHAR}, #{author,jdbcType=VARCHAR},
#{title,jdbcType=VARCHAR}, #{titlekey,jdbcType=VARCHAR})
#{title,jdbcType=VARCHAR}, #{titlekey,jdbcType=VARCHAR}, #{enable,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yutou.nas.mybatis.model.BangumiItem" useGeneratedKeys="true">
insert into bangumi_item
@@ -124,6 +127,9 @@
<if test="titlekey != null">
titleKey,
</if>
<if test="enable != null">
`enable`,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="bid != null">
@@ -141,6 +147,9 @@
<if test="titlekey != null">
#{titlekey,jdbcType=VARCHAR},
</if>
<if test="enable != null">
#{enable,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.yutou.nas.mybatis.model.BangumiItemExample" resultType="java.lang.Long">
@@ -170,6 +179,9 @@
<if test="record.titlekey != null">
titleKey = #{record.titlekey,jdbcType=VARCHAR},
</if>
<if test="record.enable != null">
`enable` = #{record.enable,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
@@ -182,7 +194,8 @@
categories = #{record.categories,jdbcType=VARCHAR},
author = #{record.author,jdbcType=VARCHAR},
title = #{record.title,jdbcType=VARCHAR},
titleKey = #{record.titlekey,jdbcType=VARCHAR}
titleKey = #{record.titlekey,jdbcType=VARCHAR},
`enable` = #{record.enable,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
@@ -205,6 +218,9 @@
<if test="titlekey != null">
titleKey = #{titlekey,jdbcType=VARCHAR},
</if>
<if test="enable != null">
`enable` = #{enable,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
@@ -214,7 +230,8 @@
categories = #{categories,jdbcType=VARCHAR},
author = #{author,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR},
titleKey = #{titlekey,jdbcType=VARCHAR}
titleKey = #{titlekey,jdbcType=VARCHAR},
`enable` = #{enable,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>