Commit 76284ec8 authored by Quxl's avatar Quxl

x

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