Przeglądaj źródła

使用模拟数据提交报价数据接口

hxl13994548489 1 rok temu
rodzic
commit
6211b45982

+ 163 - 0
commons/src/main/java/com/jzg/commons/entity/report/dto/ReportCompanyQuotationDataDto.java

@@ -0,0 +1,163 @@
+package com.jzg.commons.entity.report.dto;
+
+import com.alibaba.excel.annotation.ExcelIgnore;
+import com.alibaba.excel.annotation.ExcelProperty;
+import com.alibaba.excel.annotation.write.style.ColumnWidth;
+import com.alibaba.excel.annotation.write.style.ContentRowHeight;
+import com.alibaba.excel.annotation.write.style.HeadRowHeight;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.apache.poi.ss.formula.functions.Rate;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+
+/**
+ *  @version
+ *  @author: hxl
+ *  @Date: 2025/9/25 9:06
+ *  @Description:  报价数据-保险公司-列表
+ */
+@HeadRowHeight(20)
+@ContentRowHeight(15)
+@Data
+@Builder
+@Schema(description = "报价数据-保险公司-列表")
+@AllArgsConstructor
+@NoArgsConstructor
+public class ReportCompanyQuotationDataDto {
+
+    /**
+     * 保险公司id
+     */
+    @ExcelIgnore
+    @Schema(description = "保险公司id")
+    private String companyId;
+    /**
+     * 保险公司名称
+     */
+    @ExcelProperty(value = "保险公司", index = 0)
+    @ColumnWidth(20)
+    @Schema(description = "保险公司")
+    private String companyName;
+
+
+    /**
+     *  合作保险公司Id
+     */
+    @ExcelIgnore
+    @Schema(description = "合作保险公司Id")
+    private String partnerCompanyId;
+    /**
+     *  合作保险公司名称
+     */
+    @ExcelProperty(value = "合作保险公司", index = 1)
+    @ColumnWidth(20)
+    @Schema(description = "合作保险公司")
+    private String partnerCompanyName;
+
+    /**
+     *  报价数量
+     */
+    @ExcelProperty(value = "报价数量", index = 2)
+    @ColumnWidth(15)
+    @Schema(description = "报价数量")
+    private Long quoteCountNum;
+
+    /**
+     *  报价量占比
+     */
+    @ExcelProperty(value = "报价量占比", index = 3)
+    @ColumnWidth(15)
+    @Schema(description = "报价量占比")
+    private BigDecimal quoteCountNumProportion;
+
+
+    /**
+     *  报价成功
+     */
+    @ExcelProperty(value = "报价成功", index = 4)
+    @ColumnWidth(15)
+    @Schema(description = "报价成功")
+    private Long quoteSuccessNum;
+
+    /**
+     *  报价失败
+     */
+    @ExcelProperty(value = "报价失败", index = 5)
+    @ColumnWidth(10)
+    @Schema(description = "报价失败")
+    private Long quoteFailNum;
+
+    /**
+     *  平均报价响应时间
+     */
+    @ExcelProperty(value = "平均报价响应时间", index = 6)
+    @ColumnWidth(10)
+    @Schema(description = "平均报价响应时间")
+    private Long avgQuoteTime;
+
+    /**
+     *  提交核保
+     */
+    @ExcelProperty(value = "提交核保", index = 7)
+    @ColumnWidth(20)
+    @Schema(description = "提交核保")
+    private Long waitAuditNum;
+
+    /**
+     *  人工核保数
+     */
+    @ExcelProperty(value = "人工核保数", index = 8)
+    @ColumnWidth(20)
+    @Schema(description = "人工核保数")
+    private Long staffProcessNum;
+
+
+    /**
+     *  核保通过
+     */
+    @ExcelProperty(value = "核保通过", index = 9)
+    @ColumnWidth(20)
+    @Schema(description = "核保通过")
+    private Long underwritPassNum;
+
+    /**
+     *  核保不通过
+     */
+    @ExcelProperty(value = "核保不通过", index = 10)
+    @ColumnWidth(20)
+    @Schema(description = "核保不通过")
+    private Long underwritRejectNum;
+
+
+    /**
+     *  核保通过率
+     */
+    @ExcelProperty(value = "核保通过率", index = 11)
+    @ColumnWidth(20)
+    @Schema(description = "核保通过率")
+    private BigDecimal underwritPassRate;
+
+    /**
+     *  成交单数
+     */
+    @ExcelProperty(value = "成交单数", index = 12)
+    @ColumnWidth(20)
+    @Schema(description = "成交单数")
+    private Long dealOrderNum;
+
+    /**
+     *  转化率
+     */
+    @ExcelProperty(value = "转化率", index = 13)
+    @ColumnWidth(20)
+    @Schema(description = "转化率")
+    private BigDecimal conversionRate;
+}

+ 118 - 0
commons/src/main/java/com/jzg/commons/entity/report/dto/ReportQuotationOrderDataDto.java

@@ -0,0 +1,118 @@
+package com.jzg.commons.entity.report.dto;
+
+import com.alibaba.excel.annotation.ExcelIgnore;
+import com.alibaba.excel.annotation.ExcelProperty;
+import com.alibaba.excel.annotation.write.style.ColumnWidth;
+import com.alibaba.excel.annotation.write.style.ContentRowHeight;
+import com.alibaba.excel.annotation.write.style.HeadRowHeight;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+
+/**
+ *  @version
+ *  @author: hxl
+ *  @Date: 2025/9/25 9:06
+ *  @Description:  报价数据-报价订单-列表
+ */
+@HeadRowHeight(20)
+@ContentRowHeight(15)
+@Data
+@Builder
+@Schema(description = "报价数据-报价订单-列表")
+@AllArgsConstructor
+@NoArgsConstructor
+public class ReportQuotationOrderDataDto {
+
+
+    /**
+     * 车牌号
+     */
+    @ExcelProperty(value = "车牌号", index = 0)
+    @ColumnWidth(20)
+    @Schema(description = "车牌号")
+    private String licenseNo;
+
+    /**
+     *  发动机号
+     */
+    @ExcelProperty(value = "发动机号", index = 1)
+    @ColumnWidth(20)
+    @Schema(description = "发动机号")
+    private String engineNo;
+
+    /**
+     *  车架号
+     */
+    @ExcelProperty(value = "车架号", index = 2)
+    @ColumnWidth(15)
+    @Schema(description = "车架号")
+    private String vinNo;
+
+    /**
+     *  品牌型号
+     */
+    @ExcelProperty(value = "品牌型号", index = 3)
+    @ColumnWidth(15)
+    @Schema(description = "品牌型号")
+    private String brandName;
+
+
+    /**
+     *  报价订单
+     */
+    @ExcelProperty(value = "报价订单", index = 4)
+    @ColumnWidth(15)
+    @Schema(description = "报价订单")
+    private Long quoteOrderNum;
+
+    /**
+     *  报价次数
+     */
+    @ExcelProperty(value = "报价次数", index = 5)
+    @ColumnWidth(10)
+    @Schema(description = "报价次数")
+    private Long quoteCountNum;
+
+    /**
+     *  最低保费
+     */
+    @ExcelProperty(value = "最低保费", index = 6)
+    @ColumnWidth(10)
+    @Schema(description = "最低保费")
+    private BigDecimal minPremium;
+
+    /**
+     *  最高保费
+     */
+    @ExcelProperty(value = "最高保费", index = 7)
+    @ColumnWidth(10)
+    @Schema(description = "最高保费")
+    private BigDecimal maxPremium;
+
+
+    /**
+     *  成交保险公司
+     */
+    @ExcelProperty(value = "成交保险公司", index = 8)
+    @ColumnWidth(10)
+    @Schema(description = "成交保险公司")
+    private String dealCompanyName;
+
+
+    /**
+     *  成交保费
+     */
+    @ExcelProperty(value = "成交保费", index = 9)
+    @ColumnWidth(10)
+    @Schema(description = "成交保费")
+    private BigDecimal dealPremium;
+}

+ 159 - 0
commons/src/main/java/com/jzg/commons/entity/report/dto/ReportSalesmanQuotationDataDto.java

