maven
2 天以前 9f99167aba3720cb731298511f8423b18c08e5a2
src/main/java/com/ruoyi/basic/controller/CustomerController.java
@@ -32,7 +32,7 @@
     * 查询客户档案列表
     */
    @GetMapping("/list")
    public IPage<Customer> list(Page page, Customer customer) {
    public IPage<Customer> list(Page<Customer> page, Customer customer) {
        return customerService.selectCustomerList(page, customer);
    }
@@ -53,6 +53,13 @@
        util.exportExcel(response, list, "客户档案数据");
    }
    @PostMapping("/downloadTemplate")
    @Log(title = "客户档案-下载模板", businessType = BusinessType.EXPORT)
    public void downloadTemplate(HttpServletResponse response) {
        ExcelUtil<Customer> util = new ExcelUtil<Customer>(Customer.class);
        util.importTemplateExcel(response, "客户档案模板");
    }
    /**
     * 导入客户档案
@@ -61,7 +68,7 @@
    @PostMapping("/importData")
    public AjaxResult importData(MultipartFile file) throws Exception {
        return success(customerService.importData(file));
        return customerService.importData(file);
    }
    /**
@@ -69,7 +76,7 @@
     */
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id) {
        return success(customerService.selectCustomerById(id));
        return success(customerService.selectCustomerDetailById(id));
    }
    /**