@GetMapping(“/khxx”) public String getCustomerInfo(@RequestParam(“acceptanceCustomerId”)…
- User
@GetMapping(“/khxx”) public String getCustomerInfo(@RequestParam(“acceptanceCustomerId”) Long acceptanceCustomerId, Model model) { AcceptanceCustomer acceptanceCustomer = acceptanceCustomerService.findKhxx(acceptanceCustomerId); model.addAttribute(“acceptanceCustomer”, acceptanceCustomer); return FebsUtil.view(“bw/acceptanceCustomer/khxx”); }
- Assistant
The code snippet you've provided is for a Spring MVC controller method written in Java, using annotations to define a request mapping and to inject parameters into the method. The method is intended to handle requests to the path and retrieve information about a customer identified by their ID passed as a request parameter named .
- User
- Assistant
The HTML page you provided displays customer information and allows the user to select a status for a customer. However, your current request in the method expects a JSON response with an attribute, but since you're using a Java/Spring MVC backend that returns a view, your JavaScript should not expect JSON. Instead, you should make sure your back end properly populates the model, and your HTML should render the provided data server-side.