Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/cookbook/controller/VrabotenController.java
ree27685 ra226bc3 2 2 3 3 4 import com.example.cookbook.model.DostavaDTO; 4 5 import com.example.cookbook.model.Naracka; 5 6 import com.example.cookbook.model.Recept; … … 43 44 @RequestParam LocalDateTime vreme, 44 45 Model model){ 45 46 List<DostavaDTO> podatoci = null; 46 47 List<Stavka> stavkiVoNaracka = null; 47 48 try { 48 49 stavkiVoNaracka = narcakiService.findByTelAndVreme(telefon, vreme); 50 podatoci = narcakiService.findDataForDostava(telefon, vreme); 49 51 } catch (SQLException e) { 50 52 return "redirect:/error-page/SQL%20Exception"; … … 52 54 53 55 model.addAttribute("stavki", stavkiVoNaracka); 56 model.addAttribute("podatoci", podatoci); 54 57 55 58 return "stavka";
Note:
See TracChangeset
for help on using the changeset viewer.