|
|
|
@ -39,11 +39,13 @@ public class ExcelService implements ReadListener<WorkVo> { |
|
|
|
.ge(StrUtil.isNotBlank(mailQuery.getMailTimeStart()), "TO_CHAR(m.mail_time, 'YYYY-MM-DD')", mailQuery.getMailTimeStart()) |
|
|
|
.ge(StrUtil.isNotBlank(mailQuery.getMailTimeStart()), "TO_CHAR(m.mail_time, 'YYYY-MM-DD')", mailQuery.getMailTimeStart()) |
|
|
|
.le(StrUtil.isNotBlank(mailQuery.getMailTimeStartEnd()), "TO_CHAR(m.mail_time, 'YYYY-MM-DD')", mailQuery.getMailTimeStartEnd()); |
|
|
|
.le(StrUtil.isNotBlank(mailQuery.getMailTimeStartEnd()), "TO_CHAR(m.mail_time, 'YYYY-MM-DD')", mailQuery.getMailTimeStartEnd()); |
|
|
|
dbDatalist = workMapper.selectList(queryWrapper); |
|
|
|
dbDatalist = workMapper.selectList(queryWrapper); |
|
|
|
for (WorkVo workVo : excelDatalist) { |
|
|
|
for (int i = 0; i < excelDatalist.size(); i++) { |
|
|
|
|
|
|
|
WorkVo workVo = excelDatalist.get(i); |
|
|
|
for (Work work : dbDatalist) { |
|
|
|
for (Work work : dbDatalist) { |
|
|
|
if (work.getMailId().equals(workVo.getMailId())) { |
|
|
|
if (work.getMailId().equals(workVo.getMailId())) { |
|
|
|
excelDatalist.remove(workVo); |
|
|
|
excelDatalist.remove(workVo); |
|
|
|
break; |
|
|
|
i--; // 减去索引以补偿移除的元素
|
|
|
|
|
|
|
|
break; // 一旦找到匹配并移除,跳出内循环
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|