insert into yt_app ( app_id, app_key, app_name, user_id, app_type, apk_url, qr_code, version_code, update_tips, store_on_sale, store_type, package_name, domain, category, sub_category, coppa, screen_orientation, ccpa, store_url, ditch_id, ditch_name, superior_id, revenue_display_rate, enabled ) values ( #{appId}, #{appKey}, #{appName}, #{userId}, #{appType}, #{apkUrl}, #{qrCode}, #{versionCode}, #{updateTips}, #{storeOnSale}, #{storeType}, #{packageName}, #{domain}, #{category}, #{subCategory}, #{coppa}, #{screenOrientation}, #{ccpa}, #{storeUrl}, #{ditchId}, #{ditchName}, #{superiorId}, #{revenueDisplayRate}, #{enabled} ) update yt_app app_key = #{appKey}, app_name = #{appName}, app_type = #{appType}, version_code = #{versionCode}, update_tips = #{updateTips}, enabled = #{enabled}, store_on_sale = #{storeOnSale}, store_type = #{storeType}, store_url = #{storeUrl}, package_name = #{packageName}, domain = #{domain}, category = #{category}, sub_category = #{subCategory}, coppa = #{coppa}, screen_orientation = #{screenOrientation}, ccpa = #{ccpa}, apk_url = #{apkUrl}, qr_code = #{qrCode}, ditch_id = #{ditchId}, ditch_name = #{ditchName}, revenue_display_rate = #{revenueDisplayRate}, superior_id = #{superiorId} where app_id = #{appId} update yt_app set enabled = 0 where app_id = #{appId} update yt_app set enabled = 0 where app_id in #{id} delete from yt_risk_config where config_id in ( select yt_risk_template_config.config_id from yt_risk_template_config left join yt_risk_template on yt_risk_template_config.template_id = yt_risk_template.template_id where yt_risk_template.app_id in #{appId} ); delete from yt_risk_template_config where template_id in ( select yt_risk_template.template_id from yt_risk_template where yt_risk_template.app_id in #{appId} ); delete from yt_cofig_app where app_id in #{appId}; delete from yt_risk_template where app_id in #{appId};