|
|
@@ -177,6 +177,9 @@ public class DeviceInfoService {
|
|
|
if (!CommonUtil.longIsEmpty(param.getEndLastOnlineTime())) {
|
|
|
param.setEndLastOnlineTime(DateUtils.getDayEndTime(param.getEndLastOnlineTime()));
|
|
|
}
|
|
|
+ if (param.getDeviceType() != null) {
|
|
|
+ param.addDeviceTypes(param.getDeviceType());
|
|
|
+ }
|
|
|
Page<DeviceInfo> page = deviceInfoDao.page(pageable, param);
|
|
|
return ResultContent.buildSuccess(PageEntityUtil.toPageModel(page, this::toModel));
|
|
|
}
|
|
|
@@ -287,7 +290,7 @@ public class DeviceInfoService {
|
|
|
private void updateDeviceOnLineStateByState(DeviceInfo deviceInfo) {
|
|
|
if (deviceInfo != null) {
|
|
|
if (deviceInfo.getState() == DeviceState.Enable) {
|
|
|
-
|
|
|
+ deviceInfo.setOnLineState(OnLineState.OffLine);
|
|
|
} else if (deviceInfo.getState() == DeviceState.Disable) {
|
|
|
deviceInfo.setOnLineState(OnLineState.Disable);
|
|
|
} else if (deviceInfo.getState() == DeviceState.Cancel) {
|