summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhangshuai <[email protected]>2024-08-26 17:07:54 +0800
committerzhangshuai <[email protected]>2024-08-26 17:07:54 +0800
commitfda9a1b2b1ae2f5b573a5c8ea4cc2fa87d45a69a (patch)
tree9d911d679e6bf43298b605e49b398ea64b4679dc
parent46e2b0632f592af9b70052f7f9822092f640ae1c (diff)
fix: application 查询时不返回 attachment path
-rw-r--r--src/main/java/net/geedge/asw/module/app/service/impl/ApplicationServiceImpl.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/net/geedge/asw/module/app/service/impl/ApplicationServiceImpl.java b/src/main/java/net/geedge/asw/module/app/service/impl/ApplicationServiceImpl.java
index 20a010e..5c8e3a9 100644
--- a/src/main/java/net/geedge/asw/module/app/service/impl/ApplicationServiceImpl.java
+++ b/src/main/java/net/geedge/asw/module/app/service/impl/ApplicationServiceImpl.java
@@ -62,6 +62,7 @@ public class ApplicationServiceImpl extends ServiceImpl<ApplicationDao, Applicat
List<ApplicationAttachmentEntity> attachmentEntityList = attachmentService.list(new LambdaQueryWrapper<ApplicationAttachmentEntity>()
.eq(ApplicationAttachmentEntity::getApplicationId, app.getId()));
+ attachmentEntityList.stream().forEach(x -> x.setPath(null));
app.setAttatchments(attachmentEntityList);
SysUserEntity createUser = userService.getById(app.getCreateUserId());