@@ -0,0 +1,159 @@
+package com.jzg.commons.entity.report.dto;
+
+import com.alibaba.excel.annotation.ExcelIgnore;
+import com.alibaba.excel.annotation.ExcelProperty;
+import com.alibaba.excel.annotation.write.style.ColumnWidth;
+import com.alibaba.excel.annotation.write.style.ContentRowHeight;
+import com.alibaba.excel.annotation.write.style.HeadRowHeight;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.math.BigDecimal;
+
+
+/**
+ *  @version
+ *  @author: hxl
+ *  @Date: 2025/9/25 9:06
+ *  @Description:  报价数据-业务员-列表
+ */
+@HeadRowHeight(20)
+@ContentRowHeight(15)
+@Data
+@Builder
+@Schema(description = "报价数据-业务员-列表")
+@AllArgsConstructor
+@NoArgsConstructor
+public class ReportSalesmanQuotationDataDto {
+
+    /**
+     * 保险公司id
+     */
+    @ExcelIgnore
+    @Schema(description = "保险公司id")
+    private String companyId;
+    /**
+     * 保险公司名称
+     */
+    @ExcelProperty(value = "保险公司", index = 0)
+    @ColumnWidth(20)
+    @Schema(description = "保险公司")
+    private String companyName;
+
+
+    /**
+     *  合作保险公司Id
+     */
+    @ExcelIgnore
+    @Schema(description = "合作保险公司Id")
+    private String partnerCompanyId;
+    /**
+     *  合作保险公司名称
+     */
+    @ExcelProperty(value = "合作保险公司", index = 1)
+    @ColumnWidth(20)
+    @Schema(description = "合作保险公司")
+    private String partnerCompanyName;
+
+    /**
+     *  报价数量
+     */
+    @ExcelProperty(value = "报价数量", index = 2)
+    @ColumnWidth(15)
+    @Schema(description = "报价数量")
+    private Long quoteCountNum;
+
+    /**
+     *  报价量占比
+     */
+    @ExcelProperty(value = "报价量占比", index = 3)
+    @ColumnWidth(15)
+    @Schema(description = "报价量占比")
+    private BigDecimal quoteCountNumProportion;
+
+
+    /**
+     *  报价成功
+     */
+    @ExcelProperty(value = "报价成功", index = 4)
+    @ColumnWidth(15)
+    @Schema(description = "报价成功")
+    private Long quoteSuccessNum;
+
+    /**
+     *  报价失败
+     */
+    @ExcelProperty(value = "报价失败", index = 5)
+    @ColumnWidth(10)
+    @Schema(description = "报价失败")
+    private Long quoteFailNum;
+
+    /**
+     *  平均报价响应时间
+     */
+    @ExcelProperty(value = "平均报价响应时间", index = 6)
+    @ColumnWidth(10)
+    @Schema(description = "平均报价响应时间")
+    private Long avgQuoteTime;
+
+    /**
+     *  提交核保
+     */
+    @ExcelProperty(value = "提交核保", index = 7)
+    @ColumnWidth(20)
+    @Schema(description = "提交核保")
+    private Long waitAuditNum;
+
+    /**
+     *  人工核保数
+     */
+    @ExcelProperty(value = "人工核保数", index = 8)
+    @ColumnWidth(20)
+    @Schema(description = "人工核保数")
+    private Long staffProcessNum;
+
+
+    /**
+     *  核保通过
+     */
+    @ExcelProperty(value = "核保通过", index = 9)
+    @ColumnWidth(20)
+    @Schema(description = "核保通过")
+    private Long underwritPassNum;
+
+    /**
+     *  核保不通过
+     */
+    @ExcelProperty(value = "核保不通过", index = 10)
+    @ColumnWidth(20)
+    @Schema(description = "核保不通过")
+    private Long underwritRejectNum;
+
+
+    /**
+     *  核保通过率
+     */
+    @ExcelProperty(value = "核保通过率", index = 11)
+    @ColumnWidth(20)
+    @Schema(description = "核保通过率")
+    private BigDecimal underwritPassRate;
+
+    /**
+     *  成交单数
+     */
+    @ExcelProperty(value = "成交单数", index = 12)
+    @ColumnWidth(20)
+    @Schema(description = "成交单数")
+    private Long dealOrderNum;
+
+    /**
+     *  转化率
+     */
+    @ExcelProperty(value = "转化率", index = 13)
+    @ColumnWidth(20)
+    @Schema(description = "转化率")
+    private BigDecimal conversionRate;
+}

+ 1 - 1
consoleStatistics/src/main/java/com/jzg/console/controller/ReportQuotationDataManageController.java

@@ -169,7 +169,7 @@ public class ReportQuotationDataManageController extends BaseController {
     public HttpResult<?> channelQuotationDataToTask(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
         try{
             reportChannelQuotationDataService.downloadListByParams(reportSearchCommonVo);
-            return HttpResult.ok("报价数据-保险公司-列表导出处理中,请在导出中心中查看");
+            return HttpResult.ok("报价数据-渠道-列表导出处理中,请在导出中心中查看");
         }catch (Exception e){
             return HttpResult.error(e.getMessage());
         }

+ 22 - 42
consoleStatistics/src/main/java/com/jzg/console/service/impl/ReportChannelQuotationDataServiceImpl.java

@@ -6,6 +6,7 @@ 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.jzg.commons.entity.report.dto.ReportSalesmanQuotationDataDto;
 import com.jzg.commons.entity.report.vo.ReportSearchCommonVo;
 import com.jzg.console.service.ReportChannelDataManageService;
 import com.jzg.console.service.ReportChannelQuotationDataService;
@@ -28,60 +29,39 @@ public class ReportChannelQuotationDataServiceImpl extends ReportBaseServiceImpl
      *  @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<ReportSalesmanQuotationDataDto> page = new Page<>(reportSearchCommonVo.getPageNo(), reportSearchCommonVo.getPageSize());
+        IPage<ReportSalesmanQuotationDataDto> pageList = new Page<ReportSalesmanQuotationDataDto>();
+        List<ReportSalesmanQuotationDataDto> list = getList();
         pageList.setRecords(list);
-        pageList.setTotal(1l);
+        pageList.setTotal(1L);
         pageList.setCurrent(reportSearchCommonVo.getPageNo());
         pageList.setPages(reportSearchCommonVo.getPageNo());
         pageList.setPages(reportSearchCommonVo.getPageSize());
         return pageList;
     }
-
+    /**
+     *  @version
+     *  @author: hxl
+     *  @Date: 2025/9/25 10:08
+     *  @Description:  业务数据-渠道-列表导出
+     */
     @Override
     public void downloadListByParams(ReportSearchCommonVo reportSearchCommonVo) {
-        List<ReportRiskDataManageDto> list = getList();
-        upLoadFile(reportSearchCommonVo, ReportRiskDataManageDto.class,list,"业务数据-险种报表-列表导出-"+ reportSearchCommonVo.getUserId());
+        List<ReportSalesmanQuotationDataDto> list = getList();
+        upLoadFile(reportSearchCommonVo, ReportSalesmanQuotationDataDto.class,list,"业务数据-渠道-列表导出-"+ reportSearchCommonVo.getUserId());
     }
 
     @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();
-        detailPageList.setRecords(detailList);
-        detailPageList.setTotal(1l);
-        detailPageList.setCurrent(reportSearchCommonVo.getPageNo());
-        detailPageList.setPages(reportSearchCommonVo.getPageNo());
-        detailPageList.setPages(reportSearchCommonVo.getPageSize());
-        return detailPageList;
+        return null;
     }
 
     @Override
     public void downloadDetailListByParams(ReportSearchCommonVo reportSearchCommonVo) {
-        List<ReportRiskDataManageDetailDto> detailList = getDetailList();
-        upLoadFile(reportSearchCommonVo, ReportRiskDataManageDetailDto.class,detailList,"业务数据-险种报表-明细导出-"+ reportSearchCommonVo.getUserId());
-    }
-
-    /**
-     *  @version
-     *  @author: hxl
-     *  @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);
-        return list;
     }
 
     /**
@@ -90,14 +70,14 @@ public class ReportChannelQuotationDataServiceImpl extends ReportBaseServiceImpl
      *  @Date: 2025/9/24 10:42
      *  @Description:  模拟数据
      */
-    public List<ReportRiskDataManageDetailDto>  getDetailList(){
-        List<ReportRiskDataManageDetailDto> list =new ArrayList<>();
-        ReportRiskDataManageDetailDto reportRiskDataManageDetailDto = ReportRiskDataManageDetailDto.builder()
+    public List<ReportSalesmanQuotationDataDto>  getList(){
+        List<ReportSalesmanQuotationDataDto> list =new ArrayList<>();
+        ReportSalesmanQuotationDataDto reportSalesmanQuotationDataDto = ReportSalesmanQuotationDataDto.builder()
                 .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);
+                .quoteCountNum(1000L).quoteCountNumProportion(new BigDecimal(45)).quoteSuccessNum(30L).quoteFailNum(20L)
+                .avgQuoteTime(23L).waitAuditNum(32L).staffProcessNum(36L).underwritPassNum(36L).underwritRejectNum(36L)
+                .underwritPassRate(new BigDecimal(45)).dealOrderNum(36L).conversionRate(new BigDecimal(45)).build();
+        list.add(reportSalesmanQuotationDataDto);
         return list;
     }
 }

+ 25 - 41
consoleStatistics/src/main/java/com/jzg/console/service/impl/ReportCompanyQuotationDataServiceImpl.java

@@ -1,14 +1,19 @@
 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.ReportCompanyQuotationDataDto;
 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.jzg.commons.entity.report.vo.ReportSearchCommonVo;
 import com.jzg.console.service.ReportCompanyQuotationDataService;
 import com.jzg.console.service.ReportQuotationOrderDataService;
+import io.swagger.v3.oas.annotations.media.Schema;
 import org.springframework.stereotype.Service;
 
 import java.math.BigDecimal;
@@ -28,13 +33,13 @@ public class ReportCompanyQuotationDataServiceImpl extends ReportBaseServiceImpl
      *  @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<ReportCompanyQuotationDataDto> page = new Page<>(reportSearchCommonVo.getPageNo(), reportSearchCommonVo.getPageSize());
+        IPage<ReportCompanyQuotationDataDto> pageList = new Page<ReportCompanyQuotationDataDto>();
+        List<ReportCompanyQuotationDataDto> list = getList();
         pageList.setRecords(list);
         pageList.setTotal(1l);
         pageList.setCurrent(reportSearchCommonVo.getPageNo());
@@ -42,46 +47,25 @@ public class ReportCompanyQuotationDataServiceImpl extends ReportBaseServiceImpl
         pageList.setPages(reportSearchCommonVo.getPageSize());
         return pageList;
     }
-
+    /**
+     *  @version
+     *  @author: hxl
+     *  @Date: 2025/9/25 10:04
+     *  @Description: 报价数据-保险公司-列表导出
+     */
     @Override
     public void downloadListByParams(ReportSearchCommonVo reportSearchCommonVo) {
-        List<ReportRiskDataManageDto> list = getList();
-        upLoadFile(reportSearchCommonVo, ReportRiskDataManageDto.class,list,"业务数据-险种报表-列表导出-"+ reportSearchCommonVo.getUserId());
+        List<ReportCompanyQuotationDataDto> list = getList();
+        upLoadFile(reportSearchCommonVo, ReportCompanyQuotationDataDto.class,list,"报价数据-保险公司-列表导出-"+ reportSearchCommonVo.getUserId());
     }
 
     @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();
-        detailPageList.setRecords(detailList);
-        detailPageList.setTotal(1l);
-        detailPageList.setCurrent(reportSearchCommonVo.getPageNo());
-        detailPageList.setPages(reportSearchCommonVo.getPageNo());
-        detailPageList.setPages(reportSearchCommonVo.getPageSize());
-        return detailPageList;
+        return null;
     }
 
     @Override
     public void downloadDetailListByParams(ReportSearchCommonVo reportSearchCommonVo) {
-        List<ReportRiskDataManageDetailDto> detailList = getDetailList();
-        upLoadFile(reportSearchCommonVo, ReportRiskDataManageDetailDto.class,detailList,"业务数据-险种报表-明细导出-"+ reportSearchCommonVo.getUserId());
-    }
-
-    /**
-     *  @version
-     *  @author: hxl
-     *  @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);
-        return list;
     }
 
     /**
@@ -90,14 +74,14 @@ public class ReportCompanyQuotationDataServiceImpl extends ReportBaseServiceImpl
      *  @Date: 2025/9/24 10:42
      *  @Description:  模拟数据
      */
-    public List<ReportRiskDataManageDetailDto>  getDetailList(){
-        List<ReportRiskDataManageDetailDto> list =new ArrayList<>();
-        ReportRiskDataManageDetailDto reportRiskDataManageDetailDto = ReportRiskDataManageDetailDto.builder()
+    public List<ReportCompanyQuotationDataDto>  getList(){
+        List<ReportCompanyQuotationDataDto> list =new ArrayList<>();
+        ReportCompanyQuotationDataDto reportCompanyQuotationDataDto = ReportCompanyQuotationDataDto.builder()
                 .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);
+                .quoteCountNum(1000L).quoteCountNumProportion(new BigDecimal(45)).quoteSuccessNum(30L).quoteFailNum(20L)
+                .avgQuoteTime(23L).waitAuditNum(32L).staffProcessNum(36L).underwritPassNum(36L).underwritRejectNum(36L)
+                .underwritPassRate(new BigDecimal(45)).dealOrderNum(36L).conversionRate(new BigDecimal(45)).build();
+        list.add(reportCompanyQuotationDataDto);
         return list;
     }
 }

+ 24 - 43
consoleStatistics/src/main/java/com/jzg/console/service/impl/ReportQuotationOrderDataServiceImpl.java

@@ -1,14 +1,18 @@
 package com.jzg.console.service.impl;
 
 
+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.ReportQuotationOrderDataDto;
 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.jzg.commons.entity.report.vo.ReportSearchCommonVo;
 import com.jzg.console.service.ReportChannelDataManageService;
 import com.jzg.console.service.ReportQuotationOrderDataService;
+import io.swagger.v3.oas.annotations.media.Schema;
 import org.springframework.stereotype.Service;
 
 import java.math.BigDecimal;
@@ -28,13 +32,13 @@ public class ReportQuotationOrderDataServiceImpl extends ReportBaseServiceImpl i
      *  @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<ReportQuotationOrderDataDto> page = new Page<>(reportSearchCommonVo.getPageNo(), reportSearchCommonVo.getPageSize());
+        IPage<ReportQuotationOrderDataDto> pageList = new Page<ReportQuotationOrderDataDto>();
+        List<ReportQuotationOrderDataDto> list = getList();
         pageList.setRecords(list);
         pageList.setTotal(1l);
         pageList.setCurrent(reportSearchCommonVo.getPageNo());
@@ -42,46 +46,24 @@ public class ReportQuotationOrderDataServiceImpl extends ReportBaseServiceImpl i
         pageList.setPages(reportSearchCommonVo.getPageSize());
         return pageList;
     }
-
+    /**
+     *  @version
+     *  @author: hxl
+     *  @Date: 2025/9/25 9:02
+     *  @Description:  报价数据-报价订单-列表导出
+     */
     @Override
     public void downloadListByParams(ReportSearchCommonVo reportSearchCommonVo) {
-        List<ReportRiskDataManageDto> list = getList();
-        upLoadFile(reportSearchCommonVo, ReportRiskDataManageDto.class,list,"业务数据-险种报表-列表导出-"+ reportSearchCommonVo.getUserId());
+        List<ReportQuotationOrderDataDto> list = getList();
+        upLoadFile(reportSearchCommonVo, ReportQuotationOrderDataDto.class,list,"报价数据-报价订单-列表导出-"+ reportSearchCommonVo.getUserId());
     }
-
     @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();
-        detailPageList.setRecords(detailList);
-        detailPageList.setTotal(1l);
-        detailPageList.setCurrent(reportSearchCommonVo.getPageNo());
-        detailPageList.setPages(reportSearchCommonVo.getPageNo());
-        detailPageList.setPages(reportSearchCommonVo.getPageSize());
-        return detailPageList;
+        return null;
     }
 
     @Override
     public void downloadDetailListByParams(ReportSearchCommonVo reportSearchCommonVo) {
-        List<ReportRiskDataManageDetailDto> detailList = getDetailList();
-        upLoadFile(reportSearchCommonVo, ReportRiskDataManageDetailDto.class,detailList,"业务数据-险种报表-明细导出-"+ reportSearchCommonVo.getUserId());
-    }
-
-    /**
-     *  @version
-     *  @author: hxl
-     *  @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);
-        return list;
     }
 
     /**
@@ -90,14 +72,13 @@ public class ReportQuotationOrderDataServiceImpl extends ReportBaseServiceImpl i
      *  @Date: 2025/9/24 10:42
      *  @Description:  模拟数据
      */
-    public List<ReportRiskDataManageDetailDto>  getDetailList(){
-        List<ReportRiskDataManageDetailDto> list =new ArrayList<>();
-        ReportRiskDataManageDetailDto reportRiskDataManageDetailDto = ReportRiskDataManageDetailDto.builder()
-                .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);
+    public List<ReportQuotationOrderDataDto>  getList(){
+        List<ReportQuotationOrderDataDto> list =new ArrayList<>();
+        ReportQuotationOrderDataDto reportQuotationOrderDataDto = ReportQuotationOrderDataDto.builder()
+                .licenseNo("晋A66666").engineNo("t123456").vinNo("17899112121").brandName("宝马")
+                .quoteOrderNum(1000L).quoteCountNum(1000L).minPremium(new BigDecimal(456)).maxPremium(new BigDecimal(456))
+                .dealCompanyName("诚泰公司").dealPremium(new BigDecimal(32)).build();
+        list.add(reportQuotationOrderDataDto);
         return list;
     }
 }

+ 21 - 44
consoleStatistics/src/main/java/com/jzg/console/service/impl/ReportSalesmanQuotationDataServiceImpl.java

@@ -3,9 +3,7 @@ package com.jzg.console.service.impl;
 
 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.jzg.commons.entity.report.dto.*;
 import com.jzg.commons.entity.report.vo.ReportSearchCommonVo;
 import com.jzg.console.service.ReportCompanyQuotationDataService;
 import com.jzg.console.service.ReportSalesmanQuotationDataService;
@@ -28,13 +26,13 @@ public class ReportSalesmanQuotationDataServiceImpl extends ReportBaseServiceImp
      *  @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<ReportSalesmanQuotationDataDto> page = new Page<>(reportSearchCommonVo.getPageNo(), reportSearchCommonVo.getPageSize());
+        IPage<ReportSalesmanQuotationDataDto> pageList = new Page<ReportSalesmanQuotationDataDto>();
+        List<ReportSalesmanQuotationDataDto> list = getList();
         pageList.setRecords(list);
         pageList.setTotal(1l);
         pageList.setCurrent(reportSearchCommonVo.getPageNo());
@@ -42,46 +40,25 @@ public class ReportSalesmanQuotationDataServiceImpl extends ReportBaseServiceImp
         pageList.setPages(reportSearchCommonVo.getPageSize());
         return pageList;
     }
-
+    /**
+     *  @version
+     *  @author: hxl
+     *  @Date: 2025/9/25 10:07
+     *  @Description:  报价数据-业务员-列表导出
+     */
     @Override
     public void downloadListByParams(ReportSearchCommonVo reportSearchCommonVo) {
-        List<ReportRiskDataManageDto> list = getList();
-        upLoadFile(reportSearchCommonVo, ReportRiskDataManageDto.class,list,"业务数据-险种报表-列表导出-"+ reportSearchCommonVo.getUserId());
+        List<ReportSalesmanQuotationDataDto> list = getList();
+        upLoadFile(reportSearchCommonVo, ReportSalesmanQuotationDataDto.class,list,"报价数据-业务员-列表导出-"+ reportSearchCommonVo.getUserId());
     }
 
     @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();
-        detailPageList.setRecords(detailList);
-        detailPageList.setTotal(1l);
-        detailPageList.setCurrent(reportSearchCommonVo.getPageNo());
-        detailPageList.setPages(reportSearchCommonVo.getPageNo());
-        detailPageList.setPages(reportSearchCommonVo.getPageSize());
-        return detailPageList;
+        return null;
     }
 
     @Override
     public void downloadDetailListByParams(ReportSearchCommonVo reportSearchCommonVo) {
-        List<ReportRiskDataManageDetailDto> detailList = getDetailList();
-        upLoadFile(reportSearchCommonVo, ReportRiskDataManageDetailDto.class,detailList,"业务数据-险种报表-明细导出-"+ reportSearchCommonVo.getUserId());
-    }
-
-    /**
-     *  @version
-     *  @author: hxl
-     *  @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);
-        return list;
     }
 
     /**
@@ -90,14 +67,14 @@ public class ReportSalesmanQuotationDataServiceImpl extends ReportBaseServiceImp
      *  @Date: 2025/9/24 10:42
      *  @Description:  模拟数据
      */
-    public List<ReportRiskDataManageDetailDto>  getDetailList(){
-        List<ReportRiskDataManageDetailDto> list =new ArrayList<>();
-        ReportRiskDataManageDetailDto reportRiskDataManageDetailDto = ReportRiskDataManageDetailDto.builder()
+    public List<ReportSalesmanQuotationDataDto>  getList(){
+        List<ReportSalesmanQuotationDataDto> list =new ArrayList<>();
+        ReportSalesmanQuotationDataDto reportSalesmanQuotationDataDto = ReportSalesmanQuotationDataDto.builder()
                 .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);
+                .quoteCountNum(1000L).quoteCountNumProportion(new BigDecimal(45)).quoteSuccessNum(30L).quoteFailNum(20L)
+                .avgQuoteTime(23L).waitAuditNum(32L).staffProcessNum(36L).underwritPassNum(36L).underwritRejectNum(36L)
+                .underwritPassRate(new BigDecimal(45)).dealOrderNum(36L).conversionRate(new BigDecimal(45)).build();
+        list.add(reportSalesmanQuotationDataDto);
         return list;
     }
 }

+ 21 - 42
consoleStatistics/src/main/java/com/jzg/console/service/impl/ReportTelemarketingQuotationDataServiceImpl.java

@@ -6,6 +6,7 @@ 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.jzg.commons.entity.report.dto.ReportSalesmanQuotationDataDto;
 import com.jzg.commons.entity.report.vo.ReportSearchCommonVo;
 import com.jzg.console.service.ReportChannelDataManageService;
 import com.jzg.console.service.ReportTelemarketingQuotationDataService;
@@ -28,13 +29,13 @@ public class ReportTelemarketingQuotationDataServiceImpl extends ReportBaseServi
      *  @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<ReportSalesmanQuotationDataDto> page = new Page<>(reportSearchCommonVo.getPageNo(), reportSearchCommonVo.getPageSize());
+        IPage<ReportSalesmanQuotationDataDto> pageList = new Page<ReportSalesmanQuotationDataDto>();
+        List<ReportSalesmanQuotationDataDto> list = getList();
         pageList.setRecords(list);
         pageList.setTotal(1l);
         pageList.setCurrent(reportSearchCommonVo.getPageNo());
@@ -42,62 +43,40 @@ public class ReportTelemarketingQuotationDataServiceImpl extends ReportBaseServi
         pageList.setPages(reportSearchCommonVo.getPageSize());
         return pageList;
     }
-
+    /**
+     *  @version
+     *  @author: hxl
+     *  @Date: 2025/9/25 10:10
+     *  @Description: 业务数据-电销-列表导出
+     */
     @Override
     public void downloadListByParams(ReportSearchCommonVo reportSearchCommonVo) {
-        List<ReportRiskDataManageDto> list = getList();
-        upLoadFile(reportSearchCommonVo, ReportRiskDataManageDto.class,list,"业务数据-险种报表-列表导出-"+ reportSearchCommonVo.getUserId());
+        List<ReportSalesmanQuotationDataDto> list = getList();
+        upLoadFile(reportSearchCommonVo, ReportSalesmanQuotationDataDto.class,list,"业务数据-电销-列表导出-"+ reportSearchCommonVo.getUserId());
     }
 
     @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();
-        detailPageList.setRecords(detailList);
-        detailPageList.setTotal(1l);
-        detailPageList.setCurrent(reportSearchCommonVo.getPageNo());
-        detailPageList.setPages(reportSearchCommonVo.getPageNo());
-        detailPageList.setPages(reportSearchCommonVo.getPageSize());
-        return detailPageList;
+        return null;
     }
 
     @Override
     public void downloadDetailListByParams(ReportSearchCommonVo reportSearchCommonVo) {
-        List<ReportRiskDataManageDetailDto> detailList = getDetailList();
-        upLoadFile(reportSearchCommonVo, ReportRiskDataManageDetailDto.class,detailList,"业务数据-险种报表-明细导出-"+ reportSearchCommonVo.getUserId());
-    }
-
-    /**
-     *  @version
-     *  @author: hxl
-     *  @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);
-        return list;
     }
-
     /**
      *  @version
      *  @author: hxl
      *  @Date: 2025/9/24 10:42
      *  @Description:  模拟数据
      */
-    public List<ReportRiskDataManageDetailDto>  getDetailList(){
-        List<ReportRiskDataManageDetailDto> list =new ArrayList<>();
-        ReportRiskDataManageDetailDto reportRiskDataManageDetailDto = ReportRiskDataManageDetailDto.builder()
+    public List<ReportSalesmanQuotationDataDto>  getList(){
+        List<ReportSalesmanQuotationDataDto> list =new ArrayList<>();
+        ReportSalesmanQuotationDataDto reportSalesmanQuotationDataDto = ReportSalesmanQuotationDataDto.builder()
                 .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);
+                .quoteCountNum(1000L).quoteCountNumProportion(new BigDecimal(45)).quoteSuccessNum(30L).quoteFailNum(20L)
+                .avgQuoteTime(23L).waitAuditNum(32L).staffProcessNum(36L).underwritPassNum(36L).underwritRejectNum(36L)
+                .underwritPassRate(new BigDecimal(45)).dealOrderNum(36L).conversionRate(new BigDecimal(45)).build();
+        list.add(reportSalesmanQuotationDataDto);
         return list;
     }
 }