|
@@ -1,14 +1,18 @@
|
|
|
package com.jzg.console.service.impl;
|
|
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.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
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.commons.entity.report.vo.ReportSearchCommonVo;
|
|
|
import com.jzg.console.service.ReportChannelDataManageService;
|
|
import com.jzg.console.service.ReportChannelDataManageService;
|
|
|
import com.jzg.console.service.ReportCostVerificationDataService;
|
|
import com.jzg.console.service.ReportCostVerificationDataService;
|
|
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
+import org.springframework.format.annotation.DateTimeFormat;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
@@ -24,17 +28,19 @@ import java.util.List;
|
|
|
*/
|
|
*/
|
|
|
@Service
|
|
@Service
|
|
|
public class ReportCostVerificationDataServiceImpl extends ReportBaseServiceImpl implements ReportCostVerificationDataService {
|
|
public class ReportCostVerificationDataServiceImpl extends ReportBaseServiceImpl implements ReportCostVerificationDataService {
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @version
|
|
* @version
|
|
|
* @author: hxl
|
|
* @author: hxl
|
|
|
* @Date: 2025/9/24 15:37
|
|
* @Date: 2025/9/24 15:37
|
|
|
- * @Description: 业务数据-渠道
|
|
|
|
|
|
|
+ * @Description: 财务数据-费用校验-列表
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
public IPage<?> getPageListByParams(ReportSearchCommonVo reportSearchCommonVo) {
|
|
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<ReportCostVerificationDataDto> page = new Page<>(reportSearchCommonVo.getPageNo(), reportSearchCommonVo.getPageSize());
|
|
|
|
|
+ IPage<ReportCostVerificationDataDto> pageList = new Page<ReportCostVerificationDataDto>();
|
|
|
|
|
+ List<ReportCostVerificationDataDto> list = getList();
|
|
|
pageList.setRecords(list);
|
|
pageList.setRecords(list);
|
|
|
pageList.setTotal(1l);
|
|
pageList.setTotal(1l);
|
|
|
pageList.setCurrent(reportSearchCommonVo.getPageNo());
|
|
pageList.setCurrent(reportSearchCommonVo.getPageNo());
|
|
@@ -42,30 +48,45 @@ public class ReportCostVerificationDataServiceImpl extends ReportBaseServiceImpl
|
|
|
pageList.setPages(reportSearchCommonVo.getPageSize());
|
|
pageList.setPages(reportSearchCommonVo.getPageSize());
|
|
|
return pageList;
|
|
return pageList;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @version
|
|
|
|
|
+ * @author: hxl
|
|
|
|
|
+ * @Date: 2025/9/26 10:28
|
|
|
|
|
+ * @Description: 财务数据-费用校验-列表导出
|
|
|
|
|
+ */
|
|
|
@Override
|
|
@Override
|
|
|
public void downloadListByParams(ReportSearchCommonVo reportSearchCommonVo) {
|
|
public void downloadListByParams(ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
- List<ReportRiskDataManageDto> list = getList();
|
|
|
|
|
- upLoadFile(reportSearchCommonVo, ReportRiskDataManageDto.class,list,"业务数据-险种报表-列表导出-"+ reportSearchCommonVo.getUserId());
|
|
|
|
|
|
|
+ List<ReportCostVerificationDataDto> list = getList();
|
|
|
|
|
+ upLoadFile(reportSearchCommonVo, ReportCostVerificationDataDto.class,list,"财务数据-费用校验-列表导出-"+ reportSearchCommonVo.getUserId());
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @version
|
|
|
|
|
+ * @author: hxl
|
|
|
|
|
+ * @Date: 2025/9/26 10:30
|
|
|
|
|
+ * @Description: 财务数据-费用校验-明细列表
|
|
|
|
|
+ */
|
|
|
@Override
|
|
@Override
|
|
|
public IPage<?> getPageDetailListByParams(ReportSearchCommonVo reportSearchCommonVo) {
|
|
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;
|
|
|
|
|
|
|
+ Page<ReportCostVerificationDataDetailDto> page = new Page<>(reportSearchCommonVo.getPageNo(), reportSearchCommonVo.getPageSize());
|
|
|
|
|
+ IPage<ReportCostVerificationDataDetailDto> pageList = new Page<ReportCostVerificationDataDetailDto>();
|
|
|
|
|
+ List<ReportCostVerificationDataDetailDto> list = getDetailList();
|
|
|
|
|
+ pageList.setRecords(list);
|
|
|
|
|
+ pageList.setTotal(1l);
|
|
|
|
|
+ pageList.setCurrent(reportSearchCommonVo.getPageNo());
|
|
|
|
|
+ pageList.setPages(reportSearchCommonVo.getPageNo());
|
|
|
|
|
+ pageList.setPages(reportSearchCommonVo.getPageSize());
|
|
|
|
|
+ return pageList;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @version
|
|
|
|
|
+ * @author: hxl
|
|
|
|
|
+ * @Date: 2025/9/26 10:30
|
|
|
|
|
+ * @Description: 财务数据-费用校验-明细列表
|
|
|
|
|
+ */
|
|
|
@Override
|
|
@Override
|
|
|
public void downloadDetailListByParams(ReportSearchCommonVo reportSearchCommonVo) {
|
|
public void downloadDetailListByParams(ReportSearchCommonVo reportSearchCommonVo) {
|
|
|
- List<ReportRiskDataManageDetailDto> detailList = getDetailList();
|
|
|
|
|
- upLoadFile(reportSearchCommonVo, ReportRiskDataManageDetailDto.class,detailList,"业务数据-险种报表-明细导出-"+ reportSearchCommonVo.getUserId());
|
|
|
|
|
|
|
+ List<ReportCostVerificationDataDetailDto> detailList = getDetailList();
|
|
|
|
|
+ upLoadFile(reportSearchCommonVo, ReportCostVerificationDataDetailDto.class,detailList,"财务数据-费用校验-明细列表-"+ reportSearchCommonVo.getUserId());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -74,13 +95,12 @@ public class ReportCostVerificationDataServiceImpl extends ReportBaseServiceImpl
|
|
|
* @Date: 2025/9/24 10:42
|
|
* @Date: 2025/9/24 10:42
|
|
|
* @Description: 模拟数据
|
|
* @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<ReportCostVerificationDataDto> getList(){
|
|
|
|
|
+ List<ReportCostVerificationDataDto> list =new ArrayList<>();
|
|
|
|
|
+ ReportCostVerificationDataDto reportCostVerificationDataDto = ReportCostVerificationDataDto.builder()
|
|
|
|
|
+ .companyId("1").companyName("永诚财险").pendingReviewNum(100L).reviewedNum(100L)
|
|
|
|
|
+ .autoReviewNum(100L).manualReviewNum(100L).aveReviewDuration(10L).build();
|
|
|
|
|
+ list.add(reportCostVerificationDataDto);
|
|
|
return list;
|
|
return list;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -90,14 +110,14 @@ public class ReportCostVerificationDataServiceImpl extends ReportBaseServiceImpl
|
|
|
* @Date: 2025/9/24 10:42
|
|
* @Date: 2025/9/24 10:42
|
|
|
* @Description: 模拟数据
|
|
* @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<ReportCostVerificationDataDetailDto> getDetailList(){
|
|
|
|
|
+ List<ReportCostVerificationDataDetailDto> list =new ArrayList<>();
|
|
|
|
|
+ ReportCostVerificationDataDetailDto reportCostVerificationDataDetailDto = ReportCostVerificationDataDetailDto.builder()
|
|
|
|
|
+ .companyId("1").companyName("永诚财险").checkTypeName("已审核")
|
|
|
|
|
+ .orderNo("2025090811253600215").licenseNo("京AG6002").orderTypeName("代客录单")
|
|
|
|
|
+ .submitCheckTime(new Date()).checkTime(new Date()).checkStatusName("已承保")
|
|
|
|
|
+ .checkTimeSecond(100L).checkUserName("张三").build();
|
|
|
|
|
+ list.add(reportCostVerificationDataDetailDto);
|
|
|
return list;
|
|
return list;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|