Skip to content
Merged
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
91ac4ae
Article Repository Jpa / Query 전용 구분
qowl880 May 28, 2025
5047664
Article Custom Error Exception 구현
qowl880 May 28, 2025
cbb0240
Auditing 설정 추가
qowl880 May 28, 2025
d611745
Article Create Controller 구현
qowl880 May 28, 2025
2d563ab
Article Delete Controller 구현
qowl880 May 28, 2025
b736260
Article Controller CUD 구현
qowl880 May 28, 2025
4d72b0e
Comment Repository Jpa / Query 전용 구분
qowl880 May 28, 2025
2487093
Comment Controller Create 구현
qowl880 May 28, 2025
d3a3f3d
application yml파일 배포/로컬 분리
qowl880 May 28, 2025
6638538
Article Create Controller 구현
qowl880 May 28, 2025
51384de
Article Delete Controller 구현
qowl880 May 28, 2025
54f2884
Article Controller CUD 구현
qowl880 May 28, 2025
ba697cc
application.yml 통합
qowl880 May 28, 2025
22dac92
Article Repository 설정
qowl880 Jun 3, 2025
d35d936
Comment Error Exception 생성
qowl880 Jun 4, 2025
0bfbbb4
구조 변경
qowl880 Jun 4, 2025
50e1128
Comment Read 전용 Dao 생성
qowl880 Jun 4, 2025
657b3e5
application yml파일 배포/로컬 분리
qowl880 May 28, 2025
64b2d11
Article Repository Jpa / Query 전용 구분
qowl880 May 28, 2025
8334c33
Article Create Controller 구현
qowl880 May 28, 2025
34c7b0f
Article Delete Controller 구현
qowl880 May 28, 2025
90f90ff
Article Controller CUD 구현
qowl880 May 28, 2025
08aa5c4
application.yml 통합
qowl880 May 28, 2025
57b13e3
Article Repository 설정
qowl880 Jun 3, 2025
309fdd7
개행 추가
qowl880 Jun 6, 2025
f4f697e
ErrorException 통합
qowl880 Jun 8, 2025
a139527
Dao -> QueryResult 파일명 변경
qowl880 Jun 8, 2025
e82496c
Update IdolApplication.java
qowl880 Jun 10, 2025
f709a4a
유저 인증 검사 추가
qowl880 Jun 14, 2025
d7d1929
Article Entity 구현
qowl880 May 28, 2025
b3d7b9b
Article Repository Jpa / Query 전용 구분
qowl880 May 28, 2025
63c9296
Article Custom Error Exception 구현
qowl880 May 28, 2025
2a41c1f
Auditing 설정 추가
qowl880 May 28, 2025
891a6b2
Article Create Controller 구현
qowl880 May 28, 2025
6ffbd81
Article Delete Controller 구현
qowl880 May 28, 2025
337d39c
Article Controller CUD 구현
qowl880 May 28, 2025
bb860a0
S3 관련 이미지 업로드 및 호출 기능 구현
qowl880 May 28, 2025
e8d78ed
Comment Repository Jpa / Query 전용 구분
qowl880 May 28, 2025
384a216
Comment Controller Create 구현
qowl880 May 28, 2025
b2e1952
application yml파일 배포/로컬 분리
qowl880 May 28, 2025
093bc8f
Article Create Controller 구현
qowl880 May 28, 2025
b8f7bba
Article Delete Controller 구현
qowl880 May 28, 2025
2615ecf
Article Controller CUD 구현
qowl880 May 28, 2025
da248ed
application.yml 통합
qowl880 May 28, 2025
10d6e5b
Article Repository 설정
qowl880 Jun 3, 2025
7974678
Comment Error Exception 생성
qowl880 Jun 4, 2025
17421ed
구조 변경
qowl880 Jun 4, 2025
f730761
Comment Read 전용 Dao 생성
qowl880 Jun 4, 2025
42a1b15
application yml파일 배포/로컬 분리
qowl880 May 28, 2025
a1ab5be
Article Repository Jpa / Query 전용 구분
qowl880 May 28, 2025
3b67c81
Article Create Controller 구현
qowl880 May 28, 2025
d4088da
Article Delete Controller 구현
qowl880 May 28, 2025
57fc8cb
Article Controller CUD 구현
qowl880 May 28, 2025
21f4733
application.yml 통합
qowl880 May 28, 2025
f38e1b0
SoftDelete 추가
qowl880 Jun 3, 2025
289c6bf
Article Repository 설정
qowl880 Jun 3, 2025
d6e87a9
개행 추가
qowl880 Jun 6, 2025
fdbefd1
ErrorException 통합
qowl880 Jun 8, 2025
38cb966
Dao -> QueryResult 파일명 변경
qowl880 Jun 8, 2025
f109f7e
S3 의존성 변경에 따른 구조 변경
qowl880 Jun 8, 2025
aff53b1
Update IdolApplication.java
qowl880 Jun 10, 2025
dd290c2
유저 인증 검사 추가
qowl880 Jun 14, 2025
942a8e3
@Where 삭제
qowl880 Jun 17, 2025
1042315
오류로 인한 주석처리
qowl880 Jun 18, 2025
546a733
aws 관련 설정 추가
qowl880 Jun 19, 2025
8248389
게시물 상태 변경 고정 오류 해결
qowl880 Jun 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

@Service
@RequiredArgsConstructor
@Transactional()
@Transactional
public class ReadArticleService implements ReadArticleUseCase {

private final ArticleRepository articleRepository;
Expand All @@ -44,7 +44,7 @@ public class ReadArticleService implements ReadArticleUseCase {
private final WishRepository wishRepository;

@Override
@Transactional(readOnly = true)

public ArticleReadResponseDto readArticle(Long articleId, Long userId) {
Article article = articleRepository.findByArticleId(articleId)
.orElseThrow(() -> new NotFoundException("Article", articleId));
Expand Down Expand Up @@ -94,7 +94,6 @@ public ArticleReadResponseDto readArticle(Long articleId, Long userId) {


@Override
@Transactional(readOnly = true)
public List<ArticleListImgResponseDto> searchArticleList(
BigCategory bigCategory, SmallCategory smallCategory, String location,
Long date, String sort, boolean sortAsc, Long limit, Long page, Long memberId) {
Expand Down Expand Up @@ -127,7 +126,9 @@ public List<ArticleListImgResponseDto> searchArticleList(

private void validateCheckOpenStatus(Article article) {
if(article.getCurrentPerson() >= article.getMinPerson()){
article.updateOpenStatus(OpenStatus.CONFIRMED_STATUS);
if(article.getOpenStatus().equals(OpenStatus.PENDING_STATUS)) {
article.updateOpenStatus(OpenStatus.CONFIRMED_STATUS);
}
}
}

Expand All @@ -140,7 +141,7 @@ private OpenStatus validateCheckDeadlineStatus(Long articleId, OpenStatus status
if(status.equals(OpenStatus.CONFIRMED_STATUS)) {
article.updateOpenStatus(OpenStatus.DEADLINE_STATUS);
return OpenStatus.DEADLINE_STATUS;
}else{
}else if(status.equals(OpenStatus.PENDING_STATUS)){
article.updateOpenStatus(OpenStatus.CANCELED_STATUS);
return OpenStatus.CANCELED_STATUS;
}
Expand Down