libo 4 lat temu
rodzic
commit
faf1d4b991

+ 2 - 2
src/main/java/com/tdba/cxb/ares/api/service/UserService.java

@@ -93,7 +93,7 @@ public class UserService {
93 93
                     //推荐人
94 94
                     resultList.add(UserCount.UserCountBuilder.anUserCount()
95 95
                             .withCreate_time(currentTime)
96
-                            .withNum(num)
96
+                            .withNum(num + 1)
97 97
                             .withUser_type(UserTypeEnum.NORMAL.ordinal())
98 98
                             .withUid(row.getSpread_uid())
99 99
                             .withDate(localDate)
@@ -105,7 +105,7 @@ public class UserService {
105 105
                     if((0 < num) && (innerRow.getDate().isBefore(localDate))) {
106 106
                         resultList.add(UserCount.UserCountBuilder.anUserCount()
107 107
                                 .withCreate_time(currentTime)
108
-                                .withNum(num)
108
+                                .withNum(num + 1)
109 109
                                 .withUser_type(UserTypeEnum.NORMAL.ordinal())
110 110
                                 .withUid(innerRow.getPid())
111 111
                                 .withDate(localDate)

+ 15 - 16
src/main/resources/mapper/UserBindMapper.xml

@@ -8,13 +8,13 @@
8 8
             <if test="null != uid">
9 9
                 uid,
10 10
             </if>
11
-            <if test="null != createTime">
11
+            <if test="null != create_time">
12 12
                 create_time,
13 13
             </if>
14
-            <if test="null != delFlag">
14
+            <if test="null != del_flag">
15 15
                 del_flag,
16 16
             </if>
17
-            <if test="null != bindUid">
17
+            <if test="null != bind_uid">
18 18
                 bind_uid,
19 19
             </if>
20 20
             <if test="null != type">
@@ -26,14 +26,14 @@
26 26
             <if test="null != uid">
27 27
                 #{ uid },
28 28
             </if>
29
-            <if test="null != createTime">
30
-                #{ createTime },
29
+            <if test="null != create_time">
30
+                #{create_time},
31 31
             </if>
32
-            <if test="null != delFlag">
33
-                #{ delFlag },
32
+            <if test="null != del_flag">
33
+                #{del_flag},
34 34
             </if>
35
-            <if test="null != bindUid">
36
-                #{ bindUid },
35
+            <if test="null != bind_uid">
36
+                #{bind_uid},
37 37
             </if>
38 38
             <if test="null != type">
39 39
                 #{ type },
@@ -47,14 +47,14 @@
47 47
             <if test="null != uid">
48 48
                 uid = #{ uid },
49 49
             </if>
50
-            <if test="null != createTime">
51
-                create_time = #{ createTime },
50
+            <if test="null != create_time">
51
+                create_time = #{create_time},
52 52
             </if>
53
-            <if test="null != delFlag">
54
-                del_flag = #{ delFlag },
53
+            <if test="null != del_flag">
54
+                del_flag = #{del_flag},
55 55
             </if>
56
-            <if test="null != bindUid">
57
-                bind_uid = #{ bindUid },
56
+            <if test="null != bind_uid">
57
+                bind_uid = #{bind_uid},
58 58
             </if>
59 59
             <if test="null != type">
60 60
                 type = #{ type },
@@ -70,5 +70,4 @@
70 70
     <select id="selectUid" resultType="java.lang.Integer">
71 71
         select uid from user_bind where del_flag = 0 and type = 0 and bind_uid = #{bindUid}
72 72
     </select>
73
-
74 73
 </mapper>

+ 3 - 1
src/main/resources/mapper/UserRelateMapper.xml

@@ -135,7 +135,9 @@
135 135
             del_flag = 0
136 136
           and uid = #{uid}
137 137
           and pid in
138
-        <foreach collection="pidList" item="item" open="(" separator="," close=")"></foreach>
138
+        <foreach collection="pidList" item="item" open="(" separator="," close=")">
139
+            #{item}
140
+        </foreach>
139 141
     </select>
140 142
 
141 143
     <select id="selectByPid" resultType="com.tdba.cxb.ares.api.model.DetailListResp">