|
@@ -209,7 +209,7 @@ public class SystemService {
|
|
|
* @title 根据id查询人员
|
|
|
* @description 获取所有的人员 不分租户
|
|
|
*/
|
|
|
- public List<Integer> getPersonIdByName(String personName,Boolean ifEqual) {
|
|
|
+ public List<String> getPersonIdByName(String personName,Boolean ifEqual) {
|
|
|
LambdaQueryWrapper<Personnel> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
queryWrapper.select(Personnel::getId);
|
|
|
if(ifEqual!=null&&ifEqual.equals(true)) {
|
|
@@ -218,8 +218,8 @@ public class SystemService {
|
|
|
else {
|
|
|
queryWrapper.eq(Personnel::getPersonnelName, personName);
|
|
|
}
|
|
|
- java.util.function.Function<Object, Integer> f = (o -> Integer.parseInt(o.toString()));
|
|
|
- List<Integer> ids = personnelService.listObjs(queryWrapper, f);
|
|
|
+ java.util.function.Function<Object, String> f = (o -> o.toString());
|
|
|
+ List<String> ids = personnelService.listObjs(queryWrapper, f);
|
|
|
return ids;
|
|
|
}
|
|
|
|
|
@@ -234,11 +234,11 @@ public class SystemService {
|
|
|
return ids;
|
|
|
}
|
|
|
|
|
|
- public String getPersonnelByIds(List<Integer> ids) {
|
|
|
+ public String getPersonnelByIds(List<String> ids) {
|
|
|
List<Personnel> personnelList = new ArrayList<>();
|
|
|
if (ids != null && ids.size() > 0) {
|
|
|
LambdaQueryWrapper<Personnel> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
- queryWrapper.in(Personnel::getId, ids);
|
|
|
+ queryWrapper.in(Personnel::getGuid, ids);
|
|
|
personnelList = personnelService.list(queryWrapper);
|
|
|
}
|
|
|
return Response.success(personnelList);
|
|
@@ -329,17 +329,17 @@ public class SystemService {
|
|
|
* @param orderType
|
|
|
* @return
|
|
|
*/
|
|
|
- public List<Integer> getPersonIdOrders(Integer orderType) {
|
|
|
+ public List<String> getPersonIdOrders(Integer orderType) {
|
|
|
LambdaQueryWrapper<Personnel> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
- queryWrapper.select(Personnel::getId);
|
|
|
+ queryWrapper.select(Personnel::getGuid);
|
|
|
if(orderType.equals(0)){
|
|
|
queryWrapper.orderByAsc(Personnel::getPersonnelName);
|
|
|
}
|
|
|
else{
|
|
|
queryWrapper.orderByDesc(Personnel::getPersonnelName);
|
|
|
}
|
|
|
- java.util.function.Function<Object, Integer> f = (o -> Integer.parseInt(o.toString()));
|
|
|
- List<Integer> ids = personnelService.listObjs(queryWrapper, f);
|
|
|
+ java.util.function.Function<Object, String> f = (o ->o.toString());
|
|
|
+ List<String> ids = personnelService.listObjs(queryWrapper, f);
|
|
|
return ids;
|
|
|
}
|
|
|
|