任务日志主键调整为long,防止海量日志情况下数据溢出;

This commit is contained in:
xuxueli 2019-07-06 18:27:03 +08:00
parent 02f65c8c6c
commit 1a274e72ef
3 changed files with 3 additions and 3 deletions

View File

@ -134,7 +134,7 @@ public class JobLogController {
@RequestMapping("/logDetailCat") @RequestMapping("/logDetailCat")
@ResponseBody @ResponseBody
public ReturnT<LogResult> logDetailCat(String executorAddress, long triggerTime, int logId, int fromLineNum){ public ReturnT<LogResult> logDetailCat(String executorAddress, long triggerTime, long logId, int fromLineNum){
try { try {
ExecutorBiz executorBiz = XxlJobScheduler.getExecutorBiz(executorAddress); ExecutorBiz executorBiz = XxlJobScheduler.getExecutorBiz(executorAddress);
ReturnT<LogResult> logResult = executorBiz.log(triggerTime, logId, fromLineNum); ReturnT<LogResult> logResult = executorBiz.log(triggerTime, logId, fromLineNum);

View File

@ -24,7 +24,7 @@ public class HandleCallbackParam implements Serializable {
return logId; return logId;
} }
public void setLogId(int logId) { public void setLogId(long logId) {
this.logId = logId; this.logId = logId;
} }

View File

@ -109,7 +109,7 @@ public class ExecutorBizImplTest {
@Test @Test
public void log(){ public void log(){
final long logDateTim = 0L; final long logDateTim = 0L;
final int logId = 0; final long logId = 0;
final int fromLineNum = 0; final int fromLineNum = 0;
// Act // Act