|
|
|
|
@ -174,7 +174,7 @@ public class NegativeTaskService extends ServiceImpl<NegativeTaskMapper, Negativ
|
|
|
|
|
}).collect(Collectors.joining("、")); |
|
|
|
|
vo.setProblemTypeList(problemTypeList); |
|
|
|
|
// 超时情况
|
|
|
|
|
vo.setHandleTimeout(getHandleTimeout(item.getHandleTimeout())); |
|
|
|
|
vo.setHandleTimeout(getHandleTimeout(item)); |
|
|
|
|
// 办理时限
|
|
|
|
|
vo.setTimeLimit(TimeLimitEnum.getLabel(item.getTimeLimit())); |
|
|
|
|
// 主办层级
|
|
|
|
|
@ -334,24 +334,24 @@ public class NegativeTaskService extends ServiceImpl<NegativeTaskMapper, Negativ
|
|
|
|
|
vo.setLeadAgeAtCrtTime(TimeUtil.calcAgeFromIdCard(vo.getLeadIdCode(), crtDate)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private String getHandleTimeout(Long time) { |
|
|
|
|
if (time == null || time <= 0) { |
|
|
|
|
return "未超时"; |
|
|
|
|
private String getHandleTimeout(NegativeQueryVo item) { |
|
|
|
|
boolean completed = ProcessingStatusEnum.completed.name().equals(item.getProcessingStatus()); |
|
|
|
|
if (!completed) { |
|
|
|
|
Long remainingDuration = item.getRemainingDuration(); |
|
|
|
|
if (remainingDuration == null) { |
|
|
|
|
return "未开始计时"; |
|
|
|
|
} |
|
|
|
|
// 秒
|
|
|
|
|
if (time < 60) { |
|
|
|
|
return time + "秒"; |
|
|
|
|
if (remainingDuration < 0) { |
|
|
|
|
return "已超时/超时" + TimeUtil.formatDuration(-remainingDuration); |
|
|
|
|
} |
|
|
|
|
// 分钟
|
|
|
|
|
if (time < 3600) { |
|
|
|
|
return (int) Math.floor((double) time / 60) + "分" + (time % 60) + "秒"; |
|
|
|
|
return "未超时/剩余" + TimeUtil.formatDuration(remainingDuration); |
|
|
|
|
} |
|
|
|
|
// 小时
|
|
|
|
|
if (time < 86400) { |
|
|
|
|
return String.format("%s时%s分", (int) Math.floor((double) time / 3600), time % 3600 / 60); |
|
|
|
|
|
|
|
|
|
Long time = item.getHandleTimeout(); |
|
|
|
|
if (time == null || time <= 0) { |
|
|
|
|
return "未超时"; |
|
|
|
|
} |
|
|
|
|
// 天
|
|
|
|
|
return String.format("%s天%s时", (int) Math.floor((double) time / 86400), time % 86400 / 3600); |
|
|
|
|
return "办结超时/超时" + TimeUtil.formatDuration(time); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|