|
|
@@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
import java.util.List;
|
|
|
|
|
|
@RestController
|
|
|
@@ -55,9 +56,8 @@ public class UserClueApiController extends BaseApiController{
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/exportTemplate")
|
|
|
- public Result exportList( ) {
|
|
|
- NewExcelUtil<OutUserClueExcel> excelUtil=new NewExcelUtil<>(OutUserClueExcel.class);
|
|
|
- return excelUtil.exportExcel(null,"客户线索模版",uploadPath);
|
|
|
+ public void exportList(HttpServletResponse res) {
|
|
|
+ downloadFile(res,"客户线索模版.xlsx","/tmp/userClue_template.xlsx");
|
|
|
}
|
|
|
|
|
|
/**
|