|
@@ -11,7 +11,6 @@ import com.nokia.hb.pojo.enums.SearchTypeEnum;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
-import org.springframework.util.StringUtils;
|
|
|
|
|
|
import javax.servlet.http.HttpSession;
|
|
|
import java.util.*;
|
|
@@ -48,10 +47,7 @@ public class PmService {
|
|
|
}
|
|
|
// 按eci查询
|
|
|
if (SearchTypeEnum.ECI.equals(dto.getSearchType())) {
|
|
|
- String[] conditionArray = StringUtils.split(dto.getCondition(), ",");
|
|
|
- if (conditionArray == null) {
|
|
|
- conditionArray = new String[]{dto.getCondition()};
|
|
|
- }
|
|
|
+ String[] conditionArray = dto.getCondition().split(",");
|
|
|
Set<String> conditions = Stream.of(conditionArray).collect(Collectors.toSet());
|
|
|
list = perCfgCellMapper.searchByEci(conditions, indicators, dto.getTimeType().name().toLowerCase(),
|
|
|
dto.getStartTime(), dto.getEndTime());
|