定时任务去掉事务注解

master
hansha 1 year ago
parent da3bf2d4f1
commit 40b5fc8b38

@ -15,7 +15,6 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import java.io.File; import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
@ -57,10 +56,9 @@ public class TimeTask {
/** /**
* *
* *
* @throws Exception * @throws Exception
*/ */
@Transactional
public void getTaskResult() { public void getTaskResult() {
String result = ""; String result = "";
try { try {
@ -263,7 +261,7 @@ public class TimeTask {
if (info != null && info.size() > 0) { if (info != null && info.size() > 0) {
for (DaYtzm ytzm : info) { for (DaYtzm ytzm : info) {
//判断返回结果是否都是字符串 "无" //判断返回结果是否都是字符串 "无"
/* if(CallThirdInterface.allFieldsEqualTo(ytzm,"无")){ /*if(CallThirdInterface.allFieldsEqualTo(ytzm,"无")){
continue; continue;
}*/ }*/
ytzm.setAllPicIds(picIds); ytzm.setAllPicIds(picIds);

Loading…
Cancel
Save