记得上下班打卡 | git大法好,push需谨慎

Commit d675e47b authored by 胡佳晨's avatar 胡佳晨

增加 job 日志

parent 7f32d613
...@@ -3,6 +3,7 @@ package com.liquidnet.service.executor.main.handler; ...@@ -3,6 +3,7 @@ package com.liquidnet.service.executor.main.handler;
import com.liquidnet.commons.lang.util.HttpUtil; import com.liquidnet.commons.lang.util.HttpUtil;
import com.liquidnet.service.feign.kylin.task.FeignPlatformTaskClient; import com.liquidnet.service.feign.kylin.task.FeignPlatformTaskClient;
import com.xxl.job.core.biz.model.ReturnT; import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob; import com.xxl.job.core.handler.annotation.XxlJob;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
...@@ -48,10 +49,11 @@ public class KylinTaskHandler { ...@@ -48,10 +49,11 @@ public class KylinTaskHandler {
} }
@XxlJob(value = "sev-platform:checkTransferOrderHandler") @XxlJob(value = "sev-platform:checkTransferOrderHandler")
public ReturnT<String> checkTransferOrderHandler(Integer minute) { public ReturnT<String> checkTransferOrderHandler() {
try { try {
String minute = XxlJobHelper.getJobParam(); //执行参数
log.info("minute = " + minute); log.info("minute = " + minute);
boolean result = feignPlatformTaskClient.checkTransferOrder(minute).getData(); boolean result = feignPlatformTaskClient.checkTransferOrder(Integer.parseInt(minute)).getData();
log.info("checkTransferOrderHandler:结果:" + result); log.info("checkTransferOrderHandler:结果:" + result);
return ReturnT.SUCCESS; return ReturnT.SUCCESS;
} catch (Exception e) { } catch (Exception e) {
......
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