浏览代码

ICSS后台科室维护查询Bug修正

wangyu 6 年之前
父节点
当前提交
4c74b30d0c
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      icssman-service/src/main/java/com/diagbot/facade/DeptInfoFacade.java

+ 5 - 5
icssman-service/src/main/java/com/diagbot/facade/DeptInfoFacade.java

@@ -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)) {