Last change
on this file since ee27685 was ee27685, checked in by Blazho <aleksandar.blazhevski@…>, 5 months ago |
Added order items page
|
-
Property mode
set to
100644
|
File size:
983 bytes
|
Line | |
---|
1 | package com.example.cookbook.service.impl;
|
---|
2 |
|
---|
3 |
|
---|
4 | import com.example.cookbook.model.Naracka;
|
---|
5 | import com.example.cookbook.model.Recept;
|
---|
6 | import com.example.cookbook.model.Stavka;
|
---|
7 | import com.example.cookbook.repository.NarackiRepository;
|
---|
8 | import com.example.cookbook.service.NarackiService;
|
---|
9 | import org.springframework.stereotype.Service;
|
---|
10 |
|
---|
11 | import java.sql.SQLException;
|
---|
12 | import java.time.LocalDateTime;
|
---|
13 | import java.util.List;
|
---|
14 |
|
---|
15 | @Service
|
---|
16 | public class NarackiServiceImpl implements NarackiService {
|
---|
17 |
|
---|
18 | private final NarackiRepository narackiRepository;
|
---|
19 |
|
---|
20 | public NarackiServiceImpl(NarackiRepository narackiRepository) {
|
---|
21 | this.narackiRepository = narackiRepository;
|
---|
22 | }
|
---|
23 |
|
---|
24 | @Override
|
---|
25 | public List<Naracka> listAll() throws SQLException {
|
---|
26 | return narackiRepository.findAll();
|
---|
27 | }
|
---|
28 |
|
---|
29 | @Override
|
---|
30 | public List<Stavka> findByTelAndVreme(String telefon, LocalDateTime vreme) throws SQLException {
|
---|
31 | return narackiRepository.findByTelAndVreme(telefon, vreme);
|
---|
32 | }
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.