|
|
|
@ -317,10 +317,10 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (Objects.nonNull(item.getLimitedTime())) { |
|
|
|
if (Objects.nonNull(item.getLimitedTime())) { |
|
|
|
item.setFlowLimitedRemainingTime(holidayService.getFlowRemainingTime(item.getLimitedTime(), item.getFlowLimitedLastHandlerTime())); |
|
|
|
item.setFlowLimitedRemainingTime(holidayService.getFlowRemainingTime(item.getLimitedTime(), item.getFlowLimitedLastHandlerTime(), item.getExtensionFlag(), item.getExtensionDays())); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
Flow flow = SpringUtil.getBean(FirstSignFlow.class); |
|
|
|
Flow flow = SpringUtil.getBean(FirstSignFlow.class); |
|
|
|
item.setFlowLimitedRemainingTime(holidayService.getFlowRemainingTime(flow.getFlowNode().getLimitedTime(), item.getCreateTime())); |
|
|
|
item.setFlowLimitedRemainingTime(holidayService.getFlowRemainingTime(flow.getFlowNode().getLimitedTime(), item.getCreateTime(), item.getExtensionFlag(), item.getExtensionDays())); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
return workVoPage; |
|
|
|
return workVoPage; |
|
|
|
@ -467,10 +467,10 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (Objects.nonNull(workVo.getLimitedTime())) { |
|
|
|
if (Objects.nonNull(workVo.getLimitedTime())) { |
|
|
|
workVo.setFlowLimitedRemainingTime(holidayService.getFlowRemainingTime(workVo.getLimitedTime(), workVo.getFlowLimitedLastHandlerTime())); |
|
|
|
workVo.setFlowLimitedRemainingTime(holidayService.getFlowRemainingTime(workVo.getLimitedTime(), workVo.getFlowLimitedLastHandlerTime(), workVo.getExtensionFlag(), workVo.getExtensionDays())); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
Flow flow = SpringUtil.getBean(FirstSignFlow.class); |
|
|
|
Flow flow = SpringUtil.getBean(FirstSignFlow.class); |
|
|
|
workVo.setFlowLimitedRemainingTime(holidayService.getFlowRemainingTime(flow.getFlowNode().getLimitedTime(), workVo.getCreateTime())); |
|
|
|
workVo.setFlowLimitedRemainingTime(holidayService.getFlowRemainingTime(flow.getFlowNode().getLimitedTime(), workVo.getCreateTime(), workVo.getExtensionFlag(), workVo.getExtensionDays())); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
@ -536,7 +536,7 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> { |
|
|
|
response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx"); |
|
|
|
response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx"); |
|
|
|
try (OutputStream out = response.getOutputStream()) { |
|
|
|
try (OutputStream out = response.getOutputStream()) { |
|
|
|
// 使用EasyExcel写入数据到输出流
|
|
|
|
// 使用EasyExcel写入数据到输出流
|
|
|
|
EasyExcel.write(out, MailExcel.class).sheet("模板").doWrite(mailList); |
|
|
|
EasyExcel.write(out, MailExcel.class).inMemory(Boolean.TRUE).sheet("模板").doWrite(mailList); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("Exception occurred while exporting mail data" + e.getMessage(), e); |
|
|
|
log.error("Exception occurred while exporting mail data" + e.getMessage(), e); |
|
|
|
|
|
|
|
|
|
|
|
@ -608,10 +608,10 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> { |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
if (Objects.nonNull(workVo.getLimitedTime())) { |
|
|
|
if (Objects.nonNull(workVo.getLimitedTime())) { |
|
|
|
workVo.setFlowLimitedRemainingTime(holidayService.getFlowRemainingTime(workVo.getLimitedTime(), workVo.getFlowLimitedLastHandlerTime())); |
|
|
|
workVo.setFlowLimitedRemainingTime(holidayService.getFlowRemainingTime(workVo.getLimitedTime(), workVo.getFlowLimitedLastHandlerTime(), workVo.getExtensionFlag(), workVo.getExtensionDays())); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
Flow flow = SpringUtil.getBean(FirstSignFlow.class); |
|
|
|
Flow flow = SpringUtil.getBean(FirstSignFlow.class); |
|
|
|
workVo.setFlowLimitedRemainingTime(holidayService.getFlowRemainingTime(flow.getFlowNode().getLimitedTime(), workVo.getCreateTime())); |
|
|
|
workVo.setFlowLimitedRemainingTime(holidayService.getFlowRemainingTime(flow.getFlowNode().getLimitedTime(), workVo.getCreateTime(), workVo.getExtensionFlag(), workVo.getExtensionDays())); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
|