袁强 3 months ago
parent
commit
9a0668c629
  1. 16
      dk-modules/business/src/main/java/org/dromara/business/service/impl/BusinessAlertServiceImpl.java

16
dk-modules/business/src/main/java/org/dromara/business/service/impl/BusinessAlertServiceImpl.java

@ -206,6 +206,7 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService {
Page<BusinessAlert> page = this.baseMapper.pageBusinessAlert(pageQuery.build(), wrapper);
try {
page.getRecords().forEach(businessAlertVo->{
if (businessAlertVo.getBusinessType() == 2){
businessAlertVo.setImages(MinioUntil.getObjectUrlOne(MinIOConstants.BUCKET_DKCY, businessAlertVo.getImages(), 3600).toString());
@ -216,6 +217,9 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService {
businessAlertVo.setMateSourceImgUrl(MinioUntil.getObjectUrlOne(MinIOConstants.BUCKET_ALERT, businessAlertVo.getMateSourceImgUrl(), 3600).toString());
}
});
} catch (Exception e) {
}
return TableDataInfo.build(page);
}
@ -239,6 +243,7 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService {
Page<BusinessAlert> page = this.baseMapper.pageBusinessAlertCancel(pageQuery.build(), wrapper);
try {
page.getRecords().forEach(businessAlertVo->{
if (businessAlertVo.getBusinessType() == 2){
businessAlertVo.setImages(MinioUntil.getObjectUrlOne(MinIOConstants.BUCKET_DKCY, businessAlertVo.getImages(), 3600).toString());
@ -249,6 +254,9 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService {
businessAlertVo.setMateSourceImgUrl(MinioUntil.getObjectUrlOne(MinIOConstants.BUCKET_ALERT, businessAlertVo.getMateSourceImgUrl(), 3600).toString());
}
});
} catch (Exception e) {
}
return TableDataInfo.build(page);
}
@ -274,6 +282,7 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService {
Page<BusinessAlert> page = this.baseMapper.pageAlertFinish(pageQuery.build(), wrapper);
try {
page.getRecords().forEach(businessAlertVo->{
if (businessAlertVo.getBusinessType() == 2){
businessAlertVo.setImages(MinioUntil.getObjectUrlOne(MinIOConstants.BUCKET_DKCY, businessAlertVo.getImages(), 3600).toString());
@ -284,6 +293,9 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService {
businessAlertVo.setMateSourceImgUrl(MinioUntil.getObjectUrlOne(MinIOConstants.BUCKET_ALERT, businessAlertVo.getMateSourceImgUrl(), 3600).toString());
}
});
} catch (Exception e) {
}
return TableDataInfo.build(page);
}
@ -322,6 +334,7 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService {
});
}
try {
page.getRecords().forEach(businessAlertVo->{
if (businessAlertVo.getBusinessType() == 2){
businessAlertVo.setImages(MinioUntil.getObjectUrlOne(MinIOConstants.BUCKET_DKCY, businessAlertVo.getImages(), 3600).toString());
@ -332,6 +345,9 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService {
businessAlertVo.setMateSourceImgUrl(MinioUntil.getObjectUrlOne(MinIOConstants.BUCKET_ALERT, businessAlertVo.getMateSourceImgUrl(), 3600).toString());
}
});
} catch (Exception e) {
}
return TableDataInfo.build(page);
}

Loading…
Cancel
Save