帮我把以下代码排版规整:1. // 通过主键删除数据 2. @RequestMapping("deleteCustomer.action") 3. public String deleteCustomer(String id) { 4. this.customerService.deleteCustomer(id); 5. return "redirect:/customer/getAllCustomer.action"; 6. } 7. // 批量删除数据 8. @RequestMapping("deleteCustomerByIds.action") 9. public String deleteCustomerByIds() { 10. String[] ids = this.getRequest().getParameterValues("customerid"); 11. for (String customerid : ids) { 12. this.customerService.deleteCustomer(customerid); 13. } 14. return "redirect:/customer/getAllCustomer.action"; 15. }
时间: 2024-02-26 21:52:22 浏览: 51
1. // 通过主键删除数据
2. @RequestMapping("deleteCustomer.action")
3. public String deleteCustomer(String id) {
4. this.customerService.deleteCustomer(id);
5. return "redirect:/customer/getAllCustomer.action";
6. }
7. // 批量删除数据
8. @RequestMapping("deleteCustomerByIds.action")
9. public String deleteCustomerByIds() {
10. String[] ids = this.getRequest().getParameterValues("customerid");
11. for (String customerid : ids) {
12. this.customerService.deleteCustomer(customerid);
13. }
14. return "redirect:/customer/getAllCustomer.action";
15. }
阅读全文