<?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.BeautifyPhoneMapper">

    <select id="querySpBeautyIsExitBySpId" resultType="java.lang.Integer">
        select count(1) as phoneFormats from sms_sp_beauty_info where sp_id = #{spId}
    </select>

    <update id="updateSpBeautyInfoBySpId">
        update sms_sp_beauty_info set phone_formats = #{spBeauty} where sp_id = #{spId}
    </update>

    <insert id="insertSpBeautyInfo">
        insert into sms_sp_beauty_info (sp_id,phone_formats) value (#{spId},#{spBeauty})
    </insert>
</mapper>
