package com.iailab.module.data.channel.modbus.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.modbus.entity.ChannelModBusDeviceEntity; import com.iailab.module.data.channel.modbus.vo.ModBusDevicePageReqVO; import org.apache.ibatis.annotations.Mapper; /** * @author PanZhibao * @Description * @createTime 2023年04月24日 11:33:00 */ @TenantDS @Mapper public interface ChannelModBusDeviceDao extends BaseMapperX { default PageResult selectPage(ModBusDevicePageReqVO reqVO) { return selectPage(reqVO, new LambdaQueryWrapperX() .likeIfPresent(ChannelModBusDeviceEntity::getName, reqVO.getName()) .likeIfPresent(ChannelModBusDeviceEntity::getAddress, reqVO.getAddress()) .orderByDesc(ChannelModBusDeviceEntity::getCreateTime)); } }