insert into yt_risk_config ( config_id, field_name, field_desc, config_type, config_val, multy, channel_id ) values ( #{item.configId}, #{item.fieldName}, #{item.fieldDesc}, #{item.configType}, #{item.configVal}, #{item.multy}, #{item.channelId} ) insert into yt_risk_template ( template_id, template_name, template_content, template_code, effect_node, channel_id, all_satisfy, app_id, create_time, create_user_id, enabled ) values ( #{templateId}, #{templateName}, #{templateContent}, #{templateCode}, #{effectNode}, #{channelId}, #{allSatisfy}, #{appId}, #{createTime}, #{createUserId}, #{enabled} ); insert into yt_risk_template_config ( template_id, config_id, operator, operator_time, operator_name ) values ( #{templateId}, #{item}, #{operator}, now(), #{operatorName} ) update yt_risk_template template_name = #{templateName}, template_content = #{templateContent}, template_code = #{templateCode}, channel_id = #{channelId}, effect_node = #{effectNode}, app_id = #{appId}, update_time = #{updateTime}, update_user_id = #{updateUserId}, enabled = #{enabled}, where template_id = #{templateId} update yt_risk_config set config_val = #{configVal} where config_id = #{configId}