Commit 28bc9723 by 朱海

[chg]没有出的过滤掉

1 parent 0e92f1a5
...@@ -195,10 +195,16 @@ public class PersonRecordServiceImpl implements PersonRecordService { ...@@ -195,10 +195,16 @@ public class PersonRecordServiceImpl implements PersonRecordService {
recordList.addAll(yesList); recordList.addAll(yesList);
recordList.addAll(noList); recordList.addAll(noList);
}); });
//按personUnid分组
//Map<String, List<DPersonRecord>> personRecordMap = recordList.stream().collect(Collectors.groupingBy(DPersonRecord::getPersonUnid));
List<DPersonRecord> personRecordList = new ArrayList<>(); List<DPersonRecord> personRecordList = new ArrayList<>();
for (DPersonRecord dPersonRecord : recordList) { for (DPersonRecord dPersonRecord : recordList) {
//没有匹配到出
if (dPersonRecord.getLeaveTime() == null) {
continue;
}
//排除掉短时间在店内的记录 //排除掉短时间在店内的记录
if (dPersonRecord.getLeaveTime() != null && dPersonRecord.getVisitDuration() < excludePersonTime * 60 * 1000) { if (dPersonRecord.getVisitDuration() < excludePersonTime * 60 * 1000) {
continue; continue;
} }
//没有被接待,并且没有看车的排除掉 //没有被接待,并且没有看车的排除掉
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!