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,