@@ -0,0 +1,1392 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage br.senac.pi4.ProjetoIntegrador.controller;%0A%0Aimport br.senac.pi4.ProjetoIntegrador.Service.PedidoService;%0Aimport br.senac.pi4.ProjetoIntegrador.entity.Pedido;%0Aimport java.util.Date;%0Aimport java.util.List;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.web.bind.annotation.ModelAttribute;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.servlet.ModelAndView;%0A%0A/**%0A *%0A * @author joliveira%0A */%0A%0A@Controller%0A@RequestMapping(%22/backoffice/relatorio%22)%0Apublic class BackofficeVisualizaRelatorio %7B%0A    %0A    @Autowired%0A    private  PedidoService pedidoService;%0A    %0A    @RequestMapping%0A    public ModelAndView abrirRelatorio() %7B%0A        %0A        return new ModelAndView(%22backoffice/pedido/relatorio%22);%0A    %7D%0A    %0A    @RequestMapping(%22/pesquisar%22)%0A    public ModelAndView pesquisar(@ModelAttribute(%22data-de%22) Date dataDe,%0A            @ModelAttribute(%22data-ate%22) Date dataAte) %7B%0A        List%3CPedido%3E pedidos = pedidoService.pesquisarDatas(dataDe, dataAte);%0A        %0A        return new ModelAndView(%22backoffice/pedido/relatorio%22).addObject(%22pedidos%22, pedidos);%0A    %7D%0A    %0A%7D%0A

Add files via upload