xuzuoyun 3 лет назад
Родитель
Сommit
7e5ef408c9

+ 4 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/report/mapper/xml/EtlKuaishouReportAccountDailyMapper.xml

@@ -510,6 +510,8 @@
         ) t7 on t2.project_id = t7.project_id
         where t1.stat_date >= #{startTime}
         AND t1.stat_date <= #{endTime}
+        and
+        t3.user_id=#{userId}
         GROUP BY t3.id
         HAVING SUM(charge)>0
         <if test="sortCode != '' and sortCode != null ">
@@ -528,6 +530,8 @@
                           INNER JOIN ctop_project t3 ON t2.project_id = t3.id
                  where t1.stat_date &gt;= #{startTime}
                    AND t1.stat_date &lt;= #{endTime}
+                    and
+                    t3.user_id=#{userId}
                  GROUP BY t3.id
                  HAVING SUM(charge) > 0
              ) t

+ 6 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/report/mapper/xml/EtlKuaishouReportAccountHourlyMapper.xml

@@ -587,7 +587,10 @@
         AND stat_hour &lt;= #{hours}
         GROUP BY i1.account_id
         ) t6 ON t2.account_id = t6.account_id
-        where stat_date = #{startTime}
+        where
+        stat_date = #{startTime}
+        and
+        t3.user_id=#{userId}
         GROUP BY t3.id
         HAVING SUM(charge)>0
         <if test="sortCode != '' and sortCode != null ">
@@ -606,6 +609,8 @@
         LEFT JOIN ctop_user_allocation t2 ON t1.account_id = t2.account_id
         INNER JOIN ctop_project t3 ON t2.project_id = t3.id
         where stat_date = #{startTime}
+        and
+        t3.user_id=#{userId}
         GROUP BY t3.id
         HAVING SUM(charge)>0
         )t

+ 1 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/report/service/impl/EtlKuaishouReportAccountHourlyServiceImpl.java

@@ -577,6 +577,7 @@ public class EtlKuaishouReportAccountHourlyServiceImpl extends ServiceImpl<EtlKu
         }
         //参数处理
         configParameter(request);
+        request.put("userId", userId);
         //获取人群集
         request.put("userIds", getUserIdList(userId));
         List<JSONObject> list = null;