Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB 연결하기 #37

Open
ahyoon99 opened this issue Jun 27, 2024 · 0 comments
Open

DB 연결하기 #37

ahyoon99 opened this issue Jun 27, 2024 · 0 comments
Assignees

Comments

@ahyoon99
Copy link
Owner

No description provided.

@ahyoon99 ahyoon99 self-assigned this Jun 27, 2024
ahyoon99 added a commit that referenced this issue Jul 17, 2024
ahyoon99 added a commit that referenced this issue Jul 29, 2024
ahyoon99 added a commit that referenced this issue Aug 13, 2024
ahyoon99 added a commit that referenced this issue Aug 14, 2024
ahyoon99 added a commit that referenced this issue Aug 15, 2024
Related to: #37
ahyoon99 added a commit that referenced this issue Aug 15, 2024
받은 WishListEntity의 lastVisitDate가 null이 아닐 때만  setLastVisitDate() 해주기

Related to: #37
ahyoon99 added a commit that referenced this issue Aug 19, 2024
jdbcTemplate.update()의 결과가 1이면 삭제 성공, 0이면 삭제 실패한 경우이다.

Related to: #37
ahyoon99 added a commit that referenced this issue Aug 20, 2024
ahyoon99 added a commit that referenced this issue Aug 20, 2024
ahyoon99 added a commit that referenced this issue Aug 21, 2024
ahyoon99 added a commit that referenced this issue Aug 22, 2024
ahyoon99 added a commit that referenced this issue Sep 3, 2024
entity 자체를 수정해주었다.
그 결과, Service의 addVisit, setStarRating 메소드 둘 다 하나의 updateById 메소드를 통해 기능 수행이 가능해졌다.

Related to: #37
ahyoon99 added a commit that referenced this issue Sep 3, 2024
ahyoon99 added a commit that referenced this issue Sep 3, 2024
addVisit()에서 하는 일
- 최초 방문 시, isVisit을 true로 수정해주기
- visitCount 1 증가시켜주기
- starRating을 최근에 받은 값으로 수정해주기

Related to: #37
ahyoon99 added a commit that referenced this issue Sep 3, 2024
- 저장할 entity의 index가 null이라면, entity를 insert 하기
- 저장할 entity의 index가 null이 아니라면, index에 해당하는 entity의 정보를 수정(update)하기

Related to: #37
ahyoon99 added a commit that referenced this issue Sep 5, 2024
- 삭제 성공했으면 1을 return 해주기
- 삭제 실패했으면 0을 return 해주기

Related to: #37
ahyoon99 added a commit that referenced this issue Sep 5, 2024
- 방문할 때 마다, lastVisitDate 수정해주기

Related to: #37
ahyoon99 added a commit that referenced this issue Sep 6, 2024
- 맛집에 방문할 때마다, 그동안 받은 별점들의 평균을 계산해서 넣어주기

Related to: #37
ahyoon99 added a commit that referenced this issue Sep 6, 2024
- 별점 변수를 int 타입에서 double 타입으로 수정하기

Related to: #37
ahyoon99 added a commit that referenced this issue Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant