Commit 4ff5823e by huangfusuper

休整时间溢出问题

parent dcc9498f
......@@ -126,6 +126,13 @@ public class ApiFlowController {
return ResponseResult.ok(result);
}
public static void main(String[] args) {
int maxValue = Integer.MAX_VALUE;
System.out.println(maxValue+3);
//5184000000
//2147483647
}
/**
*
* @param param
......
......@@ -42,7 +42,7 @@ public class DaemonScanThreadRunHelperRedisLock extends BaseDaemonScanThreadRunH
Long sleepTime = 0L;
try{
//加锁
RedissLockUtil.lock(lockName,30);
RedissLockUtil.lock(lockName,120);
log.debug("------------{},加锁成功,锁名称为{}----------",threadName,lockName);
//调用业务操作
sleepTime = examplesValue.start();
......
......@@ -16,6 +16,7 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import java.util.Date;
import java.util.List;
/**
......@@ -96,7 +97,9 @@ public class RunRecordingAndEmailServiceImpl implements RunRecordingAndEmailServ
if (CollectionUtil.isNotEmpty(jobTaskRunLogs)) {
jobTaskRunLogs.forEach(jobTaskRunLog -> {
long timeConsuming = jobTaskRunLog.getEndTime().getTime() - jobTaskRunLog.getStartTime().getTime();
Date endTime = jobTaskRunLog.getEndTime() == null ? new Date() : jobTaskRunLog.getEndTime();
Date startTime = jobTaskRunLog.getStartTime() == null ? new Date() : jobTaskRunLog.getStartTime();
long timeConsuming = endTime.getTime() - startTime.getTime();
/*
* String iframeHtml = "<iframe src='%s'></iframe>";
* String logFilePath = FILE_SYSTEM_PRE+fileSystemIp+":"+fileSystemPort+"/"+jobTaskRunLog.getLogRemotelyPath();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment