|
|
@@ -0,0 +1,64 @@
|
|
|
+package com.ydtech.modules.admin.controller;
|
|
|
+
|
|
|
+import com.ydtech.core.page.HttpResult;
|
|
|
+import com.ydtech.modules.admin.model.report.company.CompanyPremiumDataDto;
|
|
|
+import com.ydtech.modules.admin.model.report.company.CompanyPremiumDataQueryDto;
|
|
|
+import com.ydtech.modules.admin.model.report.company.CompanyQutationCountDataDto;
|
|
|
+import com.ydtech.modules.admin.model.report.company.CompanyQutationCountDataQueryDto;
|
|
|
+import com.ydtech.modules.admin.service.CompanyDataReportService;
|
|
|
+import com.ydtech.modules.order.entity.BasePageResult;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @version
|
|
|
+ * @author: hxl
|
|
|
+ * @Date: 2024/7/3 14:50
|
|
|
+ * @Description: 保险公司数据统计
|
|
|
+ */
|
|
|
+@Api(tags = "保险公司数据统计")
|
|
|
+@RequestMapping("/companyDataReport")
|
|
|
+@RestController
|
|
|
+public class CompanyDataReportConroller {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private CompanyDataReportService companyDataReportService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @version
|
|
|
+ * @author: hxl
|
|
|
+ * @Date: 2024/7/3 15:34
|
|
|
+ * @Description: 保险公司-签单保费
|
|
|
+ */
|
|
|
+ @PostMapping("queryCompanyPremiumDataPage")
|
|
|
+ @ApiOperation(value = "保险公司-签单保费")
|
|
|
+ public HttpResult<BasePageResult<CompanyPremiumDataDto>> queryCompanyPremiumDataPage(@RequestBody CompanyPremiumDataQueryDto companyPremiumDataQueryDto) {
|
|
|
+ try{
|
|
|
+ BasePageResult<CompanyPremiumDataDto> result = companyDataReportService.queryCompanyPremiumDataPage(companyPremiumDataQueryDto);
|
|
|
+ return HttpResult.ok("查询数据成功", result);
|
|
|
+ }catch (Exception e){
|
|
|
+ return HttpResult.error("查询错误"+e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * @version
|
|
|
+ * @author: hxl
|
|
|
+ * @Date: 2024/7/3 15:35
|
|
|
+ * @Description: 查询报价次数数据
|
|
|
+ */
|
|
|
+ @PostMapping("queryCompanyQutationCountDataPage")
|
|
|
+ @ApiOperation(value = "查询报价次数数据")
|
|
|
+ public HttpResult<BasePageResult<CompanyQutationCountDataDto>> queryCompanyQutationCountDataPage(@RequestBody CompanyQutationCountDataQueryDto companyQutationCountDataQueryDto) {
|
|
|
+ try{
|
|
|
+ BasePageResult<CompanyQutationCountDataDto> result = companyDataReportService.queryCompanyQutationCountDataPage(companyQutationCountDataQueryDto);
|
|
|
+ return HttpResult.ok("查询数据成功", result);
|
|
|
+ }catch (Exception e){
|
|
|
+ return HttpResult.error("查询错误"+e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|