Commit 76284ec8 authored by Quxl's avatar Quxl

x

parent e2a6d393
......@@ -15,7 +15,6 @@ import org.springframework.boot.system.ApplicationHome;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.alibaba.fastjson.JSONObject;
......@@ -59,6 +58,7 @@ public class SI004INVENTORYSyncOutServiceTask {
this.runTask();
}
@Transactional
public void runTask() {
ApplicationHome home = new ApplicationHome(getClass());
File jarFile = home.getSource();
......@@ -90,7 +90,6 @@ public class SI004INVENTORYSyncOutServiceTask {
}
}
@Transactional(propagation=Propagation.REQUIRES_NEW)
public void sendData(SI004INVENTORYSyncOut SI004INVENTORYSyncOut, List<Map<String, Object>> vList) {
Date now = new Date();
boolean isSuccess = true;
......
......@@ -15,7 +15,6 @@ import org.springframework.boot.system.ApplicationHome;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.alibaba.fastjson.JSONObject;
......@@ -59,6 +58,7 @@ public class SI011ACTUALSALESSyncOutServiceTask {
this.runTask();
}
@Transactional
public void runTask() {
ApplicationHome home = new ApplicationHome(getClass());
File jarFile = home.getSource();
......@@ -90,7 +90,6 @@ public class SI011ACTUALSALESSyncOutServiceTask {
}
}
@Transactional(propagation=Propagation.REQUIRES_NEW)
public void sendData(SI011ACTUALSALESSyncOut SI011ACTUALSALESSyncOut, List<Map<String, Object>> vList) {
Date now = new Date();
boolean isSuccess = true;
......
......@@ -14,7 +14,6 @@ import org.springframework.boot.system.ApplicationHome;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.egolm.sso.clients.ServiceFactory;
......@@ -56,6 +55,7 @@ public class ZMISD009SOCREATIONServiceTask {
this.runTask();
}
@Transactional
public void runTask() {
ApplicationHome home = new ApplicationHome(getClass());
File jarFile = home.getSource();
......@@ -79,7 +79,6 @@ public class ZMISD009SOCREATIONServiceTask {
}
}
@Transactional(propagation=Propagation.REQUIRES_NEW)
public void sendData (ZMISD009SOCREATION ZMISD009SOCREATION, Map<String, Object> headerMap) {
Date now = new Date();
String timeString = DateUtil.formatDate(now, "yyyyMMddHHmmssSSS");
......
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