|
|
|
@ -261,6 +261,22 @@ public class DmsBillsFaultInstanceServiceImpl implements IDmsBillsFaultInstanceS
|
|
|
|
|
queryInstanceFile.setTargetId(activity.getInstanceActivityId());
|
|
|
|
|
queryInstanceFile.setTargetType("1");
|
|
|
|
|
List<DmsInstanceFile> dmsInstanceFiles = dmsInstanceFileMapper.selectDmsInstanceFileList(queryInstanceFile);
|
|
|
|
|
dmsInstanceFiles.forEach(dif ->{
|
|
|
|
|
String filePath = dif.getFilePath();
|
|
|
|
|
log.info("filePath1:"+filePath);
|
|
|
|
|
if(!filePath.contains("7309")){
|
|
|
|
|
if(filePath.contains("https")){
|
|
|
|
|
filePath.replaceFirst("https","http");
|
|
|
|
|
}
|
|
|
|
|
int index= filePath.indexOf("/statics");
|
|
|
|
|
filePath = "http://172.16.12.100:7309"+filePath.substring(index);
|
|
|
|
|
log.info("filePath2:"+filePath);
|
|
|
|
|
dif.setUrl(filePath);
|
|
|
|
|
dif.setFilePath(filePath);
|
|
|
|
|
}else{
|
|
|
|
|
dif.setUrl(dif.getFilePath());
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
dmsBillsFaultInstance.setDmsInstanceFiles(dmsInstanceFiles);
|
|
|
|
|
dmsBillsFaultInstance.setConfirmTime(instanceActivity.getConfirmTime());
|
|
|
|
|
dmsBillsFaultInstance.setRepairContent(instanceActivity.getRepairContent());
|
|
|
|
|