|
|
|
@ -863,7 +863,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
|
|
|
|
|
/** |
|
|
|
* @param gridIdList |
|
|
|
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcGridUserResultDTO>> |
|
|
|
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcGridUserResultDTO>> |
|
|
|
* @Author yinzuomei |
|
|
|
* @Description 根据网格id查询网格下所有的用户 |
|
|
|
* @Date 2019/12/19 15:03 |
|
|
|
@ -1124,18 +1124,18 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* 组织机构信息处理 |
|
|
|
* |
|
|
|
* @params [dto, userList] |
|
|
|
* @return java.util.List<com.elink.esua.epdc.entity.UserEntity> |
|
|
|
* @params [dto, userList] |
|
|
|
* @author liuchuang |
|
|
|
* @since 2020/3/7 15:22 |
|
|
|
*/ |
|
|
|
private List<UserEntity> handleOrganizationInfo(OrganizationModifyDTO dto, List<UserDTO> userList) { |
|
|
|
List<UserEntity> entities = new ArrayList<>(); |
|
|
|
for (UserDTO user: userList) { |
|
|
|
for (UserDTO user : userList) { |
|
|
|
UserEntity entity = new UserEntity(); |
|
|
|
if (StringUtils.isNotEmpty(user.getParentDeptIds()) && StringUtils.isNotEmpty(user.getParentDeptNames())) { |
|
|
|
List<String> parentDeptIds = Arrays.asList(user.getParentDeptIds().split(",")); |
|
|
|
@ -1164,4 +1164,20 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
|
|
|
|
|
return entities; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@DataSource(value = DataSourceNames.FIRST) |
|
|
|
public PageData<UserDTO> allUserPage(Map<String, Object> params) { |
|
|
|
String[] paramKeys = new String[]{"nickname", "identityNo", "realName", "identityNo", "mobile", "startTime", "endTime"}; |
|
|
|
if (AppUserUtils.isDefaultQuery(params, paramKeys)) { |
|
|
|
List<UserDTO> userDtoList = Lists.newArrayList(); |
|
|
|
return new PageData<>(userDtoList, NumConstant.ZERO); |
|
|
|
} |
|
|
|
this.verifyParams(params); |
|
|
|
// 查询当前用户所具有的的数据权限
|
|
|
|
IPage<UserDTO> iPage = this.getPage(params); |
|
|
|
List<UserDTO> userDtoList = this.baseDao.selectListUserDto(params); |
|
|
|
return new PageData<>(userDtoList, iPage.getTotal()); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|