| | |
| | | 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, "客户档案模板"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导入客户档案 |
| | |
| | | @PostMapping("/importData") |
| | | public AjaxResult importData(MultipartFile file) throws Exception { |
| | | |
| | | return success(customerService.importData(file)); |
| | | return customerService.importData(file); |
| | | } |
| | | |
| | | /** |