Bläddra i källkod

feat(会员登记簿):授权

Wangyafan 1 månad sedan
förälder
incheckning
de1ff22242

+ 4 - 4
src/main/java/com/sunxung/factoring/service/bocom/vipaccount/impl/BocomVipAccountBasicInfoServiceImpl.java

@@ -2508,6 +2508,7 @@ public class BocomVipAccountBasicInfoServiceImpl extends ServiceImpl<BocomVipAcc
         List<BocomVipAccountNoticeInfo> noticeInfoList = bocomVipAccountNoticeInfoService.lambdaQuery()
                 .eq(BocomVipAccountNoticeInfo::getBocomVipAccountBasicInfoId, bocomVipAccountBasicInfo.getId())
                 .list();
+        List<BocomVipAccountNoticeInfo> noticeInfos = new ArrayList<>();
         if (CollectionUtil.isNotEmpty(noticeInfoList)) {
             //授权代理人
             BocomAuthorizedAgent authorizedAgent = bocomAuthorizedAgentService.lambdaQuery()
@@ -2522,7 +2523,6 @@ public class BocomVipAccountBasicInfoServiceImpl extends ServiceImpl<BocomVipAcc
                     .eq(BocomShareholderActualController::getBocomBasicInfoId, basicInfo.getId())
                     .eq(BocomShareholderActualController::getPersonType, 2)
                     .one();
-            List<BocomVipAccountNoticeInfo> noticeInfos = new ArrayList<>();
             if (4 != bocomVipAccountBasicInfo.getLegalAuthorizationStatus()) {
                 noticeInfoList.forEach(n -> {
                     if (n.getNoticeObject().equals("1")) {
@@ -2531,9 +2531,9 @@ public class BocomVipAccountBasicInfoServiceImpl extends ServiceImpl<BocomVipAcc
                         } else if (basicInfo.getCustomerType() == 1) {
                             n.setAuthenticator(actualController.getName());
                         }
-
+                        noticeInfos.add(n);
                     }
-                    noticeInfos.add(n);
+
                 });
             }
             if (4 != bocomVipAccountBasicInfo.getAuthorizationStatus()) {
@@ -2547,7 +2547,7 @@ public class BocomVipAccountBasicInfoServiceImpl extends ServiceImpl<BocomVipAcc
 
 
         }
-        bocomVipAccountBasicInfo.setNoticeInfoList(noticeInfoList);
+        bocomVipAccountBasicInfo.setNoticeInfoList(noticeInfos);
 
     }