Skip to content

Commit

Permalink
refactor: 빈 import 정리 및 자잘한 잘못된 팩키지 위치 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
matrixpower1004 committed Jan 27, 2024
1 parent 4d7c2c1 commit 4886bac
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 245 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.backoffice.upjuyanolja.domain.accommodation.dto.response;
package com.backoffice.upjuyanolja.domain.coupon.dto.response.backoffice;

import com.backoffice.upjuyanolja.domain.coupon.entity.CouponStatistics;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.backoffice.upjuyanolja.domain.coupon.dto;
package com.backoffice.upjuyanolja.domain.coupon.dto.statistics;

public interface CouponStatisticsInterface {
Long getId();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class CouponStatistics extends BaseTime {
name = "accommodation_id",
unique = true,
foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
@Comment("숙소 식별자")
private Accommodation accommodation;

@Setter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package com.backoffice.upjuyanolja.domain.coupon.repository;

import com.backoffice.upjuyanolja.domain.coupon.dto.CouponStatisticsInterface;
import com.backoffice.upjuyanolja.domain.coupon.dto.statistics.CouponStatisticsInterface;
import com.backoffice.upjuyanolja.domain.coupon.entity.CouponStatistics;
import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

Expand All @@ -29,4 +30,6 @@ public interface CouponStatisticsRepository extends JpaRepository<CouponStatisti
+ " group by ac.id) u "
+ " on t.id = u.id", nativeQuery = true)
List<CouponStatisticsInterface> createStatistics();

Optional<CouponStatistics> findByAccommodationId(Long accommodationId);
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

import com.backoffice.upjuyanolja.domain.accommodation.dto.response.CouponStatisticsResponse;
import com.backoffice.upjuyanolja.domain.coupon.dto.response.backoffice.CouponStatisticsResponse;
import com.backoffice.upjuyanolja.domain.accommodation.entity.Accommodation;
import com.backoffice.upjuyanolja.domain.accommodation.entity.AccommodationOption;
import com.backoffice.upjuyanolja.domain.accommodation.entity.Address;
Expand Down

0 comments on commit 4886bac

Please sign in to comment.