package com.iailab.module.data.channel.opcua.dao;
|
|
import com.iailab.framework.common.pojo.PageResult;
|
import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
|
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX;
|
import com.iailab.framework.tenant.core.db.dynamic.TenantDS;
|
import com.iailab.module.data.channel.opcua.entity.ChannelOPCUADeviceEntity;
|
import com.iailab.module.data.channel.opcua.vo.OpcUaDevicePageReqVO;
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
/**
|
* @author lirm
|
* @Description
|
* @createTime 2024年08月26日
|
*/
|
@TenantDS
|
@Mapper
|
public interface ChannelOPCUADeviceDao extends BaseMapperX<ChannelOPCUADeviceEntity> {
|
|
default PageResult<ChannelOPCUADeviceEntity> selectPage(OpcUaDevicePageReqVO reqVO) {
|
return selectPage(reqVO, new LambdaQueryWrapperX<ChannelOPCUADeviceEntity>()
|
.likeIfPresent(ChannelOPCUADeviceEntity::getServerName, reqVO.getServerName()));
|
}
|
}
|