|
|
@@ -1,8 +1,9 @@
|
|
|
package com.jzg.console.controller;
|
|
|
|
|
|
-import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.jzg.commons.core.base.BaseController;
|
|
|
import com.jzg.commons.core.page.HttpResult;
|
|
|
+import com.jzg.commons.entity.dto.PersonnelReportDto;
|
|
|
import com.jzg.commons.entity.report.vo.ReportSearchCommonVo;
|
|
|
import com.jzg.console.service.*;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
@@ -39,6 +40,9 @@ public class ReportPersonDataManageController extends BaseController {
|
|
|
@Autowired
|
|
|
private ReportTelemarketingPersonDataService reportTelemarketingPersonDataService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ReportPersonnelReportService reportPersonnelReportService;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* @version
|
|
|
@@ -48,10 +52,10 @@ public class ReportPersonDataManageController extends BaseController {
|
|
|
*/
|
|
|
@Operation(summary = "人员数据-业务员报表-列表查询", description = "人员数据-业务员报表-列表查询")
|
|
|
@PostMapping(value = "/salesmanReportPageList")
|
|
|
- public HttpResult<?> salesmanReportPageList(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
+ public HttpResult<Page<PersonnelReportDto>> salesmanReportPageList(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
try{
|
|
|
- IPage<?> pageList = reportSalesmanReportService.getPageListByParams(reportSearchCommonVo);
|
|
|
- return HttpResult.ok(pageList);
|
|
|
+ Page<PersonnelReportDto> result = reportPersonnelReportService.querySalesmanReport(reportSearchCommonVo);
|
|
|
+ return HttpResult.ok(result);
|
|
|
}catch (Exception e){
|
|
|
return HttpResult.error(e.getMessage());
|
|
|
}
|
|
|
@@ -66,7 +70,7 @@ public class ReportPersonDataManageController extends BaseController {
|
|
|
@PostMapping(value = "/salesmanReportToTask")
|
|
|
public HttpResult<?> salesmanReportToTask(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
try{
|
|
|
- reportSalesmanReportService.downloadListByParams(reportSearchCommonVo);
|
|
|
+ reportPersonnelReportService.exportPersonnelReport(reportSearchCommonVo);
|
|
|
return HttpResult.ok("人员数据-业务员报表-列表导出处理中,请在导出中心中查看");
|
|
|
}catch (Exception e){
|
|
|
return HttpResult.error(e.getMessage());
|
|
|
@@ -82,7 +86,7 @@ public class ReportPersonDataManageController extends BaseController {
|
|
|
@PostMapping(value = "/salesmanReportDetailPageList")
|
|
|
public HttpResult<?> companyDataManageDetailPageList(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
try{
|
|
|
- IPage<?> pageList = reportSalesmanReportService.getPageDetailListByParams(reportSearchCommonVo);
|
|
|
+ Page<?> pageList = reportPersonnelReportService.queryPersonnelReportDetail(reportSearchCommonVo);
|
|
|
return HttpResult.ok(pageList);
|
|
|
}catch (Exception e){
|
|
|
return HttpResult.error(e.getMessage());
|
|
|
@@ -98,7 +102,7 @@ public class ReportPersonDataManageController extends BaseController {
|
|
|
@PostMapping(value = "/salesmanReportDetailToTask")
|
|
|
public HttpResult<?> companyDataManageDetailToTask(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
try{
|
|
|
- reportSalesmanReportService.downloadDetailListByParams(reportSearchCommonVo);
|
|
|
+ reportPersonnelReportService.exportPersonnelReportDetail(reportSearchCommonVo);
|
|
|
return HttpResult.ok("人员数据-业务员报表-明细导出处理中,请在导出中心中查看");
|
|
|
}catch (Exception e){
|
|
|
return HttpResult.error(e.getMessage());
|
|
|
@@ -115,7 +119,7 @@ public class ReportPersonDataManageController extends BaseController {
|
|
|
@PostMapping(value = "/salesmanDeptPageList")
|
|
|
public HttpResult<?> salesmanDeptPageList(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
try{
|
|
|
- IPage<?> pageList = reportSalesmanDeptService.getPageListByParams(reportSearchCommonVo);
|
|
|
+ Page<?> pageList = reportPersonnelReportService.queryPersonnelOrganizationReport(reportSearchCommonVo);
|
|
|
return HttpResult.ok(pageList);
|
|
|
}catch (Exception e){
|
|
|
return HttpResult.error(e.getMessage());
|
|
|
@@ -131,206 +135,11 @@ public class ReportPersonDataManageController extends BaseController {
|
|
|
@PostMapping(value = "/salesmanDeptToTask")
|
|
|
public HttpResult<?> salesmanDeptToTask(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
try{
|
|
|
- reportSalesmanDeptService.downloadListByParams(reportSearchCommonVo);
|
|
|
+ reportPersonnelReportService.exportPersonnelOrganizationReport(reportSearchCommonVo);
|
|
|
return HttpResult.ok("人员数据-业务员组织-列表导出处理中,请在导出中心中查看");
|
|
|
}catch (Exception e){
|
|
|
return HttpResult.error(e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
- /**
|
|
|
- * @version
|
|
|
- * @author: hxl
|
|
|
- * @Date: 2025/9/22 17:11
|
|
|
- * @Description: 业务数据-保险公司-明细查询
|
|
|
- */
|
|
|
- @Operation(summary = "人员数据-业务员组织-人员明细查询", description = "人员数据-业务员组织-人员明细查询")
|
|
|
- @PostMapping(value = "/salesmanDeptDetailPageList")
|
|
|
- public HttpResult<?> salesmanDeptDetailPageList(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
- try{
|
|
|
- IPage<?> pageList = reportSalesmanDeptService.getPageDetailListByParams(reportSearchCommonVo);
|
|
|
- return HttpResult.ok(pageList);
|
|
|
- }catch (Exception e){
|
|
|
- return HttpResult.error(e.getMessage());
|
|
|
- }
|
|
|
- }
|
|
|
- /**
|
|
|
- * @version
|
|
|
- * @author: hxl
|
|
|
- * @Date: 2025/9/22 17:11
|
|
|
- * @Description: 人员数据-业务员组织-人员明细导出
|
|
|
- */
|
|
|
- @Operation(summary = "人员数据-业务员组织-人员明细导出", description = "人员数据-业务员组织-人员明细导出")
|
|
|
- @PostMapping(value = "/salesmanDeptDetailToTask")
|
|
|
- public HttpResult<?> salesmanDeptDetailToPage(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
- try{
|
|
|
- reportSalesmanDeptService.downloadDetailListByParams(reportSearchCommonVo);
|
|
|
- return HttpResult.ok("人员数据-业务员组织-人员明细导出处理中,请在导出中心中查看");
|
|
|
- }catch (Exception e){
|
|
|
- return HttpResult.error(e.getMessage());
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @version
|
|
|
- * @author: hxl
|
|
|
- * @Date: 2025/9/22 17:11
|
|
|
- * @Description: 人员数据-业务员组织-业务明细查询
|
|
|
- */
|
|
|
- @Operation(summary = "人员数据-业务员组织-业务明细查询", description = "人员数据-业务员组织-业务明细查询")
|
|
|
- @PostMapping(value = "/salesmanBusinessDetailPageList")
|
|
|
- public HttpResult<?> riskDataManageDetailPageList(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
- try{
|
|
|
- IPage<?> pageList = reportSalesmanDeptService.getPageBusinessDetailListByParams(reportSearchCommonVo);
|
|
|
- return HttpResult.ok(pageList);
|
|
|
- }catch (Exception e){
|
|
|
- return HttpResult.error(e.getMessage());
|
|
|
- }
|
|
|
- }
|
|
|
- /**
|
|
|
- * @version
|
|
|
- * @author: hxl
|
|
|
- * @Date: 2025/9/22 17:11
|
|
|
- * @Description: 人员数据-业务员组织-业务明细导出
|
|
|
- */
|
|
|
- @Operation(summary = "人员数据-业务员组织-业务明细导出", description = "人员数据-业务员组织-业务明细导出")
|
|
|
- @PostMapping(value = "/salesmanBusinessDetailToTask")
|
|
|
- public HttpResult<?> riskDataManageDetailToPage(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
- try{
|
|
|
- reportSalesmanDeptService.downloadBusinessDetailListByParams(reportSearchCommonVo);
|
|
|
- return HttpResult.ok("人员数据-业务员组织-业务明细导出处理中,请在导出中心中查看");
|
|
|
- }catch (Exception e){
|
|
|
- return HttpResult.error(e.getMessage());
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @version
|
|
|
- * @author: hxl
|
|
|
- * @Date: 2025/9/22 17:08
|
|
|
- * @Description: 人员数据-渠道-列表
|
|
|
- */
|
|
|
- @Operation(summary = "人员数据-渠道-列表查询", description = "人员数据-渠道-列表查询")
|
|
|
- @PostMapping(value = "/channelPersonDataPageList")
|
|
|
- public HttpResult<?> channelPersonDataPageList(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
- try{
|
|
|
- IPage<?> pageList = reportChannelPersonDataService.getPageListByParams(reportSearchCommonVo);
|
|
|
- return HttpResult.ok(pageList);
|
|
|
- }catch (Exception e){
|
|
|
- return HttpResult.error(e.getMessage());
|
|
|
- }
|
|
|
- }
|
|
|
- /**
|
|
|
- * @version
|
|
|
- * @author: hxl
|
|
|
- * @Date: 2025/9/22 17:09
|
|
|
- * @Description: 人员数据-渠道-列表导出
|
|
|
- */
|
|
|
- @Operation(summary = "人员数据-渠道-列表导出", description = "人员数据-渠道-列表导出")
|
|
|
- @PostMapping(value = "/channelPersonDataToTask")
|
|
|
- public HttpResult<?> channelPersonDataToTask(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
- try{
|
|
|
- reportChannelPersonDataService.downloadListByParams(reportSearchCommonVo);
|
|
|
- return HttpResult.ok("人员数据-渠道-列表导出处理中,请在导出中心中查看");
|
|
|
- }catch (Exception e){
|
|
|
- return HttpResult.error(e.getMessage());
|
|
|
- }
|
|
|
- }
|
|
|
- /**
|
|
|
- * @version
|
|
|
- * @author: hxl
|
|
|
- * @Date: 2025/9/22 17:11
|
|
|
- * @Description: 人员数据-渠道-明细查询
|
|
|
- */
|
|
|
- @Operation(summary = "人员数据-渠道-明细查询", description = "人员数据-渠道-明细查询")
|
|
|
- @PostMapping(value = "/channelPersonDataDetailPageList")
|
|
|
- public HttpResult<?> channelPersonDataDetailPageList(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
- try{
|
|
|
- IPage<?> pageList = reportChannelPersonDataService.getPageDetailListByParams(reportSearchCommonVo);
|
|
|
- return HttpResult.ok(pageList);
|
|
|
- }catch (Exception e){
|
|
|
- return HttpResult.error(e.getMessage());
|
|
|
- }
|
|
|
- }
|
|
|
- /**
|
|
|
- * @version
|
|
|
- * @author: hxl
|
|
|
- * @Date: 2025/9/22 17:11
|
|
|
- * @Description: 人员数据-渠道-明细导出
|
|
|
- */
|
|
|
- @Operation(summary = "人员数据-渠道-明细导出", description = "业务数据-渠道-明细导出")
|
|
|
- @PostMapping(value = "/channelPersonDataDetailToTask")
|
|
|
- public HttpResult<?> channelPersonDataDetailToTask(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
- try{
|
|
|
- reportChannelPersonDataService.downloadDetailListByParams(reportSearchCommonVo);
|
|
|
- return HttpResult.ok("人员数据-渠道-明细导出处理中,请在导出中心中查看");
|
|
|
- }catch (Exception e){
|
|
|
- return HttpResult.error(e.getMessage());
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @version
|
|
|
- * @author: hxl
|
|
|
- * @Date: 2025/9/22 17:08
|
|
|
- * @Description: 人员数据-电销-列表
|
|
|
- */
|
|
|
- @Operation(summary = "人员数据-电销-列表查询", description = "人员数据-电销-列表查询")
|
|
|
- @PostMapping(value = "/telemarketingPersonDataPageList")
|
|
|
- public HttpResult<?> telemarketingPersonDataPageList(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
- try{
|
|
|
- IPage<?> pageList = reportTelemarketingPersonDataService.getPageListByParams(reportSearchCommonVo);
|
|
|
- return HttpResult.ok(pageList);
|
|
|
- }catch (Exception e){
|
|
|
- return HttpResult.error(e.getMessage());
|
|
|
- }
|
|
|
- }
|
|
|
- /**
|
|
|
- * @version
|
|
|
- * @author: hxl
|
|
|
- * @Date: 2025/9/22 17:09
|
|
|
- * @Description: 人员数据-电销-列表导出
|
|
|
- */
|
|
|
- @Operation(summary = "人员数据-电销-列表导出", description = "人员数据-电销-列表导出")
|
|
|
- @PostMapping(value = "/telemarketingDataManageToTask")
|
|
|
- public HttpResult<?> telemarketingDataManageToTask(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
- try{
|
|
|
- reportTelemarketingPersonDataService.downloadListByParams(reportSearchCommonVo);
|
|
|
- return HttpResult.ok("人员数据-电销-列表导出处理中,请在导出中心中查看");
|
|
|
- }catch (Exception e){
|
|
|
- return HttpResult.error(e.getMessage());
|
|
|
- }
|
|
|
- }
|
|
|
- /**
|
|
|
- * @version
|
|
|
- * @author: hxl
|
|
|
- * @Date: 2025/9/22 17:11
|
|
|
- * @Description: 人员数据-电销-明细查询
|
|
|
- */
|
|
|
- @Operation(summary = "人员数据-电销-明细查询", description = "人员数据-电销-明细查询")
|
|
|
- @PostMapping(value = "/telemarketingPersonDataDetailPageList")
|
|
|
- public HttpResult<?> telemarketingPersonDataDetailPageList(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
- try{
|
|
|
- IPage<?> pageList = reportTelemarketingPersonDataService.getPageDetailListByParams(reportSearchCommonVo);
|
|
|
- return HttpResult.ok(pageList);
|
|
|
- }catch (Exception e){
|
|
|
- return HttpResult.error(e.getMessage());
|
|
|
- }
|
|
|
- }
|
|
|
- /**
|
|
|
- * @version
|
|
|
- * @author: hxl
|
|
|
- * @Date: 2025/9/22 17:11
|
|
|
- * @Description: 人员数据-电销-明细导出
|
|
|
- */
|
|
|
- @Operation(summary = "人员数据-电销-明细导出", description = "人员数据-电销-明细导出")
|
|
|
- @PostMapping(value = "/telemarketingDataManageDetailToTask")
|
|
|
- public HttpResult<?> telemarketingDataManageDetailToTask(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
- try{
|
|
|
- reportTelemarketingPersonDataService.downloadDetailListByParams(reportSearchCommonVo);
|
|
|
- return HttpResult.ok("人员数据-电销-明细导出处理中,请在导出中心中查看");
|
|
|
- }catch (Exception e){
|
|
|
- return HttpResult.error(e.getMessage());
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
}
|