提交 | 用户 | 时间
|
a6de49
|
1 |
package com.iailab.module.data.channel.modbus.dao; |
H |
2 |
|
0b0cb9
|
3 |
import com.iailab.framework.common.pojo.PageResult; |
潘 |
4 |
import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
|
5 |
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
|
6 |
import com.iailab.framework.tenant.core.db.dynamic.TenantDS; |
a6de49
|
7 |
import com.iailab.module.data.channel.modbus.entity.ChannelModBusDeviceEntity; |
0b0cb9
|
8 |
import com.iailab.module.data.channel.modbus.vo.ModBusDevicePageReqVO; |
a6de49
|
9 |
import org.apache.ibatis.annotations.Mapper; |
H |
10 |
|
|
11 |
/** |
|
12 |
* @author PanZhibao |
|
13 |
* @Description |
|
14 |
* @createTime 2023年04月24日 11:33:00 |
|
15 |
*/ |
0b0cb9
|
16 |
@TenantDS |
a6de49
|
17 |
@Mapper |
0b0cb9
|
18 |
public interface ChannelModBusDeviceDao extends BaseMapperX<ChannelModBusDeviceEntity> { |
潘 |
19 |
|
|
20 |
default PageResult<ChannelModBusDeviceEntity> selectPage(ModBusDevicePageReqVO reqVO) { |
|
21 |
return selectPage(reqVO, new LambdaQueryWrapperX<ChannelModBusDeviceEntity>() |
|
22 |
.likeIfPresent(ChannelModBusDeviceEntity::getName, reqVO.getName()) |
|
23 |
.likeIfPresent(ChannelModBusDeviceEntity::getAddress, reqVO.getAddress()) |
|
24 |
.orderByDesc(ChannelModBusDeviceEntity::getCreateTime)); |
|
25 |
} |
a6de49
|
26 |
|
H |
27 |
} |