ソースを参照

优化 账户

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) {
+        if (StringUtil.isEmpty(ownerDto.getOwnerId())) {
+            return new ArrayList<>();
+        }
         //开始锁代码
         String requestId = DistributedLock.getLockUUID();
         String key = this.getClass().getSimpleName() + "AddCountDto" + ownerDto.getOwnerId();