Last change
on this file since de83113 was a70b5a4, checked in by ste08 <sjovanoska@…>, 4 months ago |
Report added
|
-
Property mode
set to
100644
|
File size:
664 bytes
|
Line | |
---|
1 | package com.example.skychasemk.services;
|
---|
2 |
|
---|
3 | import com.example.skychasemk.model.TopMonthlyReport;
|
---|
4 | import com.example.skychasemk.repository.TopMonthlyReportRepository;
|
---|
5 | import org.springframework.beans.factory.annotation.Autowired;
|
---|
6 | import org.springframework.stereotype.Service;
|
---|
7 |
|
---|
8 | import java.time.LocalDate;
|
---|
9 | import java.util.List;
|
---|
10 |
|
---|
11 | @Service
|
---|
12 | public class TopMonthlyReportService {
|
---|
13 | @Autowired
|
---|
14 | private TopMonthlyReportRepository repository;
|
---|
15 |
|
---|
16 | public List<TopMonthlyReport> getAllReports() {
|
---|
17 | return repository.findAll();
|
---|
18 | }
|
---|
19 |
|
---|
20 | public List<TopMonthlyReport> getReportsByMonth(LocalDate month) {
|
---|
21 | return repository.findByMonth(month);
|
---|
22 | }
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.