|
|
@@ -57,10 +57,10 @@ public class DeviceOprLogsServiceImpl implements IDeviceOprLogsService {
|
|
|
.between(Objects.nonNull(param.getBeginTime()) && Objects.nonNull(param.getEndTime()),
|
|
|
DeviceOprLogsEntity::getCreateTime, param.getBeginTime(), param.getEndTime())
|
|
|
.eq(param!=null && StringUtils.hasText(param.getDeviceName()),DeviceOprLogsEntity::getDeviceName,param.getDeviceName())
|
|
|
- .and(StringUtils.hasText(param.getLogsInformation()),
|
|
|
- wrapper -> wrapper .like( DeviceOprLogsEntity::getLogInfo, param.getLogsInformation())
|
|
|
- .or().like( DeviceOprLogsEntity::getDeviceSn, param.getLogsInformation())
|
|
|
- .or().like(DeviceOprLogsEntity::getWorkspaceName, param.getLogsInformation())
|
|
|
+ .and(StringUtils.hasText(param.getSearchInfo()),
|
|
|
+ wrapper -> wrapper .like( DeviceOprLogsEntity::getLogInfo, param.getSearchInfo())
|
|
|
+ .or().like( DeviceOprLogsEntity::getDeviceSn, param.getSearchInfo())
|
|
|
+ .or().like(DeviceOprLogsEntity::getWorkspaceName, param.getSearchInfo())
|
|
|
)
|
|
|
.orderByDesc(DeviceOprLogsEntity::getCreateTime);
|
|
|
|