|
|
|
@ -53,7 +53,6 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> { |
|
|
|
|
|
|
|
|
|
|
|
private final MailLabelMapper mailLabelMapper; |
|
|
|
private final MailLabelMapper mailLabelMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final MailAppealMapper mailAppealMapper; |
|
|
|
private final MailAppealMapper mailAppealMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -76,6 +75,8 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> { |
|
|
|
|
|
|
|
|
|
|
|
private final NoticeService noticeService; |
|
|
|
private final NoticeService noticeService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final MailFlowService mailFlowService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean saveBatch(List<MailSource> mailSources) { |
|
|
|
public boolean saveBatch(List<MailSource> mailSources) { |
|
|
|
LocalDateTime now = LocalDateTime.now(); |
|
|
|
LocalDateTime now = LocalDateTime.now(); |
|
|
|
@ -710,6 +711,8 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> { |
|
|
|
.collect(Collectors.toList()).get(0).getName())); |
|
|
|
.collect(Collectors.toList()).get(0).getName())); |
|
|
|
ledgerExcel.setMailTime(m.getMailTime()); |
|
|
|
ledgerExcel.setMailTime(m.getMailTime()); |
|
|
|
ledgerExcel.setCreateTime(m.getCreateTime()); |
|
|
|
ledgerExcel.setCreateTime(m.getCreateTime()); |
|
|
|
|
|
|
|
// 办结时间
|
|
|
|
|
|
|
|
ledgerExcel.setCompletionTime(q.getCompletionTime()); |
|
|
|
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())); |
|
|
|
@ -720,12 +723,20 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> { |
|
|
|
FlowNodeEnum flowNodeEnum = FlowNodeEnum.get(m.getFlowKey()); |
|
|
|
FlowNodeEnum flowNodeEnum = FlowNodeEnum.get(m.getFlowKey()); |
|
|
|
if (Objects.nonNull(flowNodeEnum)) { |
|
|
|
if (Objects.nonNull(flowNodeEnum)) { |
|
|
|
if (flowNodeEnum.getIndex() > FlowNodeEnum.SECOND_DISTRIBUTE.getIndex()) { |
|
|
|
if (flowNodeEnum.getIndex() > FlowNodeEnum.SECOND_DISTRIBUTE.getIndex()) { |
|
|
|
// 是否5分钟内签收 (二级机构专班) TODO
|
|
|
|
// 是否5分钟内签收 (二级机构专班)
|
|
|
|
//ledgerExcel.setSecondSignFlag();
|
|
|
|
String secondSignFlag = mailFlowService.list(m.getId(), Arrays.asList(FlowNodeEnum.SECOND_SIGN.getKey(), FlowNodeEnum.SECOND_DISTRIBUTE.getKey())) |
|
|
|
|
|
|
|
.stream() |
|
|
|
|
|
|
|
.limit(2) |
|
|
|
|
|
|
|
.mapToLong(MailFlow::getConsumingTime).sum() > 300 ? AppConstants.NO : AppConstants.YES; |
|
|
|
|
|
|
|
ledgerExcel.setSecondSignFlag(secondSignFlag); |
|
|
|
} |
|
|
|
} |
|
|
|
if (flowNodeEnum.getIndex() > FlowNodeEnum.SECOND_DISTRIBUTE.getIndex()) { |
|
|
|
if (flowNodeEnum.getIndex() > FlowNodeEnum.SECOND_DISTRIBUTE.getIndex()) { |
|
|
|
// 是否5分钟内签收(三级机构专班) TODO
|
|
|
|
String threeSignFlag = mailFlowService.list(m.getId(), Collections.singletonList(FlowNodeEnum.THREE_SIGN.getKey())) |
|
|
|
//ledgerExcel.setThreeSignFlag();
|
|
|
|
.stream() |
|
|
|
|
|
|
|
.limit(2) |
|
|
|
|
|
|
|
.mapToLong(MailFlow::getConsumingTime).sum() > 300 ? AppConstants.NO : AppConstants.YES; |
|
|
|
|
|
|
|
// 是否5分钟内签收(三级机构专班)
|
|
|
|
|
|
|
|
ledgerExcel.setThreeSignFlag(threeSignFlag); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -752,7 +763,6 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> { |
|
|
|
String appealResult = appealList.stream().anyMatch(item -> item.getMailId().equals(q.getId()) && item.getAppealState().equals("2")) ? "成功" : "失败"; |
|
|
|
String appealResult = appealList.stream().anyMatch(item -> item.getMailId().equals(q.getId()) && item.getAppealState().equals("2")) ? "成功" : "失败"; |
|
|
|
ledgerExcel.setAppealResult(appealResult); |
|
|
|
ledgerExcel.setAppealResult(appealResult); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ledgerExcel.setIsQualify(nullToEmpty(m.getQualifiedProcessingStatus())); |
|
|
|
ledgerExcel.setIsQualify(nullToEmpty(m.getQualifiedProcessingStatus())); |
|
|
|
list.add(ledgerExcel); |
|
|
|
list.add(ledgerExcel); |
|
|
|
} |
|
|
|
} |
|
|
|
|