Ignore:
Timestamp:
02/04/24 17:48:29 (9 months ago)
Author:
Blazho <aleksandar.blazhevski@…>
Branches:
master
Parents:
ee27685
Message:

Vraboteniot ja planira dostavata na narackata(https://develop.finki.ukim.mk/projects/cbdb/wiki/useCase10)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/cookbook/controller/VrabotenController.java

    ree27685 ra226bc3  
    22
    33
     4import com.example.cookbook.model.DostavaDTO;
    45import com.example.cookbook.model.Naracka;
    56import com.example.cookbook.model.Recept;
     
    4344                                 @RequestParam LocalDateTime vreme,
    4445                                 Model model){
    45 
     46        List<DostavaDTO> podatoci = null;
    4647        List<Stavka> stavkiVoNaracka = null;
    4748        try {
    4849            stavkiVoNaracka = narcakiService.findByTelAndVreme(telefon, vreme);
     50            podatoci = narcakiService.findDataForDostava(telefon, vreme);
    4951        } catch (SQLException e) {
    5052            return "redirect:/error-page/SQL%20Exception";
     
    5254
    5355        model.addAttribute("stavki", stavkiVoNaracka);
     56        model.addAttribute("podatoci", podatoci);
    5457
    5558        return "stavka";
Note: See TracChangeset for help on using the changeset viewer.