Commit 9f8ceb83 by 裴大威

fix bug

parent 3f09feae
......@@ -13,6 +13,8 @@
set_type,
rank,
keyword_id,
is_warehouse,
warehouse_id,
create_user,
create_time,
</trim>
......@@ -24,6 +26,8 @@
#{setType,jdbcType=TINYINT},
#{rank,jdbcType=TINYINT},
#{keywordId,jdbcType=BIGINT},
#{isWarehouse,jdbcType=TINYINT},
#{warehouseId,jdbcType=BIGINT},
#{createUser,jdbcType=BIGINT},
NOW(),
</trim>
......@@ -76,7 +80,9 @@
k.pic_url picUrl,
k.reply_type replyType,
k.serve_id serveId,
k.serve_type serveType
k.serve_type serveType,
bk.is_warehouse as isWarehouse,
bk.warehouse_id as warehouseId
FROM
book_keyword bk
JOIN
......@@ -99,6 +105,8 @@
SELECT
k.keywords,
k.id keywordId,
bk.is_warehouse as isWarehouse,
bk.warehouse_id as warehouseId,
k.guide
FROM
book_keyword bk
......@@ -121,6 +129,8 @@
k.description,
k.link_url linkUrl,
k.pic_url picUrl,
bk.is_warehouse as isWarehouse,
bk.warehouse_id as warehouseId,
k.reply_type replyType
FROM
book_keyword bk
......@@ -152,6 +162,10 @@
AND k.is_delete = 0
</select>
<update id="updateIsWarehouse" parameterType="long" >
update book_keyword set is_warehouse =1 where id = #{bookKeywordId}
</update>
<select id="getByBookKeyword" resultType="KeywordVO" parameterType="Long">
SELECT
k.id keywordId,
......@@ -167,6 +181,8 @@
pic_url picUrl,
reply_type replyType,
serve_id serveId,
bk.is_warehouse as isWarehouse,
bk.warehouse_id as warehouseId,
serve_type serveType
FROM
book_keyword bk
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment