|
|
@@ -1,14 +1,18 @@
|
|
|
package com.jzg.console.service.impl;
|
|
|
|
|
|
|
|
|
+import com.alibaba.excel.annotation.ExcelIgnore;
|
|
|
+import com.alibaba.excel.annotation.ExcelProperty;
|
|
|
+import com.alibaba.excel.annotation.write.style.ColumnWidth;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
-import com.jzg.commons.entity.report.dto.ReportRiskDataManageDetailDto;
|
|
|
-import com.jzg.commons.entity.report.dto.ReportRiskDataManageDto;
|
|
|
-import com.jzg.commons.entity.report.dto.ReportSalesmanDataManageDto;
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
+import com.jzg.commons.entity.report.dto.*;
|
|
|
import com.jzg.commons.entity.report.vo.ReportSearchCommonVo;
|
|
|
import com.jzg.console.service.ReportChannelDataManageService;
|
|
|
import com.jzg.console.service.ReportSalesmanDeptService;
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
+import org.springframework.format.annotation.DateTimeFormat;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
@@ -28,13 +32,13 @@ public class ReportSalesmanDeptServiceImpl extends ReportBaseServiceImpl impleme
|
|
|
* @version
|
|
|
* @author: hxl
|
|
|
* @Date: 2025/9/24 15:37
|
|
|
- * @Description: 业务数据-渠道
|
|
|
+ * @Description: 人员数据-业务员组织-列表查询
|
|
|
*/
|
|
|
@Override
|
|
|
public IPage<?> getPageListByParams(ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
- Page<ReportRiskDataManageDto> page = new Page<>(reportSearchCommonVo.getPageNo(), reportSearchCommonVo.getPageSize());
|
|
|
- IPage<ReportRiskDataManageDto> pageList = new Page<ReportRiskDataManageDto>();
|
|
|
- List<ReportRiskDataManageDto> list = getList();
|
|
|
+ Page<ReportSalesmanDeptDto> page = new Page<>(reportSearchCommonVo.getPageNo(), reportSearchCommonVo.getPageSize());
|
|
|
+ IPage<ReportSalesmanDeptDto> pageList = new Page<ReportSalesmanDeptDto>();
|
|
|
+ List<ReportSalesmanDeptDto> list = getList();
|
|
|
pageList.setRecords(list);
|
|
|
pageList.setTotal(1l);
|
|
|
pageList.setCurrent(reportSearchCommonVo.getPageNo());
|
|
|
@@ -42,18 +46,28 @@ public class ReportSalesmanDeptServiceImpl extends ReportBaseServiceImpl impleme
|
|
|
pageList.setPages(reportSearchCommonVo.getPageSize());
|
|
|
return pageList;
|
|
|
}
|
|
|
-
|
|
|
+ /**
|
|
|
+ * @version
|
|
|
+ * @author: hxl
|
|
|
+ * @Date: 2025/9/25 15:59
|
|
|
+ * @Description: 人员数据-业务员组织-列表导出
|
|
|
+ */
|
|
|
@Override
|
|
|
public void downloadListByParams(ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
- List<ReportRiskDataManageDto> list = getList();
|
|
|
- upLoadFile(reportSearchCommonVo, ReportRiskDataManageDto.class,list,"业务数据-险种报表-列表导出-"+ reportSearchCommonVo.getUserId());
|
|
|
+ List<ReportSalesmanDeptDto> list = getList();
|
|
|
+ upLoadFile(reportSearchCommonVo, ReportSalesmanDeptDto.class,list,"人员数据-业务员组织-列表导出-"+ reportSearchCommonVo.getUserId());
|
|
|
}
|
|
|
-
|
|
|
+ /**
|
|
|
+ * @version
|
|
|
+ * @author: hxl
|
|
|
+ * @Date: 2025/9/25 16:01
|
|
|
+ * @Description: 人员数据-业务员组织-人员明细
|
|
|
+ */
|
|
|
@Override
|
|
|
public IPage<?> getPageDetailListByParams(ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
- Page<ReportRiskDataManageDetailDto> page = new Page<>(reportSearchCommonVo.getPageNo(), reportSearchCommonVo.getPageSize());
|
|
|
- IPage<ReportRiskDataManageDetailDto> detailPageList = new Page<ReportRiskDataManageDetailDto>();
|
|
|
- List<ReportRiskDataManageDetailDto> detailList = getDetailList();
|
|
|
+ Page<ReportSalesmanDeptDetailDto> page = new Page<>(reportSearchCommonVo.getPageNo(), reportSearchCommonVo.getPageSize());
|
|
|
+ IPage<ReportSalesmanDeptDetailDto> detailPageList = new Page<ReportSalesmanDeptDetailDto>();
|
|
|
+ List<ReportSalesmanDeptDetailDto> detailList = getDetailList();
|
|
|
detailPageList.setRecords(detailList);
|
|
|
detailPageList.setTotal(1l);
|
|
|
detailPageList.setCurrent(reportSearchCommonVo.getPageNo());
|
|
|
@@ -61,11 +75,46 @@ public class ReportSalesmanDeptServiceImpl extends ReportBaseServiceImpl impleme
|
|
|
detailPageList.setPages(reportSearchCommonVo.getPageSize());
|
|
|
return detailPageList;
|
|
|
}
|
|
|
-
|
|
|
+ /**
|
|
|
+ * @version
|
|
|
+ * @author: hxl
|
|
|
+ * @Date: 2025/9/25 16:02
|
|
|
+ * @Description: 人员数据-业务员组织-人员明细导出
|
|
|
+ */
|
|
|
@Override
|
|
|
public void downloadDetailListByParams(ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
- List<ReportRiskDataManageDetailDto> detailList = getDetailList();
|
|
|
- upLoadFile(reportSearchCommonVo, ReportRiskDataManageDetailDto.class,detailList,"业务数据-险种报表-明细导出-"+ reportSearchCommonVo.getUserId());
|
|
|
+ List<ReportSalesmanDeptDetailDto> detailList = getDetailList();
|
|
|
+ upLoadFile(reportSearchCommonVo, ReportSalesmanDeptDetailDto.class,detailList,"人员数据-业务员组织-人员明细导出-"+ reportSearchCommonVo.getUserId());
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @version
|
|
|
+ * @author: hxl
|
|
|
+ * @Date: 2025/9/25 16:01
|
|
|
+ * @Description: 人员数据-业务员组织-业务明细
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public IPage<?> getPageBusinessDetailListByParams(ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
+ Page<ReportSalesmanBusinessDetailDto> page = new Page<>(reportSearchCommonVo.getPageNo(), reportSearchCommonVo.getPageSize());
|
|
|
+ IPage<ReportSalesmanBusinessDetailDto> detailPageList = new Page<ReportSalesmanBusinessDetailDto>();
|
|
|
+ List<ReportSalesmanBusinessDetailDto> detailList = getBusinessDetailList();
|
|
|
+ detailPageList.setRecords(detailList);
|
|
|
+ detailPageList.setTotal(1l);
|
|
|
+ detailPageList.setCurrent(reportSearchCommonVo.getPageNo());
|
|
|
+ detailPageList.setPages(reportSearchCommonVo.getPageNo());
|
|
|
+ detailPageList.setPages(reportSearchCommonVo.getPageSize());
|
|
|
+ return detailPageList;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * @version
|
|
|
+ * @author: hxl
|
|
|
+ * @Date: 2025/9/25 16:02
|
|
|
+ * @Description: 人员数据-业务员组织-业务明细导出
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public void downloadBusinessDetailListByParams(ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
+ List<ReportSalesmanBusinessDetailDto> detailList = getBusinessDetailList();
|
|
|
+ upLoadFile(reportSearchCommonVo, ReportSalesmanBusinessDetailDto.class,detailList,"人员数据-业务员组织-业务明细导出-"+ reportSearchCommonVo.getUserId());
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -74,13 +123,30 @@ public class ReportSalesmanDeptServiceImpl extends ReportBaseServiceImpl impleme
|
|
|
* @Date: 2025/9/24 10:42
|
|
|
* @Description: 模拟数据
|
|
|
*/
|
|
|
- public List<ReportRiskDataManageDto> getList(){
|
|
|
- List<ReportRiskDataManageDto> list =new ArrayList<>();
|
|
|
- ReportRiskDataManageDto reportRiskDataManageDto = ReportRiskDataManageDto.builder()
|
|
|
- .companyId("1").companyName("永诚财险").partnerCompanyId("1").partnerCompanyName("众安财险科技营销部")
|
|
|
- .riskName("单交").quoteCountNum(1000l).quoteOrderNum(500l).underwriteOrderNum(300l).underwritePremium(new BigDecimal(456))
|
|
|
- .penetrationRate(new BigDecimal(23)).underwriteRate(new BigDecimal(32)).build();
|
|
|
- list.add(reportRiskDataManageDto);
|
|
|
+ public List<ReportSalesmanDeptDto> getList(){
|
|
|
+ List<ReportSalesmanDeptDto> list =new ArrayList<>();
|
|
|
+ ReportSalesmanDeptDto reportSalesmanDeptDto = ReportSalesmanDeptDto.builder()
|
|
|
+ .salesmanTypeName("渠道").salesmanTypeDeptName("张三渠道").deptName("众安财险科技营销部")
|
|
|
+ .areaName("山西/太原").avgOrderPersonNum(1000L).sumPremium(new BigDecimal(456)).underwriteOrderNum(300L)
|
|
|
+ .sumPersonNum(1000L).build();
|
|
|
+ list.add(reportSalesmanDeptDto);
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @version
|
|
|
+ * @author: hxl
|
|
|
+ * @Date: 2025/9/24 10:42
|
|
|
+ * @Description: 模拟数据
|
|
|
+ */
|
|
|
+ public List<ReportSalesmanDeptDetailDto> getDetailList(){
|
|
|
+ List<ReportSalesmanDeptDetailDto> list =new ArrayList<>();
|
|
|
+ ReportSalesmanDeptDetailDto reportSalesmanDeptDetailDto = ReportSalesmanDeptDetailDto.builder()
|
|
|
+ .salesmanName("張三").salesmanPhone("18811459985").deptName("众安财险科技营销部")
|
|
|
+ .salesmanTypeName("渠道").salesmanTypeDeptName("张三渠道").underwriteOrderNum(100L).sumPremium(new BigDecimal(456))
|
|
|
+ .orderCommissionPremium(new BigDecimal(456)).avgOrderNumPremium(new BigDecimal(456))
|
|
|
+ .manegerName("李四").personStatus("入职").accountStatus("正常").build();
|
|
|
+ list.add(reportSalesmanDeptDetailDto);
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
@@ -90,14 +156,15 @@ public class ReportSalesmanDeptServiceImpl extends ReportBaseServiceImpl impleme
|
|
|
* @Date: 2025/9/24 10:42
|
|
|
* @Description: 模拟数据
|
|
|
*/
|
|
|
- public List<ReportRiskDataManageDetailDto> getDetailList(){
|
|
|
- List<ReportRiskDataManageDetailDto> list =new ArrayList<>();
|
|
|
- ReportRiskDataManageDetailDto reportRiskDataManageDetailDto = ReportRiskDataManageDetailDto.builder()
|
|
|
+ public List<ReportSalesmanBusinessDetailDto> getBusinessDetailList(){
|
|
|
+ List<ReportSalesmanBusinessDetailDto> list =new ArrayList<>();
|
|
|
+ ReportSalesmanBusinessDetailDto reportSalesmanBusinessDetailDto = ReportSalesmanBusinessDetailDto.builder()
|
|
|
+ .salesmanName("张三").salesmanPhone("18811459985")
|
|
|
.companyId("1").companyName("永诚财险").partnerCompanyId("1").partnerCompanyName("众安财险科技营销部")
|
|
|
.orderNo("2025090811253600215").licenseNo("京AG6002").orderTypeName("代客录单").riskName("单交")
|
|
|
- .quoteCountNum(100L).sumPremium(new BigDecimal(456)).orderStatusName("已承保")
|
|
|
- .createTime(new Date()).recordTime(new Date()).build();
|
|
|
- list.add(reportRiskDataManageDetailDto);
|
|
|
+ .sumPremium(new BigDecimal(456)).orderCommissionPremium(new BigDecimal(456))
|
|
|
+ .createTime(new Date()).recordTime(new Date()).manegerName("李四").build();
|
|
|
+ list.add(reportSalesmanBusinessDetailDto);
|
|
|
return list;
|
|
|
}
|
|
|
}
|