mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
处理manage编译失败
This commit is contained in:
+3
-3
@@ -2,7 +2,7 @@ package com.cf.imes.module.manage.controller.admin.test;
|
|||||||
|
|
||||||
import com.cf.imes.framework.common.util.json.JsonUtils;
|
import com.cf.imes.framework.common.util.json.JsonUtils;
|
||||||
import com.cf.imes.framework.common.util.object.BeanUtils;
|
import com.cf.imes.framework.common.util.object.BeanUtils;
|
||||||
import com.cf.imes.framework.quartz.config.XxlJobProperties;
|
//import com.cf.imes.framework.quartz.config.XxlJobProperties;
|
||||||
import com.cf.imes.module.manage.config.XxlJobParameter;
|
import com.cf.imes.module.manage.config.XxlJobParameter;
|
||||||
import com.cf.imes.module.manage.controller.admin.patching.vo.PatchingDetailRespVO;
|
import com.cf.imes.module.manage.controller.admin.patching.vo.PatchingDetailRespVO;
|
||||||
import com.cf.imes.module.manage.controller.admin.patching.vo.PatchingPlateRespVO;
|
import com.cf.imes.module.manage.controller.admin.patching.vo.PatchingPlateRespVO;
|
||||||
@@ -120,7 +120,7 @@ public class TestController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static XxlJobProperties aabb(){
|
/* private static XxlJobProperties aabb(){
|
||||||
|
|
||||||
XxlJobParameter xxlJobParameter = new XxlJobParameter();
|
XxlJobParameter xxlJobParameter = new XxlJobParameter();
|
||||||
|
|
||||||
@@ -131,7 +131,7 @@ public class TestController {
|
|||||||
XxlJobProperties bean = BeanUtils.toBean(xxlJobParameter, XxlJobProperties.class);
|
XxlJobProperties bean = BeanUtils.toBean(xxlJobParameter, XxlJobProperties.class);
|
||||||
return bean;
|
return bean;
|
||||||
|
|
||||||
}
|
}*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
-1
@@ -1,7 +1,6 @@
|
|||||||
package com.cf.imes.module.manage.service.voice;
|
package com.cf.imes.module.manage.service.voice;
|
||||||
|
|
||||||
|
|
||||||
import com.cf.imes.framework.quartz.config.XxlJobProperties;
|
|
||||||
import com.cf.imes.module.manage.config.VocieParameters;
|
import com.cf.imes.module.manage.config.VocieParameters;
|
||||||
import com.cf.imes.module.manage.config.XxlJobParameter;
|
import com.cf.imes.module.manage.config.XxlJobParameter;
|
||||||
import com.jacob.activeX.ActiveXComponent;
|
import com.jacob.activeX.ActiveXComponent;
|
||||||
|
|||||||
-43
@@ -1,43 +0,0 @@
|
|||||||
package com.cf.imes.module.manage.util.xxjJob;
|
|
||||||
|
|
||||||
|
|
||||||
import com.cf.imes.framework.quartz.config.XxlJobProperties;
|
|
||||||
import com.cf.imes.module.manage.config.XxlJobParameter;
|
|
||||||
import com.xxl.job.core.handler.IJobHandler;
|
|
||||||
import com.xxl.job.core.handler.annotation.XxlJob;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
|
|
||||||
public class XxlJobUtil extends IJobHandler {
|
|
||||||
|
|
||||||
@Resource
|
|
||||||
private XxlJobParameter xxlJobParameter;
|
|
||||||
|
|
||||||
|
|
||||||
// 定时删除
|
|
||||||
public void deleteFile(){
|
|
||||||
|
|
||||||
XxlJobProperties xxlJobProperties = new XxlJobProperties();
|
|
||||||
|
|
||||||
xxlJobProperties.setEnabled(xxlJobParameter.getEnabled());
|
|
||||||
xxlJobProperties.setAccessToken(xxlJobParameter.getAccessToken());
|
|
||||||
xxlJobProperties.getAdmin().setAddresses(xxlJobParameter.getAddresses());
|
|
||||||
xxlJobProperties.getExecutor().setAppName(xxlJobParameter.getAppName());
|
|
||||||
xxlJobProperties.getExecutor().setPort(xxlJobParameter.getPort().intValue());
|
|
||||||
xxlJobProperties.getExecutor().setIp(xxlJobParameter.getIp());
|
|
||||||
xxlJobProperties.getExecutor().setLogPath(xxlJobParameter.getLogPath());
|
|
||||||
xxlJobProperties.getExecutor().setLogRetentionDays(xxlJobParameter.getLogRetentionDays().intValue());
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@XxlJob("demoJobHandler")
|
|
||||||
public void execute() throws Exception {
|
|
||||||
deleteFile();
|
|
||||||
|
|
||||||
System.out.println("定时任务测试");
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user