Skip to content

Commit 0d1a9e6

Browse files
fixed
1 parent d002505 commit 0d1a9e6

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

  • thoth-robot-ms
    • thoth-robot-entity/src/main/java/com/prometheus/thoth/robot/entity
    • thoth-robot-service/src/main/java/com/prometheus/thoth/robot/service/impl
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.prometheus.thoth.robot.entity;
2+
3+
public class Industry {
4+
private Integer id;
5+
private String name;
6+
7+
public Integer getId() {
8+
return id;
9+
}
10+
11+
public void setId(Integer id) {
12+
this.id = id;
13+
}
14+
15+
public String getName() {
16+
return name;
17+
}
18+
19+
public void setName(String name) {
20+
this.name = name;
21+
}
22+
}

thoth-robot-ms/thoth-robot-service/src/main/java/com/prometheus/thoth/robot/service/impl/RobotServiceImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,12 @@ public List<Robot> listAll() {
143143
@Override
144144
public List<Robot> listAll(Robot robot) {
145145
List<Robot> robots = robotMapper.listRobots(robot);
146+
Robot robot1 = new Robot();
147+
robot1.setName("哈哈哈哈");
146148
if (robots == null){
147149
robots = new ArrayList<Robot>();
148150
}
151+
robots.add(robot1);
149152
return robots;
150153
}
151154

0 commit comments

Comments
 (0)