-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/revenue-statistics
- Loading branch information
Showing
31 changed files
with
813 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...in/java/com/backoffice/upjuyanolja/domain/coupon/repository/CouponIssuanceRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
package com.backoffice.upjuyanolja.domain.coupon.repository; | ||
|
||
import com.backoffice.upjuyanolja.domain.coupon.entity.CouponIssuance; | ||
import com.backoffice.upjuyanolja.domain.point.entity.PointUsage; | ||
import java.util.List; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface CouponIssuanceRepository extends JpaRepository<CouponIssuance, Long> { | ||
|
||
List<CouponIssuance> findByPointUsage(PointUsage pointUsage); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/main/java/com/backoffice/upjuyanolja/domain/coupon/service/CouponIssuanceGetService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.backoffice.upjuyanolja.domain.coupon.service; | ||
|
||
import com.backoffice.upjuyanolja.domain.coupon.entity.CouponIssuance; | ||
import com.backoffice.upjuyanolja.domain.coupon.repository.CouponIssuanceRepository; | ||
import com.backoffice.upjuyanolja.domain.point.entity.PointUsage; | ||
import java.util.List; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
@RequiredArgsConstructor | ||
public class CouponIssuanceGetService { | ||
|
||
private final CouponIssuanceRepository couponIssuanceRepository; | ||
|
||
public List<CouponIssuance> getCouponIssuanceByPointUsage(PointUsage pointUsage) { | ||
return couponIssuanceRepository.findByPointUsage(pointUsage); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.