Ver Fonte

修改获取人员信息的方式

gaohp há 1 ano atrás
pai
commit
ee8a7e5dd6

+ 1 - 2
feifan-module-distri/feifan-module-distri-biz/src/main/java/cn/newfeifan/mall/module/distri/service/duser/DuserServiceImpl.java

@@ -121,7 +121,6 @@ public class DuserServiceImpl implements DuserService {
         List<Long> sonsId = sharePathService.sonsId(userId);
         IntegralDO integral = integralService.getIntegral(userId);
         if (integral == null) {
-            // 初始化积分表
             throw exception(INTEGRAL_NOT_EXISTS);
         }
         DuserInfoVO.DuserInfoVOBuilder duserInfoVOBuilder = DuserInfoVO.builder()
@@ -130,7 +129,7 @@ public class DuserServiceImpl implements DuserService {
 
         String yesterday = "0";
         String totalLog = "0";
-        if (!sonsId.isEmpty()) {
+        if (sonsId.size() > 0) {
             // 获取昨日贡献值 + 合赢奖
             yesterday = ptProfitLogService.getYesterdayLog(sonsId);
             totalLog = ptProfitLogService.getTotalLog(sonsId);