INSERT INTO BOOK_RESOURCE ( BOOK_ID, RESOURCE_ID,RESOURCE_TYPE, CHANNEL_ID, CREATED_USER, CREATED_DATE ) VALUES ( #{bookId, jdbcType=BIGINT}, #{resourceId, jdbcType=BIGINT}, #{resourceType, jdbcType=VARCHAR}, #{channelId, jdbcType=BIGINT}, #{createdUser, jdbcType=BIGINT}, NOW() )
DELETE FROM BOOK_RESOURCE WHERE BOOK_RESOURCE_ID = #{bookResourceId, jdbcType=BIGINT}
DELETE FROM BOOK_RESOURCE WHERE BOOK_ID = #{bookId, jdbcType=BIGINT}
DELETE FROM BOOK_RESOURCE WHERE BOOK_ID IN ${item}
SELECT BOOK_RESOURCE_ID, BOOK_ID, RESOURCE_ID, CHANNEL_ID,RESOURCE_TYPE FROM BOOK_RESOURCE WHERE BOOK_ID = #{bookId, jdbcType=BIGINT} AND CHANNEL_ID = #{channelId, jdbcType=BIGINT} AND CREATED_USER = #{createdUser, jdbcType=BIGINT}
DELETE FROM BOOK_RESOURCE WHERE BOOK_ID = #{bookId, jdbcType=BIGINT} AND CHANNEL_ID = #{channelId, jdbcType=BIGINT}
SELECT BOOK_RESOURCE_ID, BOOK_ID, RESOURCE_ID, CHANNEL_ID, CREATED_USER,RESOURCE_TYPE FROM BOOK_RESOURCE WHERE BOOK_RESOURCE_ID = #{_parameter, jdbcType=BIGINT}
SELECT BOOK_RESOURCE_ID, BOOK_ID, RESOURCE_ID,RESOURCE_TYPE, CHANNEL_ID, CREATED_USER FROM BOOK_RESOURCE WHERE RESOURCE_ID = #{_parameter, jdbcType=BIGINT}
SELECT COUNT(1) FROM BOOK_RESOURCE WHERE BOOK_ID = #{bookId, jdbcType=BIGINT} AND CHANNEL_ID = #{channelId, jdbcType=BIGINT} AND CREATED_USER = #{adviserId, jdbcType=BIGINT}
SELECT DISTINCT BOOK_ID FROM BOOK_RESOURCE WHERE RESOURCE_ID = #{_parameter, jdbcType=BIGINT}