|
|
|
@ -77,6 +77,8 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> { |
|
|
|
|
|
|
|
|
|
|
|
private final MailFlowService mailFlowService; |
|
|
|
private final MailFlowService mailFlowService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final MailMarkService mailMarkService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean saveBatch(List<MailSource> mailSources) { |
|
|
|
public boolean saveBatch(List<MailSource> mailSources) { |
|
|
|
LocalDateTime now = LocalDateTime.now(); |
|
|
|
LocalDateTime now = LocalDateTime.now(); |
|
|
|
@ -700,6 +702,7 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> { |
|
|
|
List<MailAppeal> appealList = mailAppealMapper.selectList(null); |
|
|
|
List<MailAppeal> appealList = mailAppealMapper.selectList(null); |
|
|
|
List<DictData> dictData = dictDataMapper.selectList(null); |
|
|
|
List<DictData> dictData = dictDataMapper.selectList(null); |
|
|
|
List<LedgerExcel> list = new ArrayList<>(); |
|
|
|
List<LedgerExcel> list = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
|
|
int i = 1; |
|
|
|
int i = 1; |
|
|
|
for (QueryMailVo q : data) { |
|
|
|
for (QueryMailVo q : data) { |
|
|
|
Mail m = mailList.stream().filter(item -> item.getId().equals(q.getId())).findFirst().orElse(new Mail()); |
|
|
|
Mail m = mailList.stream().filter(item -> item.getId().equals(q.getId())).findFirst().orElse(new Mail()); |
|
|
|
@ -712,7 +715,7 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> { |
|
|
|
ledgerExcel.setMailTime(m.getMailTime()); |
|
|
|
ledgerExcel.setMailTime(m.getMailTime()); |
|
|
|
ledgerExcel.setCreateTime(m.getCreateTime()); |
|
|
|
ledgerExcel.setCreateTime(m.getCreateTime()); |
|
|
|
// 办结时间
|
|
|
|
// 办结时间
|
|
|
|
ledgerExcel.setCompletionTime(q.getCompletionTime()); |
|
|
|
ledgerExcel.setCompletionTime(Optional.ofNullable(mailMarkService.getById(m.getId())).map(MailMark::getCompletionTime).orElse(null)); |
|
|
|
ledgerExcel.setContactName(nullToEmpty(q.getContactName())); |
|
|
|
ledgerExcel.setContactName(nullToEmpty(q.getContactName())); |
|
|
|
ledgerExcel.setContactPhone(nullToEmpty(q.getContactPhone())); |
|
|
|
ledgerExcel.setContactPhone(nullToEmpty(q.getContactPhone())); |
|
|
|
ledgerExcel.setSecondDeptName(nullToEmpty(m.getSecondDeptName())); |
|
|
|
ledgerExcel.setSecondDeptName(nullToEmpty(m.getSecondDeptName())); |
|
|
|
|