|
|
|
@ -8,6 +8,7 @@ import com.inspect.base.core.web.domain.BaseEntity; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
import lombok.Getter; |
|
|
|
import lombok.Setter; |
|
|
|
@ -105,7 +106,7 @@ public class BasedataPatrolPoint extends BaseEntity { |
|
|
|
private List<BasedataThresholdModification> subTypeDOList; |
|
|
|
private BasedataThresholdModification subTypeDO; |
|
|
|
|
|
|
|
public void loadAlgSubtypeName(Map<String, String> algSubtypeMap) { |
|
|
|
public void loadAlgSubtypeName1(Map<String, String> algSubtypeMap) { |
|
|
|
StringBuffer sb = new StringBuffer(); |
|
|
|
if (!StringUtils.isEmpty(this.algSubtypeIds)) { |
|
|
|
String[] var3 = this.algSubtypeIds.split(","); |
|
|
|
@ -121,6 +122,15 @@ public class BasedataPatrolPoint extends BaseEntity { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public void loadAlgSubtypeName(Map<String, String> algSubtypeMap) { |
|
|
|
if (!StringUtils.isEmpty(this.algSubtypeIds)) { |
|
|
|
String[] ids = this.algSubtypeIds.split(","); |
|
|
|
this.algSubtypeName = java.util.Arrays.stream(ids) |
|
|
|
.map(algSubtypeMap::get) |
|
|
|
.collect(Collectors.joining(",")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public String toString() { |
|
|
|
return "BasedataPatrolPoint{" + |
|
|
|
|