From 4d5818f3b1b99bb0f6694500d9b0a6cc29361a4f Mon Sep 17 00:00:00 2001 From: hu177768073 <177768073@qq.com> Date: Wed, 25 Sep 2024 17:45:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hfkj/controller/UserTeamController.java | 18 ++++++++---------- .../com/hfkj/dao/BsUserParentRelMapperExt.java | 2 +- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/cweb/src/main/java/com/hfkj/controller/UserTeamController.java b/cweb/src/main/java/com/hfkj/controller/UserTeamController.java index 00890ed..15656a2 100644 --- a/cweb/src/main/java/com/hfkj/controller/UserTeamController.java +++ b/cweb/src/main/java/com/hfkj/controller/UserTeamController.java @@ -24,7 +24,6 @@ import java.util.HashMap; import java.util.List; import java.util.Map; - /** * @className: UserTeamController * @author: HuRui @@ -61,29 +60,28 @@ public class UserTeamController { map.put("teamFriend", subList.stream().filter(o -> o.getRelType().equals(2)).count()); Map active = new HashMap<>(); - // 今日 Map today = new HashMap<>(); - today.put("", ""); - today.put("", ""); + today.put("newFriend", ""); + today.put("activeFriend", ""); active.put("today", today); // 昨日 Map yesterday = new HashMap<>(); - yesterday.put("", ""); - yesterday.put("", ""); + yesterday.put("newFriend", ""); + yesterday.put("activeFriend", ""); active.put("yesterday", yesterday); // 本月 Map thisMonth = new HashMap<>(); - thisMonth.put("", ""); - thisMonth.put("", ""); + thisMonth.put("newFriend", ""); + thisMonth.put("activeFriend", ""); active.put("thisMonth", thisMonth); // 上月 Map lastMonth = new HashMap<>(); - lastMonth.put("", ""); - lastMonth.put("", ""); + lastMonth.put("newFriend", ""); + lastMonth.put("activeFriend", ""); active.put("lastMonth", lastMonth); map.put("active", active); diff --git a/service/src/main/java/com/hfkj/dao/BsUserParentRelMapperExt.java b/service/src/main/java/com/hfkj/dao/BsUserParentRelMapperExt.java index 5d573db..d9c4bc3 100644 --- a/service/src/main/java/com/hfkj/dao/BsUserParentRelMapperExt.java +++ b/service/src/main/java/com/hfkj/dao/BsUserParentRelMapperExt.java @@ -28,7 +28,7 @@ public interface BsUserParentRelMapperExt { " WHERE FIND_IN_SET(invite_user_id, @pid) > 0 and @pid := concat(@pid, ',', id)" + " ORDER BY id" + " ) a where 1 = 1" + - " and a.id = #{param.userId} " + + " and a.userId = #{param.userId} " + " and a.relType = 1 " + " and a.relType = 2 " + " and a.grade = 1 " +