Commit 781dcd7e by Java-金吉宝

修复录音重复记录bug

parent 6b00ddb1
......@@ -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);
}
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment