liujc 8 hónapja
szülő
commit
212ca63cc0

+ 2 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/CustomerServiceBatchSendingServiceImpl.java

@@ -167,6 +167,7 @@ public class CustomerServiceBatchSendingServiceImpl extends ServiceImpl<Customer
 
         // 声部信息
         List<Long> subjectIds = sendings.stream()
+                .filter(x -> StringUtils.isNotEmpty(x.getSendSubject()))
                 .flatMap(x -> Arrays.stream(x.getSendSubject().split(",")))
                 .map(Long::parseLong).distinct().collect(Collectors.toList());
 
@@ -201,6 +202,7 @@ public class CustomerServiceBatchSendingServiceImpl extends ServiceImpl<Customer
             }
 
             List<Long> collect = Arrays.stream(Optional.ofNullable(item.getSendSubject()).orElse("").split(","))
+                .filter(StringUtils::isNotBlank)
                     .map(Long::parseLong).distinct().collect(Collectors.toList());
 
             // 发送声部