Explorar o código

feat(会员登记簿):授权

Wangyafan hai 12 horas
pai
achega
3bd55ef119

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

@@ -458,21 +458,21 @@ public class BocomVipAccountBasicInfoServiceImpl extends ServiceImpl<BocomVipAcc
                     .one();
 
             List<BocomVipAccountNoticeInfo> noticeInfos = new ArrayList<>();
-            if (!"4".equals(bocomVipAccountBasicInfo.getLegalAuthorizationStatus())){
-                noticeInfoList.forEach(n->{
-                    if ("1".equals(n.getNoticeObject())){
-                            if (basicInfo.getCustomerType() == 0) {
-                                n.setAuthenticator(legalPersonInfo.getName());
-                            } else if (basicInfo.getCustomerType() == 1) {
-                                n.setAuthenticator(actualController.getName());
-                            }
+            if (4 != bocomVipAccountBasicInfo.getLegalAuthorizationStatus()) {
+                noticeInfoList.forEach(n -> {
+                    if ("1".equals(n.getNoticeObject())) {
+                        if (basicInfo.getCustomerType() == 0) {
+                            n.setAuthenticator(legalPersonInfo.getName());
+                        } else if (basicInfo.getCustomerType() == 1) {
+                            n.setAuthenticator(actualController.getName());
+                        }
                         noticeInfos.add(n);
                     }
                 });
             }
-            if (!"4".equals(bocomVipAccountBasicInfo.getAuthorizationStatus())){
-                noticeInfoList.forEach(n->{
-                    if ("2".equals(n.getNoticeObject())){
+            if (4 != bocomVipAccountBasicInfo.getAuthorizationStatus()) {
+                noticeInfoList.forEach(n -> {
+                    if ("2".equals(n.getNoticeObject())) {
                         n.setAuthenticator(authorizedAgent.getName());
                         noticeInfos.add(n);
                     }