Commit 935d4bdf by wangli

修改

1 parent 24de3bf1
......@@ -16,6 +16,7 @@ public class EngineerBusinessListResp {
public static class EngineerBusiness{
private String engineerCode;
private String engineerName;
private String groupName;
private String kind;
private Integer maxNum;
private Integer maxMinute;
......
......@@ -380,6 +380,9 @@ public class EngineerServiceImpl implements EngineerService {
// 获取技术员code列表
List<String> engineerCodes = engineers.stream().map(EngineerInfo::getEngineerCode).collect(Collectors.toList());
List<String> groupIds = engineers.stream().map(EngineerInfo::getGroupId).collect(Collectors.toList());
HashMap<String, String> groupNames = this.queryGroupNames(groupIds);
HashMap<String, EngineerBusiness> buss = this.queryEngineerBusiness(engineerCodes);
List<EngineerBusinessListResp.EngineerBusiness> items = new ArrayList<>();
......@@ -387,6 +390,7 @@ public class EngineerServiceImpl implements EngineerService {
EngineerBusinessListResp.EngineerBusiness item = new EngineerBusinessListResp.EngineerBusiness();
item.setEngineerCode(e.getEngineerCode());
item.setGroupName(groupNames.getOrDefault(e.getGroupId(), ""));
item.setEngineerName(e.getName());
item.setKind((e.getKind() == 1) ? "fullJob" : "partJob");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!