|
@@ -15,6 +15,7 @@ import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.io.PrintWriter;
|
|
|
import java.io.StringWriter;
|
|
|
+import java.util.Date;
|
|
|
import java.util.concurrent.*;
|
|
|
|
|
|
|
|
@@ -88,6 +89,10 @@ public class Fd720Listener {
|
|
|
log.info("任务成功返回: " + obj);
|
|
|
} catch (InterruptedException e) {
|
|
|
e.printStackTrace();
|
|
|
+ entity.setStatus(2);
|
|
|
+ StringWriter trace=new StringWriter();
|
|
|
+ log.error(trace.toString());
|
|
|
+ log.error("异常了 InterruptedException");
|
|
|
} catch (ExecutionException e) {
|
|
|
e.printStackTrace();
|
|
|
StringWriter trace=new StringWriter();
|
|
@@ -106,6 +111,7 @@ public class Fd720Listener {
|
|
|
entity.setStatus(2);
|
|
|
future.cancel(true);
|
|
|
} finally {
|
|
|
+ entity.setUpdateTime(new Date());
|
|
|
fodderMapper.updateByPrimaryKey(entity);
|
|
|
}
|
|
|
}
|