feat:新增加盟商名称
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user