Commit 7bbe706a by 穆龙飞

modify:增加部门信息

parent 53300920
...@@ -890,6 +890,7 @@ public class ChangeFlowBiz { ...@@ -890,6 +890,7 @@ public class ChangeFlowBiz {
Set<String> creatorList = list.stream().map(ChangeFlowVO::getChangeCreator).collect(Collectors.toSet()); Set<String> creatorList = list.stream().map(ChangeFlowVO::getChangeCreator).collect(Collectors.toSet());
commanderList.addAll(creatorList); commanderList.addAll(creatorList);
AjaxResponse<List<IusUserInfoRsp>> userListInfo = iusRpcService.queryUserListInfo(UserQueryDTO.builder().uids(new ArrayList<>(commanderList)).build()); AjaxResponse<List<IusUserInfoRsp>> userListInfo = iusRpcService.queryUserListInfo(UserQueryDTO.builder().uids(new ArrayList<>(commanderList)).build());
log.info("query user: {} info: {}", commanderList, JSON.toJSONString(userListInfo));
List<IusUserInfoRsp> data = userListInfo.getData(); List<IusUserInfoRsp> data = userListInfo.getData();
list.forEach(i -> { list.forEach(i -> {
Optional<IusUserInfoRsp> commander = data.stream().filter(u -> u.getUid().equals(i.getChangeCommander())).findAny(); Optional<IusUserInfoRsp> commander = data.stream().filter(u -> u.getUid().equals(i.getChangeCommander())).findAny();
...@@ -908,7 +909,7 @@ public class ChangeFlowBiz { ...@@ -908,7 +909,7 @@ public class ChangeFlowBiz {
if (anyOrg.isPresent()) { if (anyOrg.isPresent()) {
orgName = anyOrg.get().getOrgPosName(); orgName = anyOrg.get().getOrgPosName();
} }
i.setChangeCommander(commander.get().getName() + "(" + orgName + ")"); i.setChangeCreator(commander.get().getName() + "(" + orgName + ")");
} }
}); });
} catch (Exception ex) { } catch (Exception ex) {
......
...@@ -37,7 +37,7 @@ public interface IusRpcService { ...@@ -37,7 +37,7 @@ public interface IusRpcService {
* @param query * @param query
* @return * @return
*/ */
@GetMapping("/v1/qc/user/query") @PostMapping("/v1/qc/user/query")
AjaxResponse<List<IusUserInfoRsp>> queryUserListInfo(@RequestBody UserQueryDTO query); AjaxResponse<List<IusUserInfoRsp>> queryUserListInfo(@RequestBody UserQueryDTO query);
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment