提交 | 用户 | 时间
|
9d7e02
|
1 |
package com.iailab.module.data.channel.opcda.dao; |
潘 |
2 |
|
|
3 |
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
aecc49
|
4 |
import com.iailab.framework.common.pojo.PageResult; |
L |
5 |
import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
|
6 |
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
0fbd01
|
7 |
import com.iailab.framework.tenant.core.db.dynamic.TenantDS; |
9d7e02
|
8 |
import com.iailab.module.data.channel.opcda.entity.ChannelOPCDATagEntity; |
aecc49
|
9 |
import com.iailab.module.data.channel.opcda.entity.ChannelOPCDATagEntity; |
L |
10 |
import com.iailab.module.data.channel.opcda.vo.OpcDaDevicePageReqVO; |
|
11 |
import com.iailab.module.data.channel.opcda.vo.OpcDaTagPageReqVO; |
9d7e02
|
12 |
import org.apache.ibatis.annotations.Mapper; |
潘 |
13 |
|
|
14 |
/** |
aecc49
|
15 |
* @author lirm |
9d7e02
|
16 |
* @Description |
aecc49
|
17 |
* @createTime 2024年08月26日 |
9d7e02
|
18 |
*/ |
0fbd01
|
19 |
@TenantDS |
9d7e02
|
20 |
@Mapper |
aecc49
|
21 |
public interface ChannelOPCDATagDao extends BaseMapperX<ChannelOPCDATagEntity> { |
L |
22 |
|
|
23 |
default PageResult<ChannelOPCDATagEntity> selectPage(OpcDaTagPageReqVO reqVO) { |
|
24 |
return selectPage(reqVO, new LambdaQueryWrapperX<ChannelOPCDATagEntity>() |
|
25 |
.likeIfPresent(ChannelOPCDATagEntity::getTagName, reqVO.getTagName()) |
|
26 |
.likeIfPresent(ChannelOPCDATagEntity::getServerId, reqVO.getServerId()) |
|
27 |
.orderByDesc(ChannelOPCDATagEntity::getCreateTime)); |
|
28 |
} |
9d7e02
|
29 |
} |