From 5f6feb7a577dfd6f75e6afff7de2f96baa2da2e6 Mon Sep 17 00:00:00 2001 From: zhanghai <120228220@qq.com> Date: Wed, 26 Jun 2024 15:56:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=B9=BF=E5=B7=9E?= =?UTF-8?q?=E5=B8=82=E5=B8=82=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/jiashi/service/UpdateService.java | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/jiashi/service/UpdateService.java b/src/main/java/com/jiashi/service/UpdateService.java index cd4ee9c..dbde763 100644 --- a/src/main/java/com/jiashi/service/UpdateService.java +++ b/src/main/java/com/jiashi/service/UpdateService.java @@ -35,7 +35,7 @@ public class UpdateService { @PostConstruct public void upload() { - String uniUrl = "http://10.2.3.24"; + String uniUrl = "http://192.168.8.74"; List cardInfos = null; ExecutorService executor2 = Executors.newFixedThreadPool(2); ExecutorService executor = Executors.newFixedThreadPool(5); @@ -71,7 +71,7 @@ public class UpdateService { log.info("目录创建失败:" + dir); } } - String cmd = "D:\\lianzhong\\Debug\\Debug\\lianzhong.exe 003 192.168.8.74 " + cardInfo.getId() + " " + picture.getPicid() + " " + cardInfo.getPatno() + " " + cardInfo.getOutdateStr() + " " + picture.getPicname() + " " + picture.getFileUrl() + " " + uniUrl + " " + picture.getRotatedegree(); + String cmd = "C:\\Debug\\lianzhong.exe 003 192.168.8.74 " + cardInfo.getId() + " " + picture.getPicid() + " " + cardInfo.getPatno() + " " + cardInfo.getOutdateStr() + " " + picture.getPicname() + " " + picture.getFileUrl() + " " + uniUrl + " " + picture.getRotatedegree(); log.info(cmd); java.lang.Process process = java.lang.Runtime.getRuntime().exec(cmd);//执行命令生成cube process.waitFor(); @@ -109,14 +109,15 @@ public class UpdateService { log.info("请求参数:"+s); // 上传 try { - CommonResult commonResult = FileUploader.uploadFilesWithParams(files, "http://10.2.130.59:8712/api/downplatform/fileUploadJpg", params); - if(commonResult.getCode()==0){ - dataQuery.updateBatchState(cardInfo,3); - - }else{ - dataQuery.updateBatchState(cardInfo,4); - log.error(commonResult.getMsg()); - } +// CommonResult commonResult = FileUploader.uploadFilesWithParams(files, "http://10.2.130.59:8712/api/downplatform/fileUploadJpg", params); +// if(commonResult.getCode()==0){ +// dataQuery.updateBatchState(cardInfo,3); +// +// }else{ +// dataQuery.updateBatchState(cardInfo,4); +// log.error(commonResult.getMsg()); +// } + dataQuery.updateBatchState(cardInfo,4); } catch (Exception e) { dataQuery.updateBatchState(cardInfo,4); log.error(e.getMessage(),e);