Commit 69ffc0c9 authored by muhong's avatar muhong

修改 名称关联

parent ca4f55dc
......@@ -71,7 +71,7 @@ public class ItemServiceImpl implements ItemService {
if (StringUtils.isNotBlank(dto.getName())) {
EsSearchRequestDto esSearchRequestDto = new EsSearchRequestDto();
esSearchRequestDto.setPage(1);
esSearchRequestDto.setSize(1000);
esSearchRequestDto.setSize(10000);
esSearchRequestDto.setContent(dto.getName());
EsPageInfo esPageInfo = itemEsDao.findList(esSearchRequestDto);
if (Objects.nonNull(esPageInfo) && CollectionUtils.isNotEmpty(esPageInfo.getDataList())) {
......@@ -90,7 +90,9 @@ public class ItemServiceImpl implements ItemService {
if (name.length() > 15) {
name = name.substring(0, 15);
}
if (name.contains(dto.getName())) {
set.add(name);
}
});
// 取16个名称
if (set.size() <= 16) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment