<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.roadm.admin.mapper.AuditMasterMapper">
    <insert id="insertAuditMasterPlate" useGeneratedKeys="true" keyProperty="id">
        insert into sms_masterplate
        (CONTENT, SP_ID, api_valid, platform_valid, starttime, `type`, endtime, createtime)
        values (#{content,jdbcType=VARCHAR}, #{sp_id}, #{api_valid}, #{platform_valid}, #{starttime}, #{type},
                #{endtime}, NOW())
    </insert>

    <insert id="insertSensitiveWord" useGeneratedKeys="true" keyProperty="id">
        insert into sms_sensitive_word
        (CONTENT, CREATEID, ISMOBILE, ISUNICOM, ISTELCOM, TYPE, SPID, create_time, strategy, remark)
        values (#{content,jdbcType=VARCHAR}, #{createId}, #{isMobile}, #{isUnicom}, #{isTelcom}, #{type}, #{spid},
                sysdate(), #{strategy}, #{remark})
    </insert>

    <insert id="addApiAuditChannelTemplate">
        insert into sms_template_local(content,createtime,title,`desc`,example) values(#{content},now(),#{title}, null, null)
    </insert>
</mapper>
