|
|
|
@ -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 {
|
|
|
|
|