libo před 4 roky
rodič
revize
683b3e785c

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

@@ -106,7 +106,7 @@ public class UserService {
106
 
106
 
107
                 //往前追溯的推荐人
107
                 //往前追溯的推荐人
108
                 userRelateMapper.selectByUid(row.getSpread_uid()).stream().forEach(innerRow -> {
108
                 userRelateMapper.selectByUid(row.getSpread_uid()).stream().forEach(innerRow -> {
109
-                    if((0 < num) && (innerRow.getDate().isBefore(localDate))) {
109
+                    if(innerRow.getDate().isBefore(localDate)) {
110
                         resultList.add(UserCount.UserCountBuilder.anUserCount()
110
                         resultList.add(UserCount.UserCountBuilder.anUserCount()
111
                                 .withCreate_time(currentTime)
111
                                 .withCreate_time(currentTime)
112
                                 .withNum(num + 1)
112
                                 .withNum(num + 1)