mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-10-02 22:15:15 +08:00
删除书籍前取消书籍与文件的关联
This commit is contained in:
@@ -237,4 +237,9 @@
|
||||
<select id="getLastInsertId" resultType="java.lang.Integer">
|
||||
SELECT LAST_INSERT_ID();
|
||||
</select>
|
||||
<update id="unbindBook" parameterType="java.lang.Integer">
|
||||
update file_info
|
||||
set book_id = 0
|
||||
where book_id = #{bookId,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
Reference in New Issue
Block a user