소스 검색

优化 账户

java110 3 년 전
부모
커밋
dc896b24fe
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      service-acct/src/main/java/com/java110/acct/bmo/account/impl/GetAccountBMOImpl.java

+ 3 - 0
service-acct/src/main/java/com/java110/acct/bmo/account/impl/GetAccountBMOImpl.java

@@ -147,6 +147,9 @@ public class GetAccountBMOImpl implements IGetAccountBMO {
 
 
 
 
     private List<AccountDto> addAccountDto(AccountDto accountDto, OwnerDto ownerDto) {
     private List<AccountDto> addAccountDto(AccountDto accountDto, OwnerDto ownerDto) {
+        if (StringUtil.isEmpty(ownerDto.getOwnerId())) {
+            return new ArrayList<>();
+        }
         //开始锁代码
         //开始锁代码
         String requestId = DistributedLock.getLockUUID();
         String requestId = DistributedLock.getLockUUID();
         String key = this.getClass().getSimpleName() + "AddCountDto" + ownerDto.getOwnerId();
         String key = this.getClass().getSimpleName() + "AddCountDto" + ownerDto.getOwnerId();