|
|
@ -119,6 +119,7 @@ public class ConvertTaskServiceImpl implements ConvertTaskService { |
|
|
entity.setResult(result); |
|
|
entity.setResult(result); |
|
|
entity.setStatus(2); |
|
|
entity.setStatus(2); |
|
|
entity.setDel(0); |
|
|
entity.setDel(0); |
|
|
|
|
|
entity.setInput(task); |
|
|
//回传给api服务保存 |
|
|
//回传给api服务保存 |
|
|
DownLoadUtil.doPost(saveUrl, JSONObject.toJSONString(entity)); |
|
|
DownLoadUtil.doPost(saveUrl, JSONObject.toJSONString(entity)); |
|
|
} |
|
|
} |
|
|
@ -204,6 +205,7 @@ public class ConvertTaskServiceImpl implements ConvertTaskService { |
|
|
String url = gofastAccessPrefix + path; |
|
|
String url = gofastAccessPrefix + path; |
|
|
//成功 发送结果 |
|
|
//成功 发送结果 |
|
|
AppResultDoc entity = new AppResultDoc(); |
|
|
AppResultDoc entity = new AppResultDoc(); |
|
|
|
|
|
entity.setInput(task); |
|
|
entity.setTaskId((String)task.get(Constants.TASKID)); |
|
|
entity.setTaskId((String)task.get(Constants.TASKID)); |
|
|
entity.setAppId((Integer)task.get(Constants.ID)); |
|
|
entity.setAppId((Integer)task.get(Constants.ID)); |
|
|
long now = System.currentTimeMillis(); |
|
|
long now = System.currentTimeMillis(); |
|
|
@ -221,6 +223,7 @@ public class ConvertTaskServiceImpl implements ConvertTaskService { |
|
|
|
|
|
|
|
|
// 压缩失败,按失败处理 |
|
|
// 压缩失败,按失败处理 |
|
|
AppResultDoc entity = new AppResultDoc(); |
|
|
AppResultDoc entity = new AppResultDoc(); |
|
|
|
|
|
entity.setInput(task); |
|
|
entity.setTaskId((String) task.get(Constants.TASKID)); |
|
|
entity.setTaskId((String) task.get(Constants.TASKID)); |
|
|
entity.setAppId((Integer) task.get(Constants.ID)); |
|
|
entity.setAppId((Integer) task.get(Constants.ID)); |
|
|
long now = System.currentTimeMillis(); |
|
|
long now = System.currentTimeMillis(); |
|
|
@ -240,6 +243,7 @@ public class ConvertTaskServiceImpl implements ConvertTaskService { |
|
|
log.error("html文档转换异常:{}",resStr); |
|
|
log.error("html文档转换异常:{}",resStr); |
|
|
//发送失败结果 |
|
|
//发送失败结果 |
|
|
AppResultDoc entity = new AppResultDoc(); |
|
|
AppResultDoc entity = new AppResultDoc(); |
|
|
|
|
|
entity.setInput(task); |
|
|
entity.setTaskId((String)task.get(Constants.TASKID)); |
|
|
entity.setTaskId((String)task.get(Constants.TASKID)); |
|
|
entity.setAppId((Integer)task.get(Constants.ID)); |
|
|
entity.setAppId((Integer)task.get(Constants.ID)); |
|
|
long now = System.currentTimeMillis(); |
|
|
long now = System.currentTimeMillis(); |
|
|
@ -282,6 +286,7 @@ public class ConvertTaskServiceImpl implements ConvertTaskService { |
|
|
entity.setResult(result); |
|
|
entity.setResult(result); |
|
|
entity.setStatus(1); |
|
|
entity.setStatus(1); |
|
|
entity.setDel(0); |
|
|
entity.setDel(0); |
|
|
|
|
|
entity.setInput(task); |
|
|
//回传给api服务保存 |
|
|
//回传给api服务保存 |
|
|
DownLoadUtil.doPost(saveUrl, JSONObject.toJSONString(entity)); |
|
|
DownLoadUtil.doPost(saveUrl, JSONObject.toJSONString(entity)); |
|
|
}else { |
|
|
}else { |
|
|
@ -289,6 +294,7 @@ public class ConvertTaskServiceImpl implements ConvertTaskService { |
|
|
log.error("文档转换异常:{}",resStr); |
|
|
log.error("文档转换异常:{}",resStr); |
|
|
//发送失败结果 |
|
|
//发送失败结果 |
|
|
AppResultDoc entity = new AppResultDoc(); |
|
|
AppResultDoc entity = new AppResultDoc(); |
|
|
|
|
|
entity.setInput(task); |
|
|
entity.setTaskId((String)task.get(Constants.TASKID)); |
|
|
entity.setTaskId((String)task.get(Constants.TASKID)); |
|
|
entity.setAppId((Integer)task.get(Constants.ID)); |
|
|
entity.setAppId((Integer)task.get(Constants.ID)); |
|
|
long now = System.currentTimeMillis(); |
|
|
long now = System.currentTimeMillis(); |
|
|
@ -308,6 +314,7 @@ public class ConvertTaskServiceImpl implements ConvertTaskService { |
|
|
log.error("文档转换异常:{}",resStr); |
|
|
log.error("文档转换异常:{}",resStr); |
|
|
//发送失败结果 |
|
|
//发送失败结果 |
|
|
AppResultDoc entity = new AppResultDoc(); |
|
|
AppResultDoc entity = new AppResultDoc(); |
|
|
|
|
|
entity.setInput(task); |
|
|
entity.setTaskId((String)task.get(Constants.TASKID)); |
|
|
entity.setTaskId((String)task.get(Constants.TASKID)); |
|
|
entity.setAppId((Integer)task.get(Constants.ID)); |
|
|
entity.setAppId((Integer)task.get(Constants.ID)); |
|
|
long now = System.currentTimeMillis(); |
|
|
long now = System.currentTimeMillis(); |
|
|
@ -327,6 +334,7 @@ public class ConvertTaskServiceImpl implements ConvertTaskService { |
|
|
log.error("创建文档解析任务异常。e:",e); |
|
|
log.error("创建文档解析任务异常。e:",e); |
|
|
//发送失败结果 |
|
|
//发送失败结果 |
|
|
AppResultDoc entity = new AppResultDoc(); |
|
|
AppResultDoc entity = new AppResultDoc(); |
|
|
|
|
|
entity.setInput(task); |
|
|
entity.setTaskId((String)task.get(Constants.TASKID)); |
|
|
entity.setTaskId((String)task.get(Constants.TASKID)); |
|
|
entity.setAppId((Integer)task.get(Constants.ID)); |
|
|
entity.setAppId((Integer)task.get(Constants.ID)); |
|
|
long now = System.currentTimeMillis(); |
|
|
long now = System.currentTimeMillis(); |
|
|
|