code cleanup
This commit is contained in:
parent
c194f44308
commit
5a59ac11b0
@ -7,21 +7,24 @@ import javax.servlet.http.HttpServletRequest;
|
|||||||
import org.hso.ecommerce.controller.intern.accounting.AccountingController;
|
import org.hso.ecommerce.controller.intern.accounting.AccountingController;
|
||||||
import org.hso.ecommerce.controller.intern.accounting.AccountingController.ShortTemplateBookingResult;
|
import org.hso.ecommerce.controller.intern.accounting.AccountingController.ShortTemplateBookingResult;
|
||||||
import org.hso.ecommerce.entities.booking.Booking;
|
import org.hso.ecommerce.entities.booking.Booking;
|
||||||
import org.hso.ecommerce.entities.booking.BookingAccountEntry;
|
|
||||||
import org.hso.ecommerce.entities.shop.CustomerOrder;
|
import org.hso.ecommerce.entities.shop.CustomerOrder;
|
||||||
import org.hso.ecommerce.entities.user.User;
|
import org.hso.ecommerce.entities.user.User;
|
||||||
import org.hso.ecommerce.repos.booking.BookingAccountEntryRepository;
|
|
||||||
import org.hso.ecommerce.repos.booking.BookingRepository;
|
import org.hso.ecommerce.repos.booking.BookingRepository;
|
||||||
import org.hso.ecommerce.repos.shop.CustomerOrderRepository;
|
import org.hso.ecommerce.repos.shop.CustomerOrderRepository;
|
||||||
import org.hso.ecommerce.repos.user.UserRepository;
|
import org.hso.ecommerce.repos.user.UserRepository;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
|
import org.hso.ecommerce.controller.intern.accounting.AccountingController;
|
||||||
|
import org.hso.ecommerce.controller.intern.accounting.AccountingController.ShortTemplateBookingResult;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.util.List;
|
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@ -42,9 +45,10 @@ public class CustomersIndexController {
|
|||||||
|
|
||||||
@GetMapping("")
|
@GetMapping("")
|
||||||
public String internCustomers(Model model) {
|
public String internCustomers(Model model) {
|
||||||
|
List<User> users = userRepository.findAll();
|
||||||
|
|
||||||
|
model.addAttribute("users", users);
|
||||||
|
|
||||||
@GetMapping("/")
|
|
||||||
public String internCustomers() {
|
|
||||||
return "intern/customers/index";
|
return "intern/customers/index";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user