|
@@ -221,6 +221,17 @@ public class SystemService {
|
|
|
return ids;
|
|
|
}
|
|
|
|
|
|
+ public List<Integer> getPersonIdByNames(List<String> personNames) {
|
|
|
+ LambdaQueryWrapper<Personnel> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ queryWrapper.select(Personnel::getId);
|
|
|
+ personNames.forEach(personName -> {
|
|
|
+ queryWrapper.like(Personnel::getPersonnelName, personName);
|
|
|
+ });
|
|
|
+ java.util.function.Function<Object, Integer> f = (o -> Integer.parseInt(o.toString()));
|
|
|
+ List<Integer> ids = personnelService.listObjs(queryWrapper, f);
|
|
|
+ return ids;
|
|
|
+ }
|
|
|
+
|
|
|
public String getPersonnelByIds(List<Integer> ids) {
|
|
|
List<Personnel> personnelList = new ArrayList<>();
|
|
|
if (ids != null && ids.size() > 0) {
|