|
|
@@ -45,6 +45,7 @@ public class DoorDeviceWrapper extends BaseEntityWrapper<DoorDevice, DoorDeviceV
|
|
|
private static IResidentialClient residentialClient;
|
|
|
private static IBuildingClient buildingClient;
|
|
|
private static IUnitClient unitClient;
|
|
|
+ private static IFloorClient floorClient;
|
|
|
private static IRoomClient roomClient;
|
|
|
|
|
|
static {
|
|
|
@@ -53,6 +54,7 @@ public class DoorDeviceWrapper extends BaseEntityWrapper<DoorDevice, DoorDeviceV
|
|
|
residentialClient = SpringUtil.getBean(IResidentialClient.class);
|
|
|
buildingClient = SpringUtil.getBean(IBuildingClient.class);
|
|
|
unitClient = SpringUtil.getBean(IUnitClient.class);
|
|
|
+ floorClient = SpringUtil.getBean(IFloorClient.class);
|
|
|
roomClient = SpringUtil.getBean(IRoomClient.class);
|
|
|
|
|
|
}
|
|
|
@@ -96,6 +98,12 @@ public class DoorDeviceWrapper extends BaseEntityWrapper<DoorDevice, DoorDeviceV
|
|
|
doorDeviceVO.setUnitName(unit.getName());
|
|
|
}
|
|
|
}
|
|
|
+ if(doorDevice.getFloorId() != null){
|
|
|
+ Floor floor = floorClient.getById(doorDevice.getFloorId());
|
|
|
+ if(floor != null){
|
|
|
+ doorDeviceVO.setFloorName(floor.getName());
|
|
|
+ }
|
|
|
+ }
|
|
|
if(doorDevice.getRoomId() != null){
|
|
|
Room room = roomClient.getById(doorDevice.getRoomId());
|
|
|
if(room != null){
|