liusheng
2025-04-10 1967693c5d760ade002f8a5fbea10b51aef5693f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<?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.smartor.mapper.IvrTaskcallrecordMapper">
 
    <resultMap type="com.smartor.domain.IvrTaskcallrecord" id="IvrTaskcallrecordResult">
        <result property="uuid" column="uuid"/>
        <result property="displayno" column="displayno"/>
        <result property="phone" column="phone"/>
        <result property="taskid" column="taskid"/>
        <result property="extension" column="extension"/>
        <result property="inbound" column="inbound"/>
        <result property="direct" column="direct"/>
        <result property="answered" column="answered"/>
        <result property="assignTime" column="assign_time"/>
        <result property="startTime" column="start_time"/>
        <result property="answerTime" column="answer_time"/>
        <result property="hangupTime" column="hangup_time"/>
        <result property="endTime" column="end_time"/>
        <result property="recordPath" column="record_path"/>
        <result property="recordUrl" column="record_url"/>
        <result property="hangupSipcode" column="hangup_sipcode"/>
        <result property="hangupCause" column="hangup_cause"/>
        <result property="transfered" column="transfered"/>
        <result property="transUuid" column="trans_uuid"/>
        <result property="transPhone" column="trans_phone"/>
        <result property="transAnswered" column="trans_answered"/>
        <result property="transStartTime" column="trans_start_time"/>
        <result property="transAnswerTime" column="trans_answer_time"/>
        <result property="earlyAsrtext" column="early_asrtext"/>
        <result property="earlyPath" column="early_path"/>
        <result property="earlyUrl" column="early_url"/>
        <result property="delFlag" column="del_flag"/>
        <result property="updateBy" column="update_by"/>
        <result property="updateTime" column="update_time"/>
        <result property="createBy" column="create_by"/>
        <result property="createTime" column="create_time"/>
        <result property="isupload" column="isupload"/>
        <result property="uploadTime" column="upload_time"/>
        <result property="orgid" column="orgid"/>
        <result property="guid" column="guid"/>
    </resultMap>
 
    <sql id="selectIvrTaskcallrecordVo">
        select uuid,
               displayno,
               phone,
               taskid,
               guid,
               extension,
               inbound,
               direct,
               answered,
               assign_time,
               start_time,
               answer_time,
               hangup_time,
               end_time,
               record_path,
               record_url,
               hangup_sipcode,
               hangup_cause,
               transfered,
               trans_uuid,
               trans_phone,
               trans_answered,
               trans_start_time,
               trans_answer_time,
               early_asrtext,
               early_path,
               early_url,
               del_flag,
               update_by,
               update_time,
               create_by,
               create_time,
               isupload,
               upload_time,
               orgid
        from ivr_taskcallrecord
    </sql>
 
    <select id="selectIvrTaskcallrecordList" parameterType="com.smartor.domain.IvrTaskcallrecord"
            resultMap="IvrTaskcallrecordResult">
        <include refid="selectIvrTaskcallrecordVo"/>
        <where>
            <if test="displayno != null  and displayno != ''">and displayno = #{displayno}</if>
            <if test="phone != null  and phone != ''">and phone = #{phone}</if>
            <if test="taskid != null  and taskid != ''">and taskid = #{taskid}</if>
            <if test="extension != null  and extension != ''">and extension = #{extension}</if>
            <if test="inbound != null ">and inbound = #{inbound}</if>
            <if test="direct != null ">and direct = #{direct}</if>
            <if test="answered != null ">and answered = #{answered}</if>
            <if test="assignTime != null ">and assign_time = #{assignTime}</if>
            <if test="startTime != null ">and start_time = #{startTime}</if>
            <if test="answerTime != null ">and answer_time = #{answerTime}</if>
            <if test="hangupTime != null ">and hangup_time = #{hangupTime}</if>
            <if test="endTime != null ">and end_time = #{endTime}</if>
            <if test="recordPath != null  and recordPath != ''">and record_path = #{recordPath}</if>
            <if test="recordUrl != null  and recordUrl != ''">and record_url = #{recordUrl}</if>
            <if test="hangupSipcode != null ">and hangup_sipcode = #{hangupSipcode}</if>
            <if test="hangupCause != null  and hangupCause != ''">and hangup_cause = #{hangupCause}</if>
            <if test="transfered != null ">and transfered = #{transfered}</if>
            <if test="transUuid != null  and transUuid != ''">and trans_uuid = #{transUuid}</if>
            <if test="transPhone != null  and transPhone != ''">and trans_phone = #{transPhone}</if>
            <if test="transAnswered != null ">and trans_answered = #{transAnswered}</if>
            <if test="transStartTime != null ">and trans_start_time = #{transStartTime}</if>
            <if test="transAnswerTime != null ">and trans_answer_time = #{transAnswerTime}</if>
            <if test="earlyAsrtext != null  and earlyAsrtext != ''">and early_asrtext = #{earlyAsrtext}</if>
            <if test="earlyPath != null  and earlyPath != ''">and early_path = #{earlyPath}</if>
            <if test="earlyUrl != null  and earlyUrl != ''">and early_url = #{earlyUrl}</if>
            <if test="isupload != null ">and isupload = #{isupload}</if>
            <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
            <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if>
        </where>
    </select>
 
    <select id="selectIvrTaskcallrecordByUuid" parameterType="String" resultMap="IvrTaskcallrecordResult">
        <include refid="selectIvrTaskcallrecordVo"/>
        where uuid = #{uuid}
    </select>
 
    <insert id="insertIvrTaskcallrecord" parameterType="com.smartor.domain.IvrTaskcallrecord">
        insert into ivr_taskcallrecord
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="uuid != null">uuid,</if>
            <if test="displayno != null">displayno,</if>
            <if test="phone != null">phone,</if>
            <if test="taskid != null">taskid,</if>
            <if test="extension != null">extension,</if>
            <if test="inbound != null">inbound,</if>
            <if test="direct != null">direct,</if>
            <if test="answered != null">answered,</if>
            <if test="assignTime != null">assign_time,</if>
            <if test="startTime != null">start_time,</if>
            <if test="answerTime != null">answer_time,</if>
            <if test="hangupTime != null">hangup_time,</if>
            <if test="endTime != null">end_time,</if>
            <if test="recordPath != null">record_path,</if>
            <if test="recordUrl != null">record_url,</if>
            <if test="hangupSipcode != null">hangup_sipcode,</if>
            <if test="hangupCause != null">hangup_cause,</if>
            <if test="transfered != null">transfered,</if>
            <if test="transUuid != null">trans_uuid,</if>
            <if test="transPhone != null">trans_phone,</if>
            <if test="transAnswered != null">trans_answered,</if>
            <if test="transStartTime != null">trans_start_time,</if>
            <if test="transAnswerTime != null">trans_answer_time,</if>
            <if test="earlyAsrtext != null">early_asrtext,</if>
            <if test="earlyPath != null">early_path,</if>
            <if test="earlyUrl != null">early_url,</if>
            <if test="delFlag != null and delFlag != ''">del_flag,</if>
            <if test="updateBy != null">update_by,</if>
            <if test="updateTime != null">update_time,</if>
            <if test="createBy != null">create_by,</if>
            <if test="createTime != null">create_time,</if>
            <if test="isupload != null">isupload,</if>
            <if test="uploadTime != null">upload_time,</if>
            <if test="orgid != null">orgid,</if>
            <if test="guid != null">guid,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="uuid != null">#{uuid},</if>
            <if test="displayno != null">#{displayno},</if>
            <if test="phone != null">#{phone},</if>
            <if test="taskid != null">#{taskid},</if>
            <if test="extension != null">#{extension},</if>
            <if test="inbound != null">#{inbound},</if>
            <if test="direct != null">#{direct},</if>
            <if test="answered != null">#{answered},</if>
            <if test="assignTime != null">#{assignTime},</if>
            <if test="startTime != null">#{startTime},</if>
            <if test="answerTime != null">#{answerTime},</if>
            <if test="hangupTime != null">#{hangupTime},</if>
            <if test="endTime != null">#{endTime},</if>
            <if test="recordPath != null">#{recordPath},</if>
            <if test="recordUrl != null">#{recordUrl},</if>
            <if test="hangupSipcode != null">#{hangupSipcode},</if>
            <if test="hangupCause != null">#{hangupCause},</if>
            <if test="transfered != null">#{transfered},</if>
            <if test="transUuid != null">#{transUuid},</if>
            <if test="transPhone != null">#{transPhone},</if>
            <if test="transAnswered != null">#{transAnswered},</if>
            <if test="transStartTime != null">#{transStartTime},</if>
            <if test="transAnswerTime != null">#{transAnswerTime},</if>
            <if test="earlyAsrtext != null">#{earlyAsrtext},</if>
            <if test="earlyPath != null">#{earlyPath},</if>
            <if test="earlyUrl != null">#{earlyUrl},</if>
            <if test="delFlag != null and delFlag != ''">#{delFlag},</if>
            <if test="updateBy != null">#{updateBy},</if>
            <if test="updateTime != null">#{updateTime},</if>
            <if test="createBy != null">#{createBy},</if>
            <if test="createTime != null">#{createTime},</if>
            <if test="isupload != null">#{isupload},</if>
            <if test="uploadTime != null">#{uploadTime},</if>
            <if test="orgid != null">#{orgid},</if>
            <if test="guid != null">#{guid},</if>
        </trim>
    </insert>
 
    <update id="updateIvrTaskcallrecord" parameterType="com.smartor.domain.IvrTaskcallrecord">
        update ivr_taskcallrecord
        <trim prefix="SET" suffixOverrides=",">
            <if test="displayno != null">displayno = #{displayno},</if>
            <if test="phone != null">phone = #{phone},</if>
            <if test="taskid != null">taskid = #{taskid},</if>
            <if test="extension != null">extension = #{extension},</if>
            <if test="inbound != null">inbound = #{inbound},</if>
            <if test="direct != null">direct = #{direct},</if>
            <if test="answered != null">answered = #{answered},</if>
            <if test="assignTime != null">assign_time = #{assignTime},</if>
            <if test="startTime != null">start_time = #{startTime},</if>
            <if test="answerTime != null">answer_time = #{answerTime},</if>
            <if test="hangupTime != null">hangup_time = #{hangupTime},</if>
            <if test="endTime != null">end_time = #{endTime},</if>
            <if test="recordPath != null">record_path = #{recordPath},</if>
            <if test="recordUrl != null">record_url = #{recordUrl},</if>
            <if test="hangupSipcode != null">hangup_sipcode = #{hangupSipcode},</if>
            <if test="hangupCause != null">hangup_cause = #{hangupCause},</if>
            <if test="transfered != null">transfered = #{transfered},</if>
            <if test="transUuid != null">trans_uuid = #{transUuid},</if>
            <if test="transPhone != null">trans_phone = #{transPhone},</if>
            <if test="transAnswered != null">trans_answered = #{transAnswered},</if>
            <if test="transStartTime != null">trans_start_time = #{transStartTime},</if>
            <if test="transAnswerTime != null">trans_answer_time = #{transAnswerTime},</if>
            <if test="earlyAsrtext != null">early_asrtext = #{earlyAsrtext},</if>
            <if test="earlyPath != null">early_path = #{earlyPath},</if>
            <if test="earlyUrl != null">early_url = #{earlyUrl},</if>
            <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
            <if test="updateBy != null">update_by = #{updateBy},</if>
            <if test="updateTime != null">update_time = #{updateTime},</if>
            <if test="createBy != null">create_by = #{createBy},</if>
            <if test="createTime != null">create_time = #{createTime},</if>
            <if test="isupload != null">isupload = #{isupload},</if>
            <if test="uploadTime != null">upload_time = #{uploadTime},</if>
            <if test="orgid != null">orgid = #{orgid},</if>
            <if test="guid != null">guid = #{guid},</if>
        </trim>
        where uuid = #{uuid}
    </update>
 
    <delete id="deleteIvrTaskcallrecordByUuid" parameterType="String">
        delete
        from ivr_taskcallrecord
        where uuid = #{uuid}
    </delete>
 
    <delete id="deleteIvrTaskcallrecordByUuids" parameterType="String">
        delete from ivr_taskcallrecord where uuid in
        <foreach item="uuid" collection="array" open="(" separator="," close=")">
            #{uuid}
        </foreach>
    </delete>
</mapper>