| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <?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.fs.company.mapper.CompanyVoiceRoboticCallLogCallphoneMapper">
-
- <resultMap type="CompanyVoiceRoboticCallLogCallphone" id="CompanyVoiceRoboticCallLogCallphoneResult">
- <result property="logId" column="log_id" />
- <result property="roboticId" column="robotic_id" />
- <result property="callerId" column="caller_id" />
- <result property="runTime" column="run_time" />
- <result property="runParam" column="run_param" />
- <result property="result" column="result" />
- <result property="status" column="status" />
- <result property="createTime" column="create_time" />
- <result property="recordPath" column="record_path" />
- <result property="contentList" column="content_list" />
- <result property="callerNum" column="caller_num" />
- <result property="calleeNum" column="callee_num" />
- <result property="uuid" column="uuid" />
- <result property="callCreateTime" column="call_create_time" />
- <result property="callAnswerTime" column="call_answer_time" />
- <result property="intention" column="intention" />
- <result property="companyId" column="company_id" />
- <result property="companyUserId" column="company_user_id" />
- <result property="callTime" column="call_time" />
- <result property="cost" column="cost" />
- </resultMap>
- <sql id="selectCompanyVoiceRoboticCallLogCallphoneVo">
- select log_id, robotic_id, caller_id, run_time, run_param, result, status, create_time, record_path, content_list, caller_num, callee_num, uuid, call_create_time, call_answer_time, intention, company_id, company_user_id, call_time, cost from company_voice_robotic_call_log_callphone
- </sql>
- <select id="selectCompanyVoiceRoboticCallLogCallphoneList" parameterType="CompanyVoiceRoboticCallLogCallphone" resultMap="CompanyVoiceRoboticCallLogCallphoneResult">
- <include refid="selectCompanyVoiceRoboticCallLogCallphoneVo"/>
- <where>
- <if test="roboticId != null "> and robotic_id = #{roboticId}</if>
- <if test="callerId != null "> and caller_id = #{callerId}</if>
- <if test="runTime != null "> and run_time = #{runTime}</if>
- <if test="runParam != null and runParam != ''"> and run_param = #{runParam}</if>
- <if test="result != null and result != ''"> and result = #{result}</if>
- <if test="status != null "> and status = #{status}</if>
- <if test="recordPath != null and recordPath != ''"> and record_path = #{recordPath}</if>
- <if test="contentList != null and contentList != ''"> and content_list = #{contentList}</if>
- <if test="callerNum != null and callerNum != ''"> and caller_num = #{callerNum}</if>
- <if test="calleeNum != null and calleeNum != ''"> and callee_num = #{calleeNum}</if>
- <if test="uuid != null and uuid != ''"> and uuid = #{uuid}</if>
- <if test="callCreateTime != null "> and call_create_time = #{callCreateTime}</if>
- <if test="callAnswerTime != null "> and call_answer_time = #{callAnswerTime}</if>
- <if test="intention != null and intention != ''"> and intention = #{intention}</if>
- <if test="companyId != null "> and company_id = #{companyId}</if>
- <if test="companyUserId != null "> and company_user_id = #{companyUserId}</if>
- <if test="callTime != null "> and call_time = #{callTime}</if>
- <if test="cost != null "> and cost = #{cost}</if>
- </where>
- </select>
-
- <select id="selectCompanyVoiceRoboticCallLogCallphoneByLogId" parameterType="Long" resultMap="CompanyVoiceRoboticCallLogCallphoneResult">
- <include refid="selectCompanyVoiceRoboticCallLogCallphoneVo"/>
- where log_id = #{logId}
- </select>
-
- <insert id="insertCompanyVoiceRoboticCallLogCallphone" parameterType="CompanyVoiceRoboticCallLogCallphone" useGeneratedKeys="true" keyProperty="logId">
- insert into company_voice_robotic_call_log_callphone
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="roboticId != null">robotic_id,</if>
- <if test="callerId != null">caller_id,</if>
- <if test="runTime != null">run_time,</if>
- <if test="runParam != null">run_param,</if>
- <if test="result != null">result,</if>
- <if test="status != null">status,</if>
- <if test="createTime != null">create_time,</if>
- <if test="recordPath != null">record_path,</if>
- <if test="contentList != null">content_list,</if>
- <if test="callerNum != null">caller_num,</if>
- <if test="calleeNum != null">callee_num,</if>
- <if test="uuid != null">uuid,</if>
- <if test="callCreateTime != null">call_create_time,</if>
- <if test="callAnswerTime != null">call_answer_time,</if>
- <if test="intention != null">intention,</if>
- <if test="companyId != null">company_id,</if>
- <if test="companyUserId != null">company_user_id,</if>
- <if test="callTime != null">call_time,</if>
- <if test="cost != null">cost,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="roboticId != null">#{roboticId},</if>
- <if test="callerId != null">#{callerId},</if>
- <if test="runTime != null">#{runTime},</if>
- <if test="runParam != null">#{runParam},</if>
- <if test="result != null">#{result},</if>
- <if test="status != null">#{status},</if>
- <if test="createTime != null">#{createTime},</if>
- <if test="recordPath != null">#{recordPath},</if>
- <if test="contentList != null">#{contentList},</if>
- <if test="callerNum != null">#{callerNum},</if>
- <if test="calleeNum != null">#{calleeNum},</if>
- <if test="uuid != null">#{uuid},</if>
- <if test="callCreateTime != null">#{callCreateTime},</if>
- <if test="callAnswerTime != null">#{callAnswerTime},</if>
- <if test="intention != null">#{intention},</if>
- <if test="companyId != null">#{companyId},</if>
- <if test="companyUserId != null">#{companyUserId},</if>
- <if test="callTime != null">#{callTime},</if>
- <if test="cost != null">#{cost},</if>
- </trim>
- </insert>
- <update id="updateCompanyVoiceRoboticCallLogCallphone" parameterType="CompanyVoiceRoboticCallLogCallphone">
- update company_voice_robotic_call_log_callphone
- <trim prefix="SET" suffixOverrides=",">
- <if test="roboticId != null">robotic_id = #{roboticId},</if>
- <if test="callerId != null">caller_id = #{callerId},</if>
- <if test="runTime != null">run_time = #{runTime},</if>
- <if test="runParam != null">run_param = #{runParam},</if>
- <if test="result != null">result = #{result},</if>
- <if test="status != null">status = #{status},</if>
- <if test="createTime != null">create_time = #{createTime},</if>
- <if test="recordPath != null">record_path = #{recordPath},</if>
- <if test="contentList != null">content_list = #{contentList},</if>
- <if test="callerNum != null">caller_num = #{callerNum},</if>
- <if test="calleeNum != null">callee_num = #{calleeNum},</if>
- <if test="uuid != null">uuid = #{uuid},</if>
- <if test="callCreateTime != null">call_create_time = #{callCreateTime},</if>
- <if test="callAnswerTime != null">call_answer_time = #{callAnswerTime},</if>
- <if test="intention != null">intention = #{intention},</if>
- <if test="companyId != null">company_id = #{companyId},</if>
- <if test="companyUserId != null">company_user_id = #{companyUserId},</if>
- <if test="callTime != null">call_time = #{callTime},</if>
- <if test="cost != null">cost = #{cost},</if>
- </trim>
- where log_id = #{logId}
- </update>
- <delete id="deleteCompanyVoiceRoboticCallLogCallphoneByLogId" parameterType="Long">
- delete from company_voice_robotic_call_log_callphone where log_id = #{logId}
- </delete>
- <delete id="deleteCompanyVoiceRoboticCallLogCallphoneByLogIds" parameterType="String">
- delete from company_voice_robotic_call_log_callphone where log_id in
- <foreach item="logId" collection="array" open="(" separator="," close=")">
- #{logId}
- </foreach>
- </delete>
- <select id="selectNoResultLogByCallees" parameterType="com.fs.company.domain.CompanyVoiceRoboticCallees" resultType="CompanyVoiceRoboticCallLogCallphone">
- select * from company_voice_robotic_call_log_callphone where robotic_id = #{roboticId} And caller_id = #{id} And status = 1
- </select>
- <select id="selectLogByRoboticIdAndCallerId" resultType="CompanyVoiceRoboticCallLogCallphone">
- select * from company_voice_robotic_call_log_callphone where robotic_id = #{roboticId} And caller_id = #{callerId}
- </select>
- </mapper>
|