Procházet zdrojové kódy

feat(会员登记簿):开通会员登记簿

Wangyafan před 1 měsícem
rodič
revize
2b08a11742

+ 7 - 0
src/main/java/com/inkasso/factoring/bocom/vipaccount/service/impl/BocomVipAccountBasicInfoServiceImpl.java

@@ -205,6 +205,13 @@ public class BocomVipAccountBasicInfoServiceImpl extends ServiceImpl<BocomVipAcc
                 bocomVipLimitInfo.setBocomVipAccountBasicInfoId(newBasicInfo.getId());
                 bocomVipLimitInfoService.save(bocomVipLimitInfo);
             }
+
+            if (CollectionUtil.isNotEmpty(newBasicInfo.getNoticeInfoList())) {
+                newBasicInfo.getNoticeInfoList().forEach(n -> {
+                    n.setBocomVipAccountBasicInfoId(newBasicInfo.getId());
+                    bocomVipAccountNoticeInfoService.save(n);
+                });
+            }
         }
         //填充需要授权的人
         autoAuthenticator(newBasicInfo);