|
@ -440,8 +440,15 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService { |
|
|
List<BusinessAlert> businessAlerts = this.baseMapper.listAlert(businessAlertBo, startTime, endTime); |
|
|
List<BusinessAlert> businessAlerts = this.baseMapper.listAlert(businessAlertBo, startTime, endTime); |
|
|
|
|
|
|
|
|
businessAlerts.forEach(businessAlertVo->{ |
|
|
businessAlerts.forEach(businessAlertVo->{ |
|
|
URL url = MinioUntil.getObjectUrlOne(MinIOConstants.BUCKET_ALERT, businessAlertVo.getImages(), 3600); |
|
|
if (businessAlertVo.getBusinessType() == 2){ |
|
|
businessAlertVo.setImages(url.toString()); |
|
|
URL url = MinioUntil.getObjectUrlOne(MinIOConstants.BUCKET_DKCY, businessAlertVo.getImages(), 3600); |
|
|
|
|
|
|
|
|
|
|
|
businessAlertVo.setImages(url.toString()); |
|
|
|
|
|
}else { |
|
|
|
|
|
URL url = MinioUntil.getObjectUrlOne(MinIOConstants.BUCKET_ALERT, businessAlertVo.getImages(), 3600); |
|
|
|
|
|
|
|
|
|
|
|
businessAlertVo.setImages(url.toString()); |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
result.put("list",businessAlerts); |
|
|
result.put("list",businessAlerts); |
|
@ -457,8 +464,15 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService { |
|
|
List<BusinessAlert> alertList = this.baseMapper.listAlert(businessAlertBo, startTime, endTime); |
|
|
List<BusinessAlert> alertList = this.baseMapper.listAlert(businessAlertBo, startTime, endTime); |
|
|
|
|
|
|
|
|
alertList.forEach(businessAlertVo->{ |
|
|
alertList.forEach(businessAlertVo->{ |
|
|
URL url = MinioUntil.getObjectUrlOne(MinIOConstants.BUCKET_ALERT, businessAlertVo.getImages(), 3600); |
|
|
if (businessAlertVo.getBusinessType() == 2){ |
|
|
businessAlertVo.setImages(url.toString()); |
|
|
URL url = MinioUntil.getObjectUrlOne(MinIOConstants.BUCKET_DKCY, businessAlertVo.getImages(), 3600); |
|
|
|
|
|
|
|
|
|
|
|
businessAlertVo.setImages(url.toString()); |
|
|
|
|
|
}else { |
|
|
|
|
|
URL url = MinioUntil.getObjectUrlOne(MinIOConstants.BUCKET_ALERT, businessAlertVo.getImages(), 3600); |
|
|
|
|
|
|
|
|
|
|
|
businessAlertVo.setImages(url.toString()); |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
handlerMap.put("total",alertList.size()); |
|
|
handlerMap.put("total",alertList.size()); |
|
@ -508,8 +522,15 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService { |
|
|
List<BusinessAlert> alertList = this.baseMapper.listAlert(businessAlertBo, startTime, endTime); |
|
|
List<BusinessAlert> alertList = this.baseMapper.listAlert(businessAlertBo, startTime, endTime); |
|
|
|
|
|
|
|
|
alertList.forEach(businessAlertVo->{ |
|
|
alertList.forEach(businessAlertVo->{ |
|
|
URL url = MinioUntil.getObjectUrlOne(MinIOConstants.BUCKET_ALERT, businessAlertVo.getImages(), 3600); |
|
|
if (businessAlertVo.getBusinessType() == 2){ |
|
|
businessAlertVo.setImages(url.toString()); |
|
|
URL url = MinioUntil.getObjectUrlOne(MinIOConstants.BUCKET_DKCY, businessAlertVo.getImages(), 3600); |
|
|
|
|
|
|
|
|
|
|
|
businessAlertVo.setImages(url.toString()); |
|
|
|
|
|
}else { |
|
|
|
|
|
URL url = MinioUntil.getObjectUrlOne(MinIOConstants.BUCKET_ALERT, businessAlertVo.getImages(), 3600); |
|
|
|
|
|
|
|
|
|
|
|
businessAlertVo.setImages(url.toString()); |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|