|
@@ -2,8 +2,11 @@ package com.goafanti.customer.controller;
|
|
|
|
|
|
|
|
import com.goafanti.common.bo.Result;
|
|
import com.goafanti.common.bo.Result;
|
|
|
import com.goafanti.common.controller.BaseApiController;
|
|
import com.goafanti.common.controller.BaseApiController;
|
|
|
|
|
+import com.goafanti.common.utils.excel.NewExcelUtil;
|
|
|
import com.goafanti.customer.bo.InputUserClueList;
|
|
import com.goafanti.customer.bo.InputUserClueList;
|
|
|
|
|
+import com.goafanti.customer.bo.OutUserClueExcel;
|
|
|
import com.goafanti.customer.service.UserClueService;
|
|
import com.goafanti.customer.service.UserClueService;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -16,10 +19,18 @@ public class UserClueApiController extends BaseApiController{
|
|
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
|
private UserClueService userClueService;
|
|
private UserClueService userClueService;
|
|
|
|
|
+ @Value(value = "${upload.path}")
|
|
|
|
|
+ private String uploadPath = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
|
public Result list(InputUserClueList in) {
|
|
public Result list(InputUserClueList in) {
|
|
|
return new Result(userClueService.list(in));
|
|
return new Result(userClueService.list(in));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @GetMapping("/exportTemplate")
|
|
|
|
|
+ public Result exportList( ) {
|
|
|
|
|
+ NewExcelUtil<OutUserClueExcel> excelUtil=new NewExcelUtil<>(OutUserClueExcel.class);
|
|
|
|
|
+ return excelUtil.exportExcel(null,"签单客户统计表",uploadPath);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|