|
|
@ -35,7 +35,7 @@ public class UpdateService {
|
|
|
|
|
|
|
|
|
|
|
|
@PostConstruct
|
|
|
|
@PostConstruct
|
|
|
|
public void upload() {
|
|
|
|
public void upload() {
|
|
|
|
String uniUrl = "http://10.2.3.24";
|
|
|
|
String uniUrl = "http://192.168.8.74";
|
|
|
|
List<CardInfo> cardInfos = null;
|
|
|
|
List<CardInfo> cardInfos = null;
|
|
|
|
ExecutorService executor2 = Executors.newFixedThreadPool(2);
|
|
|
|
ExecutorService executor2 = Executors.newFixedThreadPool(2);
|
|
|
|
ExecutorService executor = Executors.newFixedThreadPool(5);
|
|
|
|
ExecutorService executor = Executors.newFixedThreadPool(5);
|
|
|
@ -71,7 +71,7 @@ public class UpdateService {
|
|
|
|
log.info("目录创建失败:" + dir);
|
|
|
|
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);
|
|
|
|
log.info(cmd);
|
|
|
|
java.lang.Process process = java.lang.Runtime.getRuntime().exec(cmd);//执行命令生成cube
|
|
|
|
java.lang.Process process = java.lang.Runtime.getRuntime().exec(cmd);//执行命令生成cube
|
|
|
|
process.waitFor();
|
|
|
|
process.waitFor();
|
|
|
@ -109,14 +109,15 @@ public class UpdateService {
|
|
|
|
log.info("请求参数:"+s);
|
|
|
|
log.info("请求参数:"+s);
|
|
|
|
// 上传
|
|
|
|
// 上传
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
CommonResult commonResult = FileUploader.uploadFilesWithParams(files, "http://10.2.130.59:8712/api/downplatform/fileUploadJpg", params);
|
|
|
|
// CommonResult commonResult = FileUploader.uploadFilesWithParams(files, "http://10.2.130.59:8712/api/downplatform/fileUploadJpg", params);
|
|
|
|
if(commonResult.getCode()==0){
|
|
|
|
// if(commonResult.getCode()==0){
|
|
|
|
dataQuery.updateBatchState(cardInfo,3);
|
|
|
|
// dataQuery.updateBatchState(cardInfo,3);
|
|
|
|
|
|
|
|
//
|
|
|
|
}else{
|
|
|
|
// }else{
|
|
|
|
dataQuery.updateBatchState(cardInfo,4);
|
|
|
|
// dataQuery.updateBatchState(cardInfo,4);
|
|
|
|
log.error(commonResult.getMsg());
|
|
|
|
// log.error(commonResult.getMsg());
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
dataQuery.updateBatchState(cardInfo,4);
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
dataQuery.updateBatchState(cardInfo,4);
|
|
|
|
dataQuery.updateBatchState(cardInfo,4);
|
|
|
|
log.error(e.getMessage(),e);
|
|
|
|
log.error(e.getMessage(),e);
|
|
|
|