提交 27c08643 authored 作者: inroi's avatar inroi

微调

上级 211e9832
...@@ -43,12 +43,12 @@ public class KingdeeApiClient { ...@@ -43,12 +43,12 @@ public class KingdeeApiClient {
long beginTime=System.currentTimeMillis(); long beginTime=System.currentTimeMillis();
IdentifyInfo identifyInfo = new IdentifyInfo() {}; IdentifyInfo identifyInfo = new IdentifyInfo() {};
/*identifyInfo.setAppId("225533_53fA1cht1lH8S88GT/3ozxUK2t3b2AnE"); identifyInfo.setAppId("225533_53fA1cht1lH8S88GT/3ozxUK2t3b2AnE");
identifyInfo.setAppSecret("bd70ee8503b24e8386022a360e057605"); identifyInfo.setAppSecret("bd70ee8503b24e8386022a360e057605");
identifyInfo.setServerUrl("https://jcg-666.ik3cloud.com/K3Cloud/"); identifyInfo.setServerUrl("https://jcg-666.ik3cloud.com/K3Cloud/");
identifyInfo.setdCID("20210727181855027"); identifyInfo.setdCID("20210727181855027");
identifyInfo.setlCID(2052); identifyInfo.setlCID(2052);
identifyInfo.setUserName("Administrator");*/ identifyInfo.setUserName("Administrator");
K3CloudApi k3CloudApi = new K3CloudApi(identifyInfo); K3CloudApi k3CloudApi = new K3CloudApi(identifyInfo);
T send = k3CloudApi.execute(servicename, parameters, returnType); T send = k3CloudApi.execute(servicename, parameters, returnType);
try{ try{
......
package org.jeecg.modules.quartz.job; package org.jeecg.modules.quartz.job;
import org.jeecg.common.util.DateUtils; import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.iost.ims.service.ISynService; import org.jeecg.modules.iost.ims.service.ISynService;
import org.quartz.Job; import org.quartz.Job;
import org.quartz.JobExecutionContext; import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException; import org.quartz.JobExecutionException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.text.ParseException;
@Slf4j @Slf4j
@Component @Component
public class imsSymJob implements Job { public class imsSymJob implements Job {
...@@ -19,12 +15,13 @@ public class imsSymJob implements Job { ...@@ -19,12 +15,13 @@ public class imsSymJob implements Job {
ISynService synService; ISynService synService;
@Override @Override
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
System.out.println("开启ims自动同步定时任务,一分钟执行一次"+DateUtils.getTimestamp()); System.out.println("ims定时任务暂时注释,未开启");
/*System.out.println("开启ims自动同步定时任务,一分钟执行一次"+DateUtils.getTimestamp());
try { try {
Boolean synchronization = synService.synchronization(null); Boolean synchronization = synService.synchronization(null);
} catch (ParseException e) { } catch (ParseException e) {
e.printStackTrace(); e.printStackTrace();
} }*/
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论