diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsFaultInstanceServiceImpl.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsFaultInstanceServiceImpl.java index 33fc7a69..c2c12f61 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsFaultInstanceServiceImpl.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsFaultInstanceServiceImpl.java @@ -272,6 +272,23 @@ public class DmsBillsFaultInstanceServiceImpl implements IDmsBillsFaultInstanceS queryInstanceFile1.setTargetId(activity.getInstanceActivityId()); queryInstanceFile1.setTargetType("2"); List dmsInstanceFiles1 = dmsInstanceFileMapper.selectDmsInstanceFileList(queryInstanceFile1); + dmsInstanceFiles1.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.setDmsInstanceFiles1(dmsInstanceFiles1); } }