package com.iailab.module.pms.coalquality.modules.analysis.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.module.pms.coalquality.modules.analysis.entity.CoalAnalysisFullEntity; import com.iailab.module.pms.coalquality.modules.analysis.vo.FullPageReqVO; import org.apache.commons.lang3.StringUtils; import org.apache.ibatis.annotations.Mapper; /** * @author PanZhibao * @Description * @createTime 2023年01月12日 17:01:00 */ @Mapper public interface CoalAnalysisFullDao extends BaseMapperX { default PageResult selectPage(FullPageReqVO reqVO) { return selectPage(reqVO, new LambdaQueryWrapperX() .like(StringUtils.isNotBlank(reqVO.getCode()), CoalAnalysisFullEntity::getCode, reqVO.getCode()) .eq(StringUtils.isNotBlank(reqVO.getNy()), CoalAnalysisFullEntity::getNy, reqVO.getNy()) ); } }