泛型处理

This commit is contained in:
xueli.xue 2017-03-13 15:22:49 +08:00
parent 7e38890973
commit 3d3f53bc38
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ public class AdminBizImpl implements AdminBiz {
// valid log item
XxlJobLog log = XxlJobDynamicScheduler.xxlJobLogDao.load(handleCallbackParam.getLogId());
if (log == null) {
return new ReturnT(ReturnT.FAIL_CODE, "log item not found.");
return new ReturnT<String>(ReturnT.FAIL_CODE, "log item not found.");
}
// trigger success, to trigger child job, and avoid repeat trigger child job
@ -81,7 +81,7 @@ public class AdminBizImpl implements AdminBiz {
log.setHandleMsg(handleMsg.toString());
XxlJobDynamicScheduler.xxlJobLogDao.updateHandleInfo(log);
return new ReturnT(ReturnT.SUCCESS_CODE, null);
return new ReturnT<String>(ReturnT.SUCCESS_CODE, null);
}
}