Authored by tanling

配置说明截取

... ... @@ -110,6 +110,9 @@ public class ResourcesServiceImpl implements ResourcesService {
private YHTaskSchedulerService yhTaskSchedulerService;
@Autowired
private AutowireCapableBeanFactory beanFactory;
public static final String MULT_POINT_STR = "......";
@Override
public PageResponseBO<ResourcesBO> findResources(ResourcesPageBO resourcesBO) {
logger.info("enter findResources, resourcesBO = {}", resourcesBO);
... ... @@ -133,6 +136,14 @@ public class ResourcesServiceImpl implements ResourcesService {
List<ResourcesBO> resourcesBOs = new ArrayList<>();
for (Resources resources : resourcesList) {
ResourcesBO resourcesQueryResponse = YHBeanUtils.copyBeans(ResourcesBO.class, resources);
if (!StringUtil.isBlank(resourcesQueryResponse.getConfigDesc()) && resourcesQueryResponse.getConfigDesc().length()>16){
StringBuilder sb = new StringBuilder();
sb.append(org.apache.commons.lang3.StringUtils.substring(resourcesQueryResponse.getConfigDesc(),0, 16));
sb.append(MULT_POINT_STR);
resourcesQueryResponse.setConfigDesc(sb.toString());
}
Platform platform = findPlatformById(resources.getPlatformId(), platforms);
if (platform != null) {
resourcesQueryResponse.setPlatformName(platform.getPlatformName());
... ...