Your Name лет назад: 3
Родитель
Сommit
13ab8d296d

+ 8 - 15
service-acct/src/main/java/com/java110/acct/bmo/account/impl/GetAccountBMOImpl.java

@@ -99,30 +99,23 @@ public class GetAccountBMOImpl implements IGetAccountBMO {
         List<OwnerDto> ownerDtos = null;
         List<AccountDto> accountDtos = null;
         int count = 0;
-        if (!StringUtil.isEmpty(ownerDto.getLink()) || !StringUtil.isEmpty(ownerDto.getIdCard())) {
+        if (!StringUtil.isEmpty(ownerDto.getIdCard())) {
             //先查询业主
             ownerDtos = ownerInnerServiceSMOImpl.queryOwners(ownerDto);
             if (ownerDtos != null && ownerDtos.size() > 0) {
                 accountDto.setAcctName("");
                 accountDto.setObjId(ownerDtos.get(0).getMemberId());
-                count = accountInnerServiceSMOImpl.queryAccountsCount(accountDto);
-                if (count > 0) {
-                    accountDtos = accountInnerServiceSMOImpl.queryAccounts(accountDto);
-                } else {
-                    accountDtos = new ArrayList<>();
-                }
-            } else {
-                accountDtos = new ArrayList<>();
             }
+        }
+
+        count = accountInnerServiceSMOImpl.queryAccountsCount(accountDto);
+        if (count > 0) {
+            accountDtos = accountInnerServiceSMOImpl.queryAccounts(accountDto);
         } else {
-            count = accountInnerServiceSMOImpl.queryAccountsCount(accountDto);
-            if (count > 0) {
-                accountDtos = accountInnerServiceSMOImpl.queryAccounts(accountDto);
-            } else {
-                accountDtos = new ArrayList<>();
-            }
+            accountDtos = new ArrayList<>();
         }
 
+
         if (accountDtos == null || accountDtos.size() < 1) {
             //添加 账户
             accountDtos = addAccountDto(accountDto, ownerDto);