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
781dcd7e
Commit
781dcd7e
authored
Sep 20, 2017
by
Java-金吉宝
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复录音重复记录bug
parent
6b00ddb1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
CallDao.java
src/com/ejweb/modules/call/dao/CallDao.java
+4
-0
CallService.java
src/com/ejweb/modules/call/service/CallService.java
+11
-0
No files found.
src/com/ejweb/modules/call/dao/CallDao.java
View file @
781dcd7e
...
...
@@ -56,4 +56,8 @@ public interface CallDao extends BaseDao {
public
String
getIdByPhoneFromSeat
(
String
createPhone
);
public
String
getIdByPhone
(
String
mobileNubmer
);
public
CallRecordListEntity
get
(
CallRecordListEntity
callRecordListEntity
);
public
List
<
CallRecordListEntity
>
getList
(
CallRecordListEntity
callRecordListEntity
);
}
src/com/ejweb/modules/call/service/CallService.java
View file @
781dcd7e
...
...
@@ -81,6 +81,17 @@ public class CallService extends BaseService<CallDao> {
if
(
list
==
null
||
list
.
size
()
==
0
)
{
// 如果没有数据则返回NULL
return
null
;
}
//过滤重复记录
List
<
CallRecordListEntity
>
templist
=
new
ArrayList
<
CallRecordListEntity
>();
for
(
CallRecordListEntity
callRecordListEntity
:
list
)
{
CallRecordListEntity
entity
=
dao
.
get
(
callRecordListEntity
);
if
(
entity
!=
null
){
templist
.
add
(
callRecordListEntity
);
}
}
if
(
templist
.
size
()>
0
){
list
.
removeAll
(
templist
);
}
PageEntity
<
CallRecordListEntity
>
page
=
new
PageEntity
<
CallRecordListEntity
>();
page
.
setPageNo
(
pageInfo
.
getPageNum
());
page
.
setPageSize
(
pageInfo
.
getPageSize
());
...
...
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