From 6f52790cd401dd50371190411cb7982d66b60c08 Mon Sep 17 00:00:00 2001 From: Yoonchulchung Date: Thu, 12 Feb 2026 19:35:52 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix(#392):=20=EB=B8=8C=EB=9E=9C=EB=93=9C=20?= =?UTF-8?q?=EC=83=81=EC=84=B8=20=EC=A1=B0=ED=9A=8C=20API=EC=97=90=EC=84=9C?= =?UTF-8?q?=20=EB=B8=8C=EB=9E=9C=EC=9D=98=20=EC=9C=A0=EC=A0=80=EC=9D=98=20?= =?UTF-8?q?ID=EA=B0=80=20=EB=82=98=EC=98=AC=20=EC=88=98=20=EC=9E=88?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RealMatch/brand/application/service/BrandService.java | 1 + .../brand/presentation/dto/response/BrandDetailResponseDto.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/com/example/RealMatch/brand/application/service/BrandService.java b/src/main/java/com/example/RealMatch/brand/application/service/BrandService.java index c1c8bc96..ce25326a 100644 --- a/src/main/java/com/example/RealMatch/brand/application/service/BrandService.java +++ b/src/main/java/com/example/RealMatch/brand/application/service/BrandService.java @@ -106,6 +106,7 @@ public BrandDetailResponseDto getBrandDetail(Long brandId, Long currentUserId) { BrandDetailResponseDto.BrandDetailResponseDtoBuilder responseBuilder = BrandDetailResponseDto.builder() .userId(currentUserId) .brandName(brand.getBrandName()) + .brandUserId(String.valueOf(brand.getUser().getId())) .brandImages(brandImages) .logoUrl(brand.getLogoUrl()) .simpleIntro(brand.getSimpleIntro()) diff --git a/src/main/java/com/example/RealMatch/brand/presentation/dto/response/BrandDetailResponseDto.java b/src/main/java/com/example/RealMatch/brand/presentation/dto/response/BrandDetailResponseDto.java index 997fc2aa..ccfa5a28 100644 --- a/src/main/java/com/example/RealMatch/brand/presentation/dto/response/BrandDetailResponseDto.java +++ b/src/main/java/com/example/RealMatch/brand/presentation/dto/response/BrandDetailResponseDto.java @@ -10,6 +10,7 @@ public class BrandDetailResponseDto { private Long userId; private String brandName; + private String brandUserId; private List brandImages; private String logoUrl; private String simpleIntro; From f798870c9da3c0db8d8cbd2f52242f3201081a62 Mon Sep 17 00:00:00 2001 From: Yoonchulchung Date: Thu, 12 Feb 2026 20:15:54 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix(#392):=20=EC=BC=90=ED=8E=98=EC=9D=B8=20?= =?UTF-8?q?=EC=A0=9C=EC=95=88=20=EC=A1=B0=ED=9A=8C=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EB=B8=8C=EB=9E=9C=EB=93=9C=EC=9D=98=20=EC=9C=A0=EC=A0=80?= =?UTF-8?q?=EC=9D=98=20ID=EA=B0=80=20=EB=82=98=EC=98=A4=EB=8F=84=EB=A1=9D?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/service/CollaborationQueryService.java | 4 ++++ .../business/domain/repository/CampaignApplyRepository.java | 2 ++ .../domain/repository/CampaignProposalRepositoryImpl.java | 1 + .../presentation/dto/response/CollaborationProjection.java | 1 + .../presentation/dto/response/CollaborationResponse.java | 1 + 5 files changed, 9 insertions(+) diff --git a/src/main/java/com/example/RealMatch/business/application/service/CollaborationQueryService.java b/src/main/java/com/example/RealMatch/business/application/service/CollaborationQueryService.java index ad015f5a..4ed763d8 100644 --- a/src/main/java/com/example/RealMatch/business/application/service/CollaborationQueryService.java +++ b/src/main/java/com/example/RealMatch/business/application/service/CollaborationQueryService.java @@ -61,6 +61,7 @@ private void getAppliedCampaign(Long userId, CollaborationType type, ProposalSta p.campaignId(), null, p.brandId(), + p.brandUserId(), p.brandName(), // attachmentUrlService.getAccessUrl(p.thumbnailS3Key()), p.thumbnailS3Key(), @@ -95,6 +96,7 @@ private void getReceivedProposal(Long userId, CollaborationType type, ProposalSt p.campaignId(), p.proposalId(), p.brandId(), + p.brandUserId(), p.brandName(), // attachmentUrlService.getAccessUrl(p.thumbnailS3Key()), p.thumbnailS3Key(), @@ -130,6 +132,7 @@ private void getSentProposal(Long userId, CollaborationType type, ProposalStatus p.campaignId(), p.proposalId(), p.brandId(), + p.brandUserId(), p.brandName(), // attachmentUrlService.getAccessUrl(p.thumbnailS3Key()), p.thumbnailS3Key(), @@ -205,6 +208,7 @@ public List searchMyCollaborations(Long userId, Role role p.campaignId(), p.proposalId(), p.brandId(), + p.brandUserId(), p.brandName(), // attachmentUrlService.getAccessUrl(p.thumbnailS3Key()), p.thumbnailS3Key(), diff --git a/src/main/java/com/example/RealMatch/business/domain/repository/CampaignApplyRepository.java b/src/main/java/com/example/RealMatch/business/domain/repository/CampaignApplyRepository.java index d3452c71..938f3679 100644 --- a/src/main/java/com/example/RealMatch/business/domain/repository/CampaignApplyRepository.java +++ b/src/main/java/com/example/RealMatch/business/domain/repository/CampaignApplyRepository.java @@ -32,6 +32,7 @@ SELECT ca.campaign.id, COUNT(ca) c.id, null, b.id, + b.user.id, b.brandName, b.logoUrl, c.title, @@ -60,6 +61,7 @@ List findMyAppliedCollaborations( c.id, null, b.id, + b.user.id, b.brandName, b.logoUrl, c.title, diff --git a/src/main/java/com/example/RealMatch/business/domain/repository/CampaignProposalRepositoryImpl.java b/src/main/java/com/example/RealMatch/business/domain/repository/CampaignProposalRepositoryImpl.java index 570bd9ea..3ea86bc0 100644 --- a/src/main/java/com/example/RealMatch/business/domain/repository/CampaignProposalRepositoryImpl.java +++ b/src/main/java/com/example/RealMatch/business/domain/repository/CampaignProposalRepositoryImpl.java @@ -56,6 +56,7 @@ private List baseProposalQuery( campaign.id, campaignProposal.id, brand.id, + brand.user.id, brand.brandName, brand.logoUrl, campaignProposal.title, diff --git a/src/main/java/com/example/RealMatch/business/presentation/dto/response/CollaborationProjection.java b/src/main/java/com/example/RealMatch/business/presentation/dto/response/CollaborationProjection.java index b04109b1..482fb97b 100644 --- a/src/main/java/com/example/RealMatch/business/presentation/dto/response/CollaborationProjection.java +++ b/src/main/java/com/example/RealMatch/business/presentation/dto/response/CollaborationProjection.java @@ -12,6 +12,7 @@ public record CollaborationProjection( Long campaignId, Long proposalId, Long brandId, + Long brandUserId, String brandName, String thumbnailS3Key, // 내부 전용 diff --git a/src/main/java/com/example/RealMatch/business/presentation/dto/response/CollaborationResponse.java b/src/main/java/com/example/RealMatch/business/presentation/dto/response/CollaborationResponse.java index 5526756c..d48817e1 100644 --- a/src/main/java/com/example/RealMatch/business/presentation/dto/response/CollaborationResponse.java +++ b/src/main/java/com/example/RealMatch/business/presentation/dto/response/CollaborationResponse.java @@ -9,6 +9,7 @@ public record CollaborationResponse( Long campaignId, // 캠페인 기반일 때만 채움 Long proposalId, // 제안 기반일 때만 채움 Long brandId, + Long brandUserId, String brandName, String thumbnailUrl,