|
|
@@ -293,7 +293,7 @@ public class DeviceInfoServiceImpl extends SuperService implements DeviceInfoSer
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public ResultContent<DeviceInfoMoreModel> getDeviceDetailAndPer(String deviceId) {
|
|
|
+ public ResultContent<DeviceInfoServeModel> getDeviceDetailAndPer(String deviceId) {
|
|
|
DeviceInfo deviceInfo = deviceInfoDao.findTopByDeviceId(deviceId);
|
|
|
|
|
|
// 判断当前用户是否有设备的权限
|
|
|
@@ -303,9 +303,9 @@ public class DeviceInfoServiceImpl extends SuperService implements DeviceInfoSer
|
|
|
return ResultContent.buildFail(content.getMsg());
|
|
|
}
|
|
|
|
|
|
- DeviceInfoMoreModel model = null;
|
|
|
+ DeviceInfoServeModel model = null;
|
|
|
if (ObjectUtils.isNotEmpty(deviceInfo)) {
|
|
|
- model = toMoreModel(deviceInfo);
|
|
|
+ model = toServeModel(deviceInfo);
|
|
|
model.setPayOrgInfo(getDeviceReceiveOrgInfo(deviceId));
|
|
|
}
|
|
|
return ResultContent.buildSuccess(model);
|
|
|
@@ -321,6 +321,16 @@ public class DeviceInfoServiceImpl extends SuperService implements DeviceInfoSer
|
|
|
return model;
|
|
|
}
|
|
|
|
|
|
+ public DeviceInfoServeModel toServeModel(DeviceInfo entity) {
|
|
|
+ DeviceInfoServeModel model = null;
|
|
|
+ if (ObjectUtils.isNotEmpty(entity)) {
|
|
|
+ model = new DeviceInfoServeModel();
|
|
|
+ DeviceInfoModel deviceInfoModel = toModel(entity);
|
|
|
+ BeanUtils.copyProperties(deviceInfoModel, model);
|
|
|
+ }
|
|
|
+ return model;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @param param
|
|
|
* @return
|