package com.iailab.module.data.channel.opcda.dao; import com.baomidou.mybatisplus.core.mapper.BaseMapper; 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.opcda.entity.ChannelOPCDATagEntity; import com.iailab.module.data.channel.opcda.entity.ChannelOPCDATagEntity; import com.iailab.module.data.channel.opcda.vo.OpcDaDevicePageReqVO; import com.iailab.module.data.channel.opcda.vo.OpcDaTagPageReqVO; import org.apache.ibatis.annotations.Mapper; /** * @author lirm * @Description * @createTime 2024年08月26日 */ @TenantDS @Mapper public interface ChannelOPCDATagDao extends BaseMapperX { default PageResult selectPage(OpcDaTagPageReqVO reqVO) { return selectPage(reqVO, new LambdaQueryWrapperX() .likeIfPresent(ChannelOPCDATagEntity::getTagName, reqVO.getTagName()) .likeIfPresent(ChannelOPCDATagEntity::getServerId, reqVO.getServerId()) .orderByDesc(ChannelOPCDATagEntity::getCreateTime)); } }