|
|
@@ -173,7 +173,7 @@ public class AppDeviceController extends JeecgController<AppDevice, IAppDeviceSe
|
|
|
if(appDevice==null) {
|
|
|
return Result.error("未找到对应数据");
|
|
|
}
|
|
|
- if(!appDevice.getSiteId().isEmpty()){
|
|
|
+ if(null != appDevice.getSiteId() && !appDevice.getSiteId().isEmpty()){
|
|
|
appDevice.setSiteName(appSiteMapper.selectById(appDevice.getSiteId()).getName());
|
|
|
}
|
|
|
return Result.OK(appDevice);
|