Jay
2024-11-01 03e8aca3ad6201c0d74e00d4c8d7367cdaaa54f9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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.ChannelOPCUATagEntity;
import com.iailab.module.data.channel.opcua.vo.OpcUaTagPageReqVO;
import org.apache.ibatis.annotations.Mapper;
 
/**
 * @author lirm
 * @Description
 * @createTime 2024年08月26日
 */
@TenantDS
@Mapper
public interface ChannelOPCUATagDao extends BaseMapperX<ChannelOPCUATagEntity> {
    default PageResult<ChannelOPCUATagEntity> selectPage(OpcUaTagPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<ChannelOPCUATagEntity>()
                .likeIfPresent(ChannelOPCUATagEntity::getTagName, reqVO.getTagName())
                .likeIfPresent(ChannelOPCUATagEntity::getDevice, reqVO.getDevice())
                .orderByDesc(ChannelOPCUATagEntity::getCreateTime));
    }
}