|
@@ -320,7 +320,7 @@ public class MachineNodeServiceImpl implements NodeOperationService {
|
|
|
data.put("subFileList", filePathList);
|
|
|
List<String> toolFileList=new ArrayList<>();
|
|
|
String ip = productionresource.getIp();
|
|
|
- //getSharedFilePath(toolFileList,ip);
|
|
|
+ getSharedFilePath(toolFileList,ip);
|
|
|
data.put("toolFileList", toolFileList);
|
|
|
|
|
|
|
|
@@ -524,9 +524,13 @@ public class MachineNodeServiceImpl implements NodeOperationService {
|
|
|
return deviceList.get(0);
|
|
|
}
|
|
|
|
|
|
+/* public static void main(String[] args) {
|
|
|
+ getSharedFilePath(new ArrayList<>(),"10.161.30.245");
|
|
|
+ }*/
|
|
|
|
|
|
- public void getSharedFilePath(List<String> list,String ip){
|
|
|
- String sharedFolderPath = "\\\\Win-b6h3n3fgd72\\"+ip;
|
|
|
+
|
|
|
+ public void getSharedFilePath(List<String> list,String ip){
|
|
|
+ String sharedFolderPath = "\\\\DESKTOP-NT4E3RG\\ToolDevice\\"+ip;
|
|
|
|
|
|
try {
|
|
|
Path folderPath = Paths.get(sharedFolderPath);
|
|
@@ -551,7 +555,7 @@ public class MachineNodeServiceImpl implements NodeOperationService {
|
|
|
}
|
|
|
});
|
|
|
} catch (IOException e) {
|
|
|
- log.error("上传对刀仪文件出错:",e);
|
|
|
+ log.error("刀仪共享文件出错:",e);
|
|
|
}
|
|
|
}
|
|
|
|