<?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="com.house365.ws.dao.mapper.MessageMapper">

    <resultMap id="infoMap" type="com.house365.beans.entity.MessageEntity">
        <result property="id" column="id" />
        <result property="customerStatus" column="customerStatus" />
        <result property="managerId" column="managerId" />
        <result property="phone" column="phone" />
        <result property="requestType" column="requestType" />
        <result property="createTime" column="create_time" />
        <result property="customerStatus" column="customerStatus" />
        <result property="managerPhone" column="managerPhone" />
        <result property="managerStatus" column="managerStatus" />
        <result property="sendNum" column="sendNum" />
    </resultMap>


    <insert id="saveMessageLog" parameterType="com.house365.beans.entity.MessageEntity">
        INSERT INTO zhimai_crm_message (
        managerId,
        phone,
        requestType,
        create_time,
        customerStatus,
        managerPhone,
        managerStatus,
        sendNum
        )
        VALUES (
        #{managerId},
        #{phone},
        #{requestType},
        #{createTime},
        #{customerStatus},
        #{managerPhone},
        #{managerStatus},
        #{sendNum}
        )
    </insert>
</mapper>
