Browse Source

app商城订单统计,互联网医院订单统计接口,查询入参类型修改

cgp 6 days ago
parent
commit
0da67d69ed

+ 27 - 0
fs-admin/src/main/java/com/fs/company/controller/CompanyStatisticsController.java

@@ -19,9 +19,14 @@ import com.fs.crm.service.ICrmCustomerService;
 import com.fs.crm.service.ICrmCustomerVisitService;
 import com.fs.crm.vo.CrmCustomerStatisticsVO;
 import com.fs.crm.vo.CrmCustomerVisitStatisticsVO;
+import com.fs.his.dto.FsStoreOrderAmountScrmStatsQueryDto;
+import com.fs.his.dto.FsStoreOrderAmountStatsQueryDto;
 import com.fs.his.service.IFsStoreAfterSalesService;
 import com.fs.his.service.IFsStoreOrderService;
 import com.fs.his.service.IFsStorePaymentService;
+import com.fs.his.vo.FsStoreOrderAmountScrmStatsVo;
+import com.fs.his.vo.FsStoreOrderAmountStatsVo;
+import com.fs.hisStore.service.IFsStoreOrderScrmService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.GetMapping;
@@ -67,6 +72,10 @@ public class CompanyStatisticsController extends BaseController
     private ICrmCustomerService crmCustomerService;
     @Autowired
     private ICrmCustomerVisitService crmCustomerVisitService;
+
+    //app商城订单接口Service
+    @Autowired
+    private IFsStoreOrderScrmService fsStoreOrderScrmService;
     @GetMapping("/storeOrder")
     public R storeOrder(FsStoreStatisticsParam param)
     {
@@ -724,4 +733,22 @@ public class CompanyStatisticsController extends BaseController
         return util.exportExcel(qwIpadTotalVos, "visit");
     }
 
+    /**
+     * 获取互联网医院订单统计数据
+     * */
+    @GetMapping("/hisOrderCountStats")
+    public AjaxResult getHisOrderCount(FsStoreOrderAmountStatsQueryDto statsQueryDto){
+        FsStoreOrderAmountStatsVo fsStoreOrderAmountStatsVo = storeOrderService.selectFsStoreOrderAmountStats(statsQueryDto);
+        return AjaxResult.success(fsStoreOrderAmountStatsVo);
+    }
+
+    /**
+     * 获取App商城订单统计数据
+     * */
+    @GetMapping("/appOrderCountStats")
+    public AjaxResult getAppOrderCount(FsStoreOrderAmountScrmStatsQueryDto statsQueryDto){
+        FsStoreOrderAmountScrmStatsVo scrmStatsVo = fsStoreOrderScrmService.selectFsStoreOrderAmountScrmStats(statsQueryDto);
+        return AjaxResult.success(scrmStatsVo);
+    }
+
 }

+ 6 - 3
fs-service/src/main/java/com/fs/his/dto/FsStoreOrderAmountScrmStatsQueryDto.java

@@ -1,19 +1,22 @@
 package com.fs.his.dto;
 
 import lombok.Data;
+
+import java.io.Serializable;
+
 /**
  * app商城订单金额统计queryDto对象
  * */
 @Data
-public class FsStoreOrderAmountScrmStatsQueryDto {
+public class FsStoreOrderAmountScrmStatsQueryDto implements Serializable {
     /**
      * 销售公司id
      * */
-    private String companyId;
+    private Long companyId;
     /**
      * 销售人员id
      * */
-    private String companyUserId;
+    private Long companyUserId;
     /**
      * 订单开始时间
      * */

+ 6 - 3
fs-service/src/main/java/com/fs/his/dto/FsStoreOrderAmountStatsQueryDto.java

@@ -1,19 +1,22 @@
 package com.fs.his.dto;
 
 import lombok.Data;
+
+import java.io.Serializable;
+
 /**
  * 互联网医院订单金额统计queryDto对象
  * */
 @Data
-public class FsStoreOrderAmountStatsQueryDto {
+public class FsStoreOrderAmountStatsQueryDto  implements Serializable {
     /**
      * 销售公司id
      * */
-    private String companyId;
+    private Long companyId;
     /**
      * 销售人员id
      * */
-    private String companyUserId;
+    private Long companyUserId;
     /**
      * 订单开始时间
      * */