SCENE_ERP_ID, MATERIAL_LIB_ID, SCENE_NAME, DESCRIPTION,SCENE_CODE,ADVISER_BOOK_ID,QRCODE_URL,IS_DELETE, IS_DELETE_RECYCLE_BIN,PURPOSE_TYPE,CHANNEL_PARTY_ID,ACCOUNT_SETTING_ID,CREATED_BY_USER_LOGIN, CREATED_USER_ROLE,VERSION,IS_HAVE_PROVINCE,CLIENT_CODE,AUDIT_STATE, location_page_num, LOCATION_ID, pro_label_id, dep_label_id, pur_label_id
SELECT FROM QRCODE_SCENE_ERP WHERE book_id = #{bookId}
INSERT INTO qrcode_scene_erp( SCENE_CODE, BOOK_ID,ADVISER_BOOK_ID,BOOK_NAME,SCENE_NAME,QRCODE_URL,DESCRIPTION, CHANNEL_PARTY_ID, ACCOUNT_SETTING_ID, URL, ADVISER_ID, PURPOSE_TYPE, QRCODE_TYPE, TEMPLET_ID, CLIENT_CODE, CREATED_BY_USER_LOGIN, CREATED_DATE, VERSION, is_open_app, location_page_num, LOCATION_ID, pro_label_id, dep_label_id, pur_label_id ) VALUES ( #{sceneCode, jdbcType=VARCHAR}, #{bookId, jdbcType=BIGINT}, #{adviserBookId, jdbcType=BIGINT},#{bookName, jdbcType=VARCHAR},#{sceneName, jdbcType=VARCHAR}, #{qrcodeUrl, jdbcType=VARCHAR}, #{description, jdbcType=VARCHAR}, #{channelPartyId, jdbcType=BIGINT}, #{accountSettingId, jdbcType=BIGINT},#{url, jdbcType=VARCHAR},#{adviserId, jdbcType=BIGINT},#{purposeType, jdbcType=VARCHAR},#{qrcodeType, jdbcType=VARCHAR}, #{templetId, jdbcType=BIGINT}, #{clientCode, jdbcType=BOOLEAN}, #{createdByUserLogin, jdbcType=BIGINT},NOW(),1, #{isOpenApp, jdbcType=BOOLEAN}, #{locationPageNum}, #{locationId}, #{proLabelId}, #{depLabelId}, #{purLabelId} )