|
@@ -125,12 +125,12 @@ public class DeptInfoFacade extends DeptInfoServiceImpl {
|
|
|
*/
|
|
|
public IPage<GetDeptInfoDTO> getDeptInfo(GetDeptInfoVO getDeptInfoVO) {
|
|
|
IPage<GetDeptInfoDTO> iPage = this.getDeptInfos(getDeptInfoVO);
|
|
|
- List<String> ids = new ArrayList<>();
|
|
|
- for (GetDeptInfoDTO getDeptInfoDTO : iPage.getRecords()) {
|
|
|
- ids.add(getDeptInfoDTO.getModifier());
|
|
|
- }
|
|
|
RespDTO<Map<String, String>> respDTO = new RespDTO<>();
|
|
|
- if (ListUtil.isEmpty(iPage.getRecords())) {
|
|
|
+ if (ListUtil.isNotEmpty(iPage.getRecords())) {
|
|
|
+ List<String> ids = new ArrayList<>();
|
|
|
+ for (GetDeptInfoDTO getDeptInfoDTO : iPage.getRecords()) {
|
|
|
+ ids.add(getDeptInfoDTO.getModifier());
|
|
|
+ }
|
|
|
//获取用户信息
|
|
|
respDTO = userServiceClient.getUserInfoByIds(ids);
|
|
|
if (respDTO == null || !CommonErrorCode.OK.getCode().equals(respDTO.code)) {
|