|
@@ -0,0 +1,105 @@
|
|
|
|
|
+package com.ydtech.modules.admin.controller;
|
|
|
|
|
+
|
|
|
|
|
+import com.ydtech.core.page.HttpResult;
|
|
|
|
|
+import com.ydtech.modules.admin.model.report.financeData.AdvanceAndActualDataDto;
|
|
|
|
|
+import com.ydtech.modules.admin.model.report.financeData.AdvanceAndActualDeptDataDto;
|
|
|
|
|
+import com.ydtech.modules.admin.model.report.financeData.AdvanceAndActualDeptQueryDto;
|
|
|
|
|
+import com.ydtech.modules.admin.model.report.financeData.AdvanceAndActualQueryDto;
|
|
|
|
|
+import com.ydtech.modules.admin.model.report.opetationData.OperationsPersonnelDataDto;
|
|
|
|
|
+import com.ydtech.modules.admin.model.report.opetationData.QuotationCountDataDto;
|
|
|
|
|
+import com.ydtech.modules.admin.model.report.opetationData.QuotationCountQueryDto;
|
|
|
|
|
+import com.ydtech.modules.admin.service.FinanceDataReportService;
|
|
|
|
|
+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/1 11:31
|
|
|
|
|
+ * @Description: 控制台 运营数据统计
|
|
|
|
|
+ */
|
|
|
|
|
+@Api(tags = "财务数据统计")
|
|
|
|
|
+@RequestMapping("/financeDataReport")
|
|
|
|
|
+@RestController
|
|
|
|
|
+public class FinanceDataReportConroller {
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private FinanceDataReportService financeDataReportService;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @version
|
|
|
|
|
+ * @author: hxl
|
|
|
|
|
+ * @Date: 2024/7/3 14:54
|
|
|
|
|
+ * @Description: 财务数据 - 渠道/代理人 - 预收、实收数据
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("queryAdvanceAndActualDataPage")
|
|
|
|
|
+ @ApiOperation(value = "财务数据 - 渠道/代理人 - 预收、实收数据")
|
|
|
|
|
+ public HttpResult<BasePageResult<AdvanceAndActualDataDto>> queryAdvanceAndActualDataPage(@RequestBody AdvanceAndActualQueryDto advanceAndActualQueryDto) {
|
|
|
|
|
+ try{
|
|
|
|
|
+ BasePageResult<AdvanceAndActualDataDto> result = financeDataReportService.queryAdvanceAndActualDataPage(advanceAndActualQueryDto);
|
|
|
|
|
+ return HttpResult.ok("查询数据成功", result);
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ return HttpResult.error("查询错误"+e.getMessage());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @version
|
|
|
|
|
+ * @author: hxl
|
|
|
|
|
+ * @Date: 2024/7/3 14:54
|
|
|
|
|
+ * @Description: 财务数据 -机构的 -预收、实收数据
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("queryAdvanceAndActualDeptDataPage")
|
|
|
|
|
+ @ApiOperation(value = "财务数据 -机构的 -预收、实收数据")
|
|
|
|
|
+ public HttpResult<BasePageResult<AdvanceAndActualDeptDataDto>> queryAdvanceAndActualDeptDataPage(@RequestBody AdvanceAndActualDeptQueryDto advanceAndActualDeptQueryDto) {
|
|
|
|
|
+ try{
|
|
|
|
|
+ BasePageResult<AdvanceAndActualDeptDataDto> result = financeDataReportService.queryAdvanceAndActualDeptDataPage(advanceAndActualDeptQueryDto);
|
|
|
|
|
+ return HttpResult.ok("查询数据成功", result);
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ return HttpResult.error("查询错误"+e.getMessage());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @version
|
|
|
|
|
+ * @author: hxl
|
|
|
|
|
+ * @Date: 2024/7/3 11:17
|
|
|
|
|
+ * @Description: 财务数据 -渠道/代理人 - 已提现/提现中/驳回的金额
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("queryQuotationCountDataPage11")
|
|
|
|
|
+ @ApiOperation(value = "查询报价次数数据")
|
|
|
|
|
+ public HttpResult<BasePageResult<QuotationCountDataDto>> queryQuotationCountDataPage(@RequestBody QuotationCountQueryDto quotationCountQueryDto) {
|
|
|
|
|
+ try{
|
|
|
|
|
+ BasePageResult<QuotationCountDataDto> result = null;
|
|
|
|
|
+ // financeDataReportService.queryQuotationCountDataPage(quotationCountQueryDto);
|
|
|
|
|
+ return HttpResult.ok("查询数据成功", result);
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ return HttpResult.error("查询错误"+e.getMessage());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @version
|
|
|
|
|
+ * @author: hxl
|
|
|
|
|
+ * @Date: 2024/7/3 11:17
|
|
|
|
|
+ * @Description: 财务数据 -机构 - 已提现/提现中/驳回的金额
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("queryOperationsPersonnelDataPage22")
|
|
|
|
|
+ @ApiOperation(value = "查询运营人员数据")
|
|
|
|
|
+ public HttpResult<BasePageResult<OperationsPersonnelDataDto>> queryOperationsPersonnelDataPage(@RequestBody QuotationCountQueryDto quotationCountQueryDto) {
|
|
|
|
|
+ try{
|
|
|
|
|
+ BasePageResult<OperationsPersonnelDataDto> result = null;
|
|
|
|
|
+ //financeDataReportService.queryOperationsPersonnelDataPage(quotationCountQueryDto);
|
|
|
|
|
+ return HttpResult.ok("查询数据成功", result);
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ return HttpResult.error("查询错误"+e.getMessage());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|