|
@@ -781,7 +781,10 @@ public class TaRecommendCustomerController extends BaseController {
|
781
|
781
|
* 导出数据(经纪人)
|
782
|
782
|
*/
|
783
|
783
|
@GetMapping("/admin/customer/recommend/agents/export")
|
784
|
|
- public void agentsExport(HttpServletRequest request, HttpServletResponse response) throws IOException {
|
|
784
|
+ public void agentsExport(@RequestParam(value = "name", required = false) String name,
|
|
785
|
+ @RequestParam(value = "tel", required = false) String tel,
|
|
786
|
+ @RequestParam(value = "channelId", required = false) String channelId,
|
|
787
|
+ HttpServletRequest request, HttpServletResponse response) throws IOException {
|
785
|
788
|
// response.setContentType("application/vnd.ms-excel");
|
786
|
789
|
response.setContentType("application/octet-stream");
|
787
|
790
|
response.setCharacterEncoding("utf-8");
|
|
@@ -799,7 +802,7 @@ public class TaRecommendCustomerController extends BaseController {
|
799
|
802
|
WriteSheet writeSheet = EasyExcel.writerSheet("经纪人").build();
|
800
|
803
|
List<AgentsRecommendCustomer> recCustomerExport = null;
|
801
|
804
|
do {
|
802
|
|
- recCustomerExport = taRecommendCustomerService.getIndependentAgentsExport(getOrgId(request), pageCode * pageSize, pageSize);
|
|
805
|
+ recCustomerExport = taRecommendCustomerService.getIndependentAgentsExport(name, tel, channelId, getOrgId(request), pageCode * pageSize, pageSize);
|
803
|
806
|
excelWriter.write(recCustomerExport, writeSheet);
|
804
|
807
|
|
805
|
808
|
pageCode++;
|