|
@@ -321,7 +321,10 @@ public class MsgUtil implements ApplicationContextAware {
|
|
|
int measuringResult = returnData.trim().equals("1") ? 0 : 1;
|
|
|
//String measuringResultFile = filePath + bomProcedure.getThreeDimensionalPrograme() + "_" + taskNode.getProcedureNo() + "_" + task.getCompleteBatchNo() + "_" + taskNode.getId() +".pdf";
|
|
|
String date = DateUtil.dateToString0(new Date(), "yyyy-M-dd");
|
|
|
- String measuringResultFile = SmbShareFileUtil.findNewMeasuringFiles(fileIp,userName,password,filePath + date + "/");
|
|
|
+
|
|
|
+ // todo wang.sq三坐标测量最终报告位置查询
|
|
|
+ //String measuringResultFile = SmbShareFileUtil.findNewMeasuringFiles(fileIp,userName,password,filePath + date + "/");
|
|
|
+ String measuringResultFile = "";
|
|
|
//List<String> fileContents = new ArrayList<>();
|
|
|
logger.warn("获取检测结果文件路径{}", measuringResultFile);
|
|
|
OrderQuality orderQuality = new OrderQuality();
|
|
@@ -391,12 +394,14 @@ public class MsgUtil implements ApplicationContextAware {
|
|
|
}
|
|
|
}else if ("5".equals(taskNode.getNodeType())){
|
|
|
// 工件坐标系检测
|
|
|
+ // todo wang.sq三坐标测量偏移量数据添加
|
|
|
String nginxRemoteFilePath = "";
|
|
|
String findFileName = taskNode.getCompleteBatchNo()+ "_" + task.getProcedureNo();
|
|
|
List list = new ArrayList<>();
|
|
|
if(StringUtils.isNotBlank(findFileName)){
|
|
|
// 远程下载报告文件到本地
|
|
|
- String downloadFileName = SmbShareFileUtil.findMeasuringFilesAndDownload(fileIp,userName,password,filePath,findFileName,uploadFolder);
|
|
|
+/* String downloadFileName = SmbShareFileUtil.findMeasuringFilesAndDownload(fileIp,userName,password,filePath,findFileName,uploadFolder);
|
|
|
+
|
|
|
|
|
|
if (StringUtils.isNotBlank(downloadFileName)) {
|
|
|
nginxRemoteFilePath = uploadFolder + File.separator + downloadFileName;
|
|
@@ -445,8 +450,8 @@ public class MsgUtil implements ApplicationContextAware {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- // TODO 遍历解析测量文件内容并入库保存,根据最终测量报告修改
|
|
|
+ }*/
|
|
|
+ // 与数据库比对是否已经有存在的数据,如果有则舍去,没有则新增
|
|
|
if (list.size() == 18) {
|
|
|
// 读取三坐标工件坐标系每根轴偏移量
|
|
|
BigDecimal xOffset = new BigDecimal(list.get(13).toString());
|