|
|
|
|
|
|
246
|
AND `callee_agent`= #{usercode}
|
246
|
AND `callee_agent`= #{usercode}
|
|
247
|
</if>
|
247
|
</if>
|
|
248
|
<if test="@api.entity.view.config.GlobalConfig@isNote == 1">
|
248
|
<if test="@api.entity.view.config.GlobalConfig@isNote == 1">
|
|
249
|
- AND IFNULL(note,'1')='1'
|
|
|
|
|
|
249
|
+ AND (note=1 or (call_type=2 and note is null ))
|
|
250
|
</if>
|
250
|
</if>
|
|
251
|
|
251
|
|
|
252
|
GROUP BY `callee_agent`
|
252
|
GROUP BY `callee_agent`
|
|
|
|
|
|
|
311
|
from rep_record
|
311
|
from rep_record
|
|
312
|
where DATE_FORMAT(create_time, '%Y-%m-%d') = DATE_FORMAT(NOW(), '%Y-%m-%d')
|
312
|
where DATE_FORMAT(create_time, '%Y-%m-%d') = DATE_FORMAT(NOW(), '%Y-%m-%d')
|
|
313
|
<if test="@api.entity.view.config.GlobalConfig@isNote == 1">
|
313
|
<if test="@api.entity.view.config.GlobalConfig@isNote == 1">
|
|
314
|
- AND IFNULL(note,'1')='1'
|
|
|
|
|
|
314
|
+ AND (note=1 or (call_type=2 and note is null ))
|
|
315
|
</if>
|
315
|
</if>
|
|
316
|
GROUP BY DATE
|
316
|
GROUP BY DATE
|
|
317
|
ORDER BY DATE;
|
317
|
ORDER BY DATE;
|
|
|
|
|
|
|
324
|
from rep_record
|
324
|
from rep_record
|
|
325
|
where 1=1
|
325
|
where 1=1
|
|
326
|
<if test="@api.entity.view.config.GlobalConfig@isNote == 1">
|
326
|
<if test="@api.entity.view.config.GlobalConfig@isNote == 1">
|
|
327
|
- AND IFNULL(note,'1')='1'
|
|
|
|
|
|
327
|
+ AND (note=1 or (call_type=2 and note is null ))
|
|
328
|
</if>
|
328
|
</if>
|
|
329
|
</select>
|
329
|
</select>
|
|
330
|
<select id="selectTrafficMeasurement" parameterType="Date" resultMap="TrafficMeasurementResult">
|
330
|
<select id="selectTrafficMeasurement" parameterType="Date" resultMap="TrafficMeasurementResult">
|
|
|
|
|
|
|
336
|
from rep_record
|
336
|
from rep_record
|
|
337
|
WHERE `create_time`>=#{beginTime} AND `create_time`<![CDATA[<=]]> #{endTime}
|
337
|
WHERE `create_time`>=#{beginTime} AND `create_time`<![CDATA[<=]]> #{endTime}
|
|
338
|
<if test="@api.entity.view.config.GlobalConfig@isNote == 1">
|
338
|
<if test="@api.entity.view.config.GlobalConfig@isNote == 1">
|
|
339
|
- AND IFNULL(note,'1')='1'
|
|
|
|
|
|
339
|
+ AND (note=1 or (call_type=2 and note is null ))
|
|
340
|
</if>
|
340
|
</if>
|
|
341
|
</select>
|
341
|
</select>
|
|
342
|
|
342
|
|
|
|
|
|
|
|
348
|
WHERE `create_time`>=#{startTime} AND `create_time`<![CDATA[<=]]> #{endTime}
|
348
|
WHERE `create_time`>=#{startTime} AND `create_time`<![CDATA[<=]]> #{endTime}
|
|
349
|
and call_type=1
|
349
|
and call_type=1
|
|
350
|
<if test="@api.entity.view.config.GlobalConfig@isNote == 1">
|
350
|
<if test="@api.entity.view.config.GlobalConfig@isNote == 1">
|
|
351
|
- AND IFNULL(note,'1')='1'
|
|
|
|
|
|
351
|
+ AND (note=1 or (call_type=2 and note is null ))
|
|
352
|
</if>
|
352
|
</if>
|
|
353
|
<if test="isAnswer >-1 ">
|
353
|
<if test="isAnswer >-1 ">
|
|
354
|
AND `is_answer`= #{isAnswer}
|
354
|
AND `is_answer`= #{isAnswer}
|
|
|
|
|
|
|
364
|
from rep_record where
|
364
|
from rep_record where
|
|
365
|
DATE_FORMAT( `create_time`, '%Y-%m' )= DATE_FORMAT( #{time}, '%Y-%m' )
|
365
|
DATE_FORMAT( `create_time`, '%Y-%m' )= DATE_FORMAT( #{time}, '%Y-%m' )
|
|
366
|
<if test="@api.entity.view.config.GlobalConfig@isNote == 1">
|
366
|
<if test="@api.entity.view.config.GlobalConfig@isNote == 1">
|
|
367
|
- AND IFNULL(note,'1')='1'
|
|
|
|
|
|
367
|
+ AND (note=1 or (call_type=2 and note is null ))
|
|
368
|
</if>
|
368
|
</if>
|
|
369
|
</select>
|
369
|
</select>
|
|
370
|
|
370
|
|
|
|
|
|
|
|
384
|
WHERE `create_time`>=#{startTime} AND `create_time`<![CDATA[<=]]> #{endTime}
|
384
|
WHERE `create_time`>=#{startTime} AND `create_time`<![CDATA[<=]]> #{endTime}
|
|
385
|
and call_type=1
|
385
|
and call_type=1
|
|
386
|
<if test="@api.entity.view.config.GlobalConfig@isNote == 1">
|
386
|
<if test="@api.entity.view.config.GlobalConfig@isNote == 1">
|
|
387
|
- AND IFNULL(note,'1')='1'
|
|
|
|
|
|
387
|
+ AND (note=1 or (call_type=2 and note is null ))
|
|
388
|
</if>
|
388
|
</if>
|
|
389
|
group by DATE
|
389
|
group by DATE
|
|
390
|
order by DATE
|
390
|
order by DATE
|
|
|
|
|
|
|
482
|
count(myd=3 or null ) dissatisfied
|
482
|
count(myd=3 or null ) dissatisfied
|
|
483
|
from rep_record
|
483
|
from rep_record
|
|
484
|
where 1=1
|
484
|
where 1=1
|
|
485
|
- <if test="@api.entity.view.config.GlobalConfig@isNote == 1">
|
|
|
|
486
|
- AND IFNULL(note,'1')='1'
|
|
|
|
|
|
485
|
+ <if test="@api.entity.view.config.GlobalConfig@isNote == 1" >
|
|
|
|
486
|
+ AND (note=1 or (call_type=2 and note is null ))
|
|
487
|
</if>
|
487
|
</if>
|
|
488
|
<if test="startTime != null and startTime !=''">
|
488
|
<if test="startTime != null and startTime !=''">
|
|
489
|
AND UNIX_TIMESTAMP(`create_time`)>=UNIX_TIMESTAMP(#{startTime})
|
489
|
AND UNIX_TIMESTAMP(`create_time`)>=UNIX_TIMESTAMP(#{startTime})
|