diff --git a/src/main/java/org/bench4q/master/api/model/factory/BusinessModelMapFactory.java b/src/main/java/org/bench4q/master/api/model/factory/BusinessModelMapFactory.java index 0a6cefbb..dcc1bc55 100644 --- a/src/main/java/org/bench4q/master/api/model/factory/BusinessModelMapFactory.java +++ b/src/main/java/org/bench4q/master/api/model/factory/BusinessModelMapFactory.java @@ -28,10 +28,10 @@ public class BusinessModelMapFactory { Agent agent = new Agent(); agent.setCurrentStatus(agentModel.getCurrentStatus()); agent.setHostName(agentModel.getHostName()); - agent.setId(agent.getId()); - agent.setMaxLoad(agent.getMaxLoad()); - agent.setPort(agent.getPort()); - agent.setRemainLoad(agent.getRemainLoad()); + agent.setId(agentModel.getId()); + agent.setMaxLoad(agentModel.getMaxLoad()); + agent.setPort(agentModel.getPort()); + agent.setRemainLoad(agentModel.getRemainLoad()); return agent; }