Jay
2024-11-01 03e8aca3ad6201c0d74e00d4c8d7367cdaaa54f9
提交 | 用户 | 时间
a6de49 1 package com.iailab.module.data.channel.opcua.dao;
H 2
aecc49 3 import com.iailab.framework.common.pojo.PageResult;
L 4 import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
5 import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX;
0fbd01 6 import com.iailab.framework.tenant.core.db.dynamic.TenantDS;
a6de49 7 import com.iailab.module.data.channel.opcua.entity.ChannelOPCUATagEntity;
aecc49 8 import com.iailab.module.data.channel.opcua.vo.OpcUaTagPageReqVO;
a6de49 9 import org.apache.ibatis.annotations.Mapper;
H 10
11 /**
aecc49 12  * @author lirm
a6de49 13  * @Description
aecc49 14  * @createTime 2024年08月26日
a6de49 15  */
0fbd01 16 @TenantDS
a6de49 17 @Mapper
aecc49 18 public interface ChannelOPCUATagDao extends BaseMapperX<ChannelOPCUATagEntity> {
L 19     default PageResult<ChannelOPCUATagEntity> selectPage(OpcUaTagPageReqVO reqVO) {
20         return selectPage(reqVO, new LambdaQueryWrapperX<ChannelOPCUATagEntity>()
21                 .likeIfPresent(ChannelOPCUATagEntity::getTagName, reqVO.getTagName())
22                 .likeIfPresent(ChannelOPCUATagEntity::getDevice, reqVO.getDevice())
23                 .orderByDesc(ChannelOPCUATagEntity::getCreateTime));
24     }
a6de49 25 }