From d6f0958babd71a1dc9d24496076f763f86d76ac7 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期五, 27 十月 2023 13:08:53 +0800
Subject: [PATCH] 商户认证

---
 cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/DataStatisticsController.java |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/DataStatisticsController.java b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/DataStatisticsController.java
index 30d3ca7..cfcfb40 100644
--- a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/DataStatisticsController.java
+++ b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/DataStatisticsController.java
@@ -720,6 +720,9 @@
     @RequestMapping(value = "/backStore")
     @ResponseBody
     public Object backStore(Integer id) {
+        if(UserExt.getUser().getObjectType()==3){
+            id = UserExt.getUser().getObjectId();
+        }
         HashMap<String, Object> map = new HashMap<>();
         List<Integer> userPt = appUserClient.getUserStore(id);
         if(userPt.size()==0){
@@ -884,6 +887,9 @@
     @RequestMapping(value = "/userAndVipStore")
     @ResponseBody
     public Object userAndVipStore(Integer id) {
+        if(UserExt.getUser().getObjectType()==3){
+            id = UserExt.getUser().getObjectId();
+        }
         HashMap<String, Object> map = appUserClient.userAndVipStore(id);
         return map;
     }
@@ -948,6 +954,12 @@
     @RequestMapping(value = "/actStore")
     @ResponseBody
     public Object actStore(Integer id) {
+
+
+        Integer objectType = UserExt.getUser().getObjectType();
+        if(objectType==3){
+            id = UserExt.getUser().getObjectId();
+        }
         List<Integer> userPt = appUserClient.getUserStore(id);
         HashMap<String, Object> map = competitionClient.actPt(userPt);
 
@@ -1110,6 +1122,10 @@
         // 找出平台的用户
         List<User> list = sysUserService.list(new LambdaQueryWrapper<User>().eq(User::getObjectType, 2));
         List<Integer> ids = list.stream().map(User::getId).collect(Collectors.toList());
+        Integer objectType = UserExt.getUser().getObjectType();
+        if(objectType==3){
+            id = UserExt.getUser().getObjectId();
+        }
         List<Integer> userIds = appUserClient.getUserStore(id);
         QueryDataFee queryDataFee = new QueryDataFee(time, userIds);
         // 会员费
@@ -1368,6 +1384,9 @@
     @RequestMapping("/stuUserDataStore")
     @ResponseBody
     public Object stuUserDataStore(Integer id) {
+        if(UserExt.getUser().getObjectType()==3){
+            id = UserExt.getUser().getObjectId();
+        }
         ArrayList<Integer> objects = new ArrayList<>();
         objects.add(1);
         HashMap<String, Object> map = appUserClient.queryUserAgeStore(id);
@@ -1403,6 +1422,10 @@
     @RequestMapping("/selectStoreJx")
     @ResponseBody
     public Object selectStoreJx(Integer id) {
+        Integer objectType = UserExt.getUser().getObjectType();
+        if(objectType==3){
+            id = UserExt.getUser().getObjectId();
+        }
         ArrayList<Integer> objects = new ArrayList<>();
         objects.add(1);
         HashMap<String, Object> map1 = appUserClient.queryUserAgeStore1(id);

--
Gitblit v1.7.1