Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
首航-临时账号
api
Commits
170f7ee6
Commit
170f7ee6
authored
Sep 20, 2017
by
Java-金吉宝
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重复记录
parent
781dcd7e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
7 deletions
+33
-7
CallDao.xml
resources/mapper/modules/call/CallDao.xml
+33
-7
No files found.
resources/mapper/modules/call/CallDao.xml
View file @
170f7ee6
...
@@ -120,7 +120,6 @@
...
@@ -120,7 +120,6 @@
<!-- 获取通话记录列表 -->
<!-- 获取通话记录列表 -->
<select
id=
"getCallRecordList"
resultType=
"com.ejweb.modules.call.entity.CallRecordListEntity"
>
<select
id=
"getCallRecordList"
resultType=
"com.ejweb.modules.call.entity.CallRecordListEntity"
>
SELECT
SELECT
CONCAT(r.create_name,p.username,(UNIX_TIMESTAMP(r.end_time)-r.duration)) as b,
r.id,
r.id,
r.create_by,
r.create_by,
r.create_name,
r.create_name,
...
@@ -148,10 +147,40 @@
...
@@ -148,10 +147,40 @@
WHERE r.start_time BETWEEN #{startTime} AND #{endTime}
WHERE r.start_time BETWEEN #{startTime} AND #{endTime}
AND (p.user_id=#{userId} OR r.create_by=#{userId})
AND (p.user_id=#{userId} OR r.create_by=#{userId})
AND r.end_status !='INIT'
AND r.end_status !='INIT'
group by b
ORDER BY r.start_time DESC
ORDER BY r.start_time DESC
</select>
</select>
<!-- 查重 -->
<select
id=
"get"
resultType=
"com.ejweb.modules.call.entity.CallRecordListEntity"
>
SELECT
r.id,
r.create_by,
r.create_name,
r.create_phone,
r.call_type,
r.end_status,
r.user_count,
r.start_time,
r.end_time,
p.user_id AS userId,
p.username,
p.phone,
p.title,
p.flow,
u.photo AS userPhoto,
uu.photo AS createByPhoto,
r.download_url
FROM foc_sound_phones p
LEFT JOIN sys_user u
ON p.user_id = u.id
LEFT JOIN foc_sound_records r
ON p.record_id=r.id
LEFT JOIN sys_user uu
ON r.create_by = uu.id
WHERE r.end_status !='INIT'
and r.create_name = #{createName}
and p.username = #{username}
and r.start_time = #{endTime}
</select>
<!-- 通过通话的电话号查询用户信息 -->
<!-- 通过通话的电话号查询用户信息 -->
<select
id=
"findUserByCallPhone"
resultType=
"com.ejweb.modules.call.entity.CallPhoneInfoListEntity"
>
<select
id=
"findUserByCallPhone"
resultType=
"com.ejweb.modules.call.entity.CallPhoneInfoListEntity"
>
...
@@ -369,7 +398,6 @@
...
@@ -369,7 +398,6 @@
SELECT *
SELECT *
FROM (
FROM (
SELECT
SELECT
CONCAT(r.create_name,p.username,(UNIX_TIMESTAMP(r.end_time)-r.duration)) as b,
r.create_by,
r.create_by,
r.create_name,
r.create_name,
r.create_phone,
r.create_phone,
...
@@ -392,11 +420,9 @@
...
@@ -392,11 +420,9 @@
AND r.end_status !='INIT'
AND r.end_status !='INIT'
AND r.create_by=#{userId}
AND r.create_by=#{userId}
AND r.call_type='GROUP'
AND r.call_type='GROUP'
group by b
ORDER BY r.start_time DESC
ORDER BY r.start_time DESC
UNION
UNION
SELECT
SELECT
CONCAT(r.create_name,p.username,(UNIX_TIMESTAMP(r.end_time)-r.duration)) as b,
r.create_by,
r.create_by,
r.create_name,
r.create_name,
r.create_phone,
r.create_phone,
...
@@ -424,7 +450,7 @@
...
@@ -424,7 +450,7 @@
AND p.phone_type != 'HWNUBMER'
AND p.phone_type != 'HWNUBMER'
AND r.end_status !='INIT'
AND r.end_status !='INIT'
AND r.call_type='USER'
AND r.call_type='USER'
group by b
ORDER BY r.start_time DESC
ORDER BY r.start_time DESC
) t
) t
ORDER BY t.start_time DESC
ORDER BY t.start_time DESC
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment