|
@@ -20,6 +20,7 @@ import com.zhongshu.card.server.core.service.devices.DeviceInfoServiceImpl;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.data.domain.Pageable;
|
|
import org.springframework.data.domain.Pageable;
|
|
@@ -143,6 +144,7 @@ public class VisitorSettingDeviceService extends SuperService {
|
|
|
VisitorSettingDeviceModel model = null;
|
|
VisitorSettingDeviceModel model = null;
|
|
|
if (ObjectUtils.isNotEmpty(entity)) {
|
|
if (ObjectUtils.isNotEmpty(entity)) {
|
|
|
model = new VisitorSettingDeviceModel();
|
|
model = new VisitorSettingDeviceModel();
|
|
|
|
|
+ BeanUtils.copyProperties(entity, model);
|
|
|
model.setId(entity.getId());
|
|
model.setId(entity.getId());
|
|
|
model.setDeviceInfo(deviceInfoService.toModel(entity.getDeviceInfo()));
|
|
model.setDeviceInfo(deviceInfoService.toModel(entity.getDeviceInfo()));
|
|
|
}
|
|
}
|