...
|
...
|
@@ -21,14 +21,14 @@ public class ActivtyTemplatedService { |
|
|
@Autowired
|
|
|
private ActivtyTemplatedMapper activtyTemplatedMapper;
|
|
|
|
|
|
public List<ActivtyTemplatedFloor> get(Integer templatedId) {
|
|
|
public ActivtyTemplated get(Integer templatedId) {
|
|
|
ActivtyTemplated activtyTemplated = activtyTemplatedMapper.selectByPrimaryKey(templatedId);
|
|
|
|
|
|
if (null == activtyTemplated) {
|
|
|
return Lists.newArrayList();
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
List<ActivtyTemplatedFloor> activtyTemplatedFloor = activtyTemplatedFloorMapper.selectByTemplatedId(templatedId);
|
|
|
return activtyTemplatedFloor;
|
|
|
activtyTemplated.setFloors(activtyTemplatedFloorMapper.selectByTemplatedId(templatedId));
|
|
|
return activtyTemplated;
|
|
|
}
|
|
|
} |
...
|
...
|
|