feat:新增加盟商名称

This commit is contained in:
苏竹红
2025-01-17 11:29:33 +08:00
parent 9167d90424
commit 2f18f00aa0
3 changed files with 17 additions and 2 deletions

View File

@@ -214,4 +214,12 @@ public class LineInfoDAO {
return lineInfoMapper.getByLineIds(lineIds);
}
public Map<Long, String> getUserNameMap(List<Long> lineIds){
if(CollectionUtils.isEmpty(lineIds)){
return Maps.newHashMap();
}
List<LineInfoDO> lineMobile = lineInfoMapper.getByLineIds(lineIds);
return lineMobile.stream().filter(o->StringUtils.isNotBlank(o.getMobile())).collect(Collectors.toMap(LineInfoDO::getId, LineInfoDO::getUsername, (k1, k2)-> k1));
}
}