Commit 708659ac authored by Quxl's avatar Quxl

x

parent 3e817d52
...@@ -8,9 +8,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -8,9 +8,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.system.ApplicationHome; import org.springframework.boot.system.ApplicationHome;
import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import com.egolm.sso.distributors.ServiceFactory; import com.egolm.sso.distributors.ServiceFactory;
import com.egolm.sso.services.CommonService; import com.egolm.sso.services.CommonService;
...@@ -35,16 +33,6 @@ public class SI004INVENTORYSyncOutServiceTask { ...@@ -35,16 +33,6 @@ public class SI004INVENTORYSyncOutServiceTask {
@Value("${WSDLPATH}") @Value("${WSDLPATH}")
private String WSDLPATH; private String WSDLPATH;
@Transactional
@Scheduled(cron="${cronSi011}")
public void execute() {
this.runTask();
}
public static void main(String[] args) {
new SI004INVENTORYSyncOutServiceTask().execute();
}
public void runTask() { public void runTask() {
ApplicationHome home = new ApplicationHome(getClass()); ApplicationHome home = new ApplicationHome(getClass());
File jarFile = home.getSource(); File jarFile = home.getSource();
......
...@@ -8,9 +8,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -8,9 +8,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.system.ApplicationHome; import org.springframework.boot.system.ApplicationHome;
import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import com.egolm.sso.distributors.ServiceFactory; import com.egolm.sso.distributors.ServiceFactory;
import com.egolm.sso.services.CommonService; import com.egolm.sso.services.CommonService;
...@@ -35,16 +33,6 @@ public class SI011ACTUALSALESSyncOutServiceTask { ...@@ -35,16 +33,6 @@ public class SI011ACTUALSALESSyncOutServiceTask {
@Value("${WSDLPATH}") @Value("${WSDLPATH}")
private String WSDLPATH; private String WSDLPATH;
@Transactional
@Scheduled(cron="${cronSi011}")
public void execute() {
this.runTask();
}
public static void main(String[] args) {
new SI011ACTUALSALESSyncOutServiceTask().execute();
}
public void runTask() { public void runTask() {
ApplicationHome home = new ApplicationHome(getClass()); ApplicationHome home = new ApplicationHome(getClass());
File jarFile = home.getSource(); File jarFile = home.getSource();
......
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