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

Fix : #1, #145, #146, #147, #148, #149, #150 #151

Merged
merged 8 commits into from
Mar 16, 2024

Conversation

Young-Yeong
Copy link
Collaborator

close : #1, #145, #146, #147, #148, #149, #150

- CarRepositoryImpl
    - searchUsableCar
        - select문에 photoUrl 추가

- ReservationDetailDto
    - photoUrl 추가
    - reservationId 추가

- ReservationListResponseDto
    - photoUrl 추가

- ReservationRepositoryImpl
    - findNowReservationDetailByUsername
        - select문에 photoUrl, reservationId 추가
    - getReservationListByUsername
        - select문에 photoUrl 추가

- UsableCarResponseDto
    - photoUrl 추가

Related to : YU-RentCar#145
- KioskService
    - returnKey
        - 파이 서버 요청 URL 수정
        - "를 공백으로 변경하는 로직 추가

Related to : YU-RentCar#146
- Notice
    - updateNotice
        - null 체크하는 변수 변경

- NoticeService
    - patchNotice
        - fileName 선언 시 null로 초기화

Related to : YU-RentCar#147
- ParkingSpot
    - updateState
        - ParkingSpotType이 PARKINGSPOT_NO_CAR인 경우 car 값 null로 변경

- ParkingSpotService
    - Transactional 어노테이션 추가

Related to : YU-RentCar#148
- SecurityConfig
    - URL 추가

- WebMvcConfig
    - 불필요로 인한 삭제

Related to : YU-RentCar#149
- CustomOAuth2UserService
    - nickname을 hi에서 사용자 name으로 변경

Related to : YU-RentCar#150
- Card
    - Builder 어노테이션 적용

- InsuranceCompany
    - Builder 어노테이션 적용

- InsuranceContract
    - Builder 어노테이션 적용

- InsuranceCompanyRepository
    - JPA 적용

- InsuranceContractRepository
    - JPA 적용

Related to : YU-RentCar#1
@Young-Yeong Young-Yeong self-assigned this Nov 17, 2023
Copy link
Contributor

@Capoomaru Capoomaru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

변경할 사항들이 좀 있네요
그래도 끝났으니 그동안 수고하셨습니다
images

log.info("rfid 미인식");

return true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 true 반환이 맞나요....?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네 맞습니다. 파이서버에서 저희가 주는 값을 사용하지 않기 때문입니다.

Comment on lines +26 to 33
@ToString.Exclude
private InsuranceCompany insuranceCompany;

@NotNull
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "reservation_id")
@ToString.Exclude
private Reservation reservation;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fetch가 필요한 코드는 Exclude 해둔 점 좋네요

@@ -142,10 +154,10 @@ public SecurityFilterChain springSecurity(HttpSecurity http) throws Exception {
CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
//configuration.setAllowedOrigins(Collections.singletonList("http://42.82.185.184:3000")); // singletonList : 하나짜리 리스트
configuration.setAllowedOrigins(Arrays.asList(webBaseUrl, "http://localhost:3000", "http://localhost:3001"));
configuration.setAllowedOrigins(Arrays.asList(webBaseUrl, adminBaseUrl, piBaseUrl, pi2BaseUrl, kioskBaseUrl, "http://localhost:3000", "http://yurentcar.kro.kr:9876", "http://192.68.1.13:8000", "http://192.168.1.63", "http://192.168.1.1"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

뒤에 들어간 평문 주소값들은 지우는게 좋았을 것 같네요

- SecurityConfig
    - corsConfigurationSource
        - 주소 수정

Related to : YU-RentCar#151
@Young-Yeong Young-Yeong merged commit a665a5c into YU-RentCar:develop Mar 16, 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

Successfully merging this pull request may close these issues.

JPA Entity 매핑
2 participants