提交 | 用户 | 时间
|
a6de49
|
1 |
package com.iailab.module.data.channel.modbus.dao; |
H |
2 |
|
c7f709
|
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.modbus.entity.ChannelModBusTagEntity; |
c7f709
|
8 |
import com.iailab.module.data.channel.modbus.vo.ModBusTagPageReqVO; |
a6de49
|
9 |
import org.apache.ibatis.annotations.Mapper; |
H |
10 |
import org.apache.ibatis.annotations.Param; |
|
11 |
|
|
12 |
import java.util.List; |
|
13 |
|
|
14 |
/** |
c7f709
|
15 |
* @author lirm |
a6de49
|
16 |
* @Description |
c7f709
|
17 |
* @createTime 2024年08月27日 |
a6de49
|
18 |
*/ |
0fbd01
|
19 |
@TenantDS |
a6de49
|
20 |
@Mapper |
c7f709
|
21 |
public interface ChannelModBusTagDao extends BaseMapperX<ChannelModBusTagEntity> { |
a6de49
|
22 |
|
c7f709
|
23 |
default PageResult<ChannelModBusTagEntity> selectPage(ModBusTagPageReqVO reqVO) { |
L |
24 |
return selectPage(reqVO, new LambdaQueryWrapperX<ChannelModBusTagEntity>() |
|
25 |
.likeIfPresent(ChannelModBusTagEntity::getTagName, reqVO.getTagName()) |
|
26 |
.likeIfPresent(ChannelModBusTagEntity::getAddress, reqVO.getAddress()) |
|
27 |
.likeIfPresent(ChannelModBusTagEntity::getTagDesc, reqVO.getTagDesc()) |
|
28 |
.likeIfPresent(ChannelModBusTagEntity::getDevice, reqVO.getDevice()) |
|
29 |
.orderByDesc(ChannelModBusTagEntity::getCreateTime)); |
|
30 |
} |
a6de49
|
31 |
} |