|
@@ -3,8 +3,10 @@ package com.ydtech.modules.protocol.entity.dto;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
|
|
+import org.springframework.util.ObjectUtils;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
|
|
+import java.util.Collections;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
@@ -28,7 +30,8 @@ public class PtlFactorDto {
|
|
|
private Integer minValue;
|
|
private Integer minValue;
|
|
|
|
|
|
|
|
public List<String> getParameter() {
|
|
public List<String> getParameter() {
|
|
|
- return parameter.stream().filter(x -> !x.isEmpty()).collect(Collectors.toList());
|
|
|
|
|
|
|
+ return ObjectUtils.isEmpty(parameter) ? Collections.emptyList() :
|
|
|
|
|
+ parameter.stream().filter(x -> !x.isEmpty()).collect(Collectors.toList());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public Integer getMaxValue() {
|
|
public Integer getMaxValue() {
|