INSERT INTO BOOK_APP ( BOOK_ID, APP_ID, CHANNEL_ID, CREATED_USER, CREATED_DATE ) VALUES ( #{bookId, jdbcType=BIGINT}, #{appId, jdbcType=BIGINT}, #{channelId, jdbcType=BIGINT}, #{createdUser, jdbcType=BIGINT}, NOW() )
INSERT INTO BOOK_APP ( BOOK_ID, APP_ID, CHANNEL_ID, CREATED_USER, CREATED_DATE ) VALUES (#{item.bookId,jdbcType=BIGINT}, #{item.appId,jdbcType=BIGINT}, #{item.channelId,jdbcType=BIGINT}, #{item.createdUser,jdbcType=BIGINT}, NOW())
DELETE FROM BOOK_APP WHERE BOOK_APP_ID = #{bookAppId, jdbcType=BIGINT}
DELETE FROM BOOK_APP WHERE BOOK_ID = #{bookId, jdbcType=BIGINT}
DELETE FROM BOOK_APP WHERE APP_ID = #{appId, jdbcType=BIGINT} AND CREATED_USER = #{adviserId, jdbcType=BIGINT} AND CHANNEL_ID = #{channelId, jdbcType=BIGINT}
DELETE FROM BOOK_APP WHERE BOOK_ID IN ${item}
SELECT BOOK_APP_ID, BOOK_ID, APP_ID, CHANNEL_ID FROM BOOK_APP WHERE BOOK_ID = #{bookId, jdbcType=BIGINT} AND CHANNEL_ID = #{channelId, jdbcType=BIGINT} AND CREATED_USER = #{createdUser, jdbcType=BIGINT} AND IS_DELETE = 0
SELECT BOOK_APP_ID, BOOK_ID, APP_ID, CHANNEL_ID, CREATED_USER FROM BOOK_APP WHERE BOOK_APP_ID = #{_parameter}
SELECT BOOK_APP_ID, BOOK_ID, b.APP_ID, b.CHANNEL_ID,a.TITLE,SQUARE_IMG,TRANSVERSE_IMG,T.TYPE_CODE,T.TYPE_NAME,a.REMARK FROM BOOK_APP b LEFT JOIN APP a ON b.APP_ID = A.APP_ID LEFT JOIN APP_TYPE T ON T.TYPE_CODE = a.TYPE_CODE WHERE BOOK_ID = #{bookId, jdbcType=BIGINT} AND b.CHANNEL_ID = #{channelId, jdbcType=BIGINT} AND b.CREATED_USER = #{createdUser, jdbcType=BIGINT} AND b.IS_DELETE = 0
DELETE FROM BOOK_APP WHERE BOOK_ID = #{bookId, jdbcType=BIGINT} AND CHANNEL_ID = #{channelId, jdbcType=BIGINT}
SELECT COUNT(1) FROM BOOK_APP WHERE BOOK_ID = #{bookId, jdbcType=BIGINT} AND CHANNEL_ID = #{channelId, jdbcType=BIGINT} AND CREATED_USER = #{adviserId, jdbcType=BIGINT} AND IS_DELETE = 0
UPDATE BOOK_APP SET IS_DELETE = #{status, jdbcType=BIGINT} WHERE BOOK_ID = #{bookId, jdbcType=BIGINT} AND CHANNEL_ID = #{channelId, jdbcType=BIGINT} AND CREATED_USER = #{adviserId, jdbcType=BIGINT